805 questions with XAML-related tags

Sort by: Updated
0 answers

How to view all Visual Tree UI elements of any UI controls, Which is using styles & templates on windows 11 OS environment using VisualUIAVerifyNative tool?

VisualUIAVerifyNative is not displaying few UI elements If TextBox uses style, which has TextBlock as PlaceholderText, then the placeholder textblock UI element is not getting displayed in VisualUIAVerifyNative on windows 11 machine <Style…

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,592 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-11T12:08:30.5+00:00
Kavitha T 0 Reputation points
edited the question 2024-09-19T08:25:56.68+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

is there any roundabouts for design tab in .net maui?

Hello, I'm just started to study .net maui but I stuck on UI design in .net maui project. In WPF project, I could use design tab to correct UI easily. but I can't use that in .net maui. is there anyone or site to teach how to design UI in .net maui…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-16T13:26:12.72+00:00
c00012 716 Reputation points
commented 2024-09-19T05:46:35.53+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 74,641 Reputation points Microsoft Vendor
0 answers

How Can I call RuntimeHostConfigurationOption OnStartup of a WPF (C#) application in .NET 8?

Hi there, I have a WPF application where the UI is a very important thing and heart of the application. Due to some UI elements requirements I have some custom RuntimeHostConfigurationOption which I put in my WPF application through the *.csproj file. I…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
975 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 576 Reputation points
commented 2024-09-18T13:37:59.9066667+00:00
MERUN KUMAR MAITY 576 Reputation points
1 answer

UWP Windows.System.Launcher.LaunchUriAsync is not opening correctly in browser when the URI supports opening the link in other uwp app and browser.

Hi I'm using Windows.System.Launcher.LaunchUriAsync to open a URI, I'm prompted with a dialogue when the URI can be opened in other uwp app and browser. If chosen browser, it opens the local path - AppData/Local/Microsoft/Windows/INetCache instead of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-16T05:48:47.1033333+00:00
Harsini 0 Reputation points
answered 2024-09-17T02:23:38.9433333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
0 answers

UWP DataGrid Scrollbar Issue: Unable to Scroll Using Touch on Touch Screen Devices

I'm developing a UWP app and I'm utilizing the DataGrid control from Microsoft.Toolkit.Uwp.UI.Controls to display data. While I can scroll using the mouse using both the scrollbar and its buttons, on a touch screen device, I can only scroll via finger…

Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-05-11T10:28:59+00:00
Hardik Rathod 20 Reputation points
commented 2024-09-16T22:39:32.1066667+00:00
Rathod, Bhavikkumar 0 Reputation points
0 answers

MVVM Issue

I have a DataTemplate defined thus: <DataTemplate x:Key="CopyColumnHeaderTemplate"> <StackPanel Orientation="Horizontal"> <Label Content="{Binding}"/> <CheckBox…

XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-09-15T15:31:21.6166667+00:00
David McCallum 51 Reputation points
0 answers

UWP app flickering on ARM PC

Hi everyone. I have an UWP application and I'm running on a ARM PC. When I open a customized content dialog the screen starts blinking. Unfortunately, I cannot show the application nor the code, but do you guys know some cases that an ARM PC blinks…

Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-23T12:29:55.17+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
commented 2024-08-29T00:58:43.6666667+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
2 answers

Why do i get this error

When i start debugging and i press a NavigationMenuItem, i get this error (See Screenshot). the NavigationPages are in the folder NavigationMenu. Does anyone know how to fix this My code is MainPage.xaml …

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-08-17T19:58:33.26+00:00
Wannes Aneca 0 Reputation points
commented 2024-08-27T09:19:54.2566667+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to refresh DB connection in a WPF app using MVVM pattern with Entity Framework and Oracle as DB?

I have a WPF application that uses Entity Framework and Oracle as the database and follows the MVVM pattern. Each ViewModel initializes its own DBContext and uses it. When I click a button/link then, it refresh the DB connection. Also how to add the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-21T04:54:32.44+00:00
Santhosh Badam 40 Reputation points
commented 2024-08-22T09:05:44.1966667+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
1 answer

C# Program can't find XAML page in DLL

I have a program with a window declared as StartWnd (in the main assembly) derived from a class, WzdBase in a DLL which in turn is derived from System.Windows.Window. StartWnd doesn't provide its own XAML page. Rather that's in the DLL and provided by…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-07-31T16:13:28.4066667+00:00
Will Pittenger 306 Reputation points
commented 2024-08-19T07:23:58.8033333+00:00
Hongrui Yu-MSFT 1,605 Reputation points Microsoft Vendor
1 answer

Touch two buttons at same time, both stay toggled - WinUI 3

I have a touchscreen PC and when I touch two buttons at the same time they toggle (as if they were pressed and released) in a WinUI 3 Application. UWP this does not happen. Not touched: Both touched and released:

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-13T17:24:12.7433333+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
edited the question 2024-08-19T05:57:14.7666667+00:00
Jack J Jun 24,491 Reputation points Microsoft Vendor
1 answer

Why does BasedOn?

Severity Code Description Project File Line Suppression State Error (active) XFC0009 No property, BindableProperty, or event found for "BasedOn", or mismatching type between value and property. TipCalculator…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,424 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-17T19:49:15.35+00:00
Amelia Middleton 0 Reputation points
answered 2024-08-19T02:55:09.5533333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,081 Reputation points Microsoft Vendor
2 answers

How to design a login page with fully responsive page as like as Web page (Using Blend or VS 2023)

I need to build a pages for WPF app using XAML in such way that each page should be responsive as like as in the browser web pages(Microsoft Blend or Visual Studio 2022). For an example login page, sign up page or any other pages for a WPF app. …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-01T07:21:44.7166667+00:00
Santhosh Badam 40 Reputation points
answered 2024-08-17T22:16:01.06+00:00
Joshua Lazaro Marandi 70 Reputation points
2 answers One of the answers was accepted by the question author.

How can I change the border color of a NavigationView in WinUI 3?

Which property is it in the generic.xaml? I can't even find the TargetType. Lines within the red rectangles.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
780 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-05-22T15:53:25.08+00:00
youki 1,021 Reputation points
answered 2024-08-10T20:10:21.9533333+00:00
Tech5G5G 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to align a WPF window to a child of a second window?

So I've been trying to get a System.Windows.Window to be aligned with a control in a second Window. In the image, the magnifying glass is the control I want to align to. There's padding around the icon. The dark gray box with the +- buttons is the…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
asked 2024-08-08T03:07:52.1866667+00:00
Will Pittenger 306 Reputation points
accepted 2024-08-09T14:41:34.8166667+00:00
Will Pittenger 306 Reputation points
2 answers One of the answers was accepted by the question author.

How to dynamically enable a button in WPF Forms with C#?

Hi, I am new to WPF but not to C#. I am working on a application where I have several buttons and I need to change the state of the buttons based on certain conditions. For instance, I have this "Add User" button which will be enabled only if…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-08-07T14:56:55.13+00:00
Lakshmanan B 81 Reputation points
commented 2024-08-08T10:13:02.3233333+00:00
Lakshmanan B 81 Reputation points
1 answer

Mysterious XAML “The name "X" does not exist in the namespace” error won't go away

I'm working on a XAML/C# project. I have a custom abstract class derived from `System.Windows.Controls.UserControl`: `PageBase`. Visual Studio 2022 keeps telling me it can't find `PageBase` in the namespace. The…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-07-28T01:51:58.1333333+00:00
Will Pittenger 306 Reputation points
commented 2024-07-31T09:57:35.5533333+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
1 answer

An unexpected behavior occurs when set a long string in the TextBox

Hello, This problem happens when I try to put a string with a length greater than 15.684 characters. The height of TextBox increases abruptly and the TextBox turns into non-editable. Please, help me handle it Example

Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-07-23T20:12:29.08+00:00
commented 2024-07-30T06:37:48.6733333+00:00
Roy Li - MSFT 33,001 Reputation points Microsoft Vendor
1 answer

What is the format in VS 2022 for "Custom Expression"?

In working on a WPF application in Visual Studio 2022, if you expand the property window for Brush, you get the following display. If you click the small down arrow in the Editor tab, you get the following menu: If you select Custom Expression..., you…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-07-04T17:40:34.44+00:00
Nicholas Piazza 536 Reputation points
commented 2024-07-30T06:07:21.2866667+00:00
Hui Liu-MSFT 48,506 Reputation points Microsoft Vendor
0 answers

Strange line appears when Hover in ARM pc

Hi there. I created a UWP application with a command bar and I'm using it on an ARM computer. There is a tiny diagonal line when hovering the icon and in other buttons happen the same error: My code: <StackPanel x:Name="grid"> …

Universal Windows Platform (UWP)
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
805 questions
asked 2024-07-12T15:03:04.1233333+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
commented 2024-07-23T19:51:36.5833333+00:00
Anderson Rodrigues Cavalcante 316 Reputation points