800 questions with XAML-related tags

Sort by: Updated
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.
800 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,800 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.
800 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,349 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 32,911 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,751 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,800 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.
800 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,515 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,751 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,800 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.
800 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,349 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,515 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.
772 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.
800 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,496 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,343 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.
800 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.) 41,351 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,751 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,011 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,800 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.
800 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 65 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.
772 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.
800 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,751 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,800 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.
800 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,349 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,751 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,800 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.
800 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,759 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,751 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,800 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.
800 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,256 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.
800 questions
asked 2024-07-23T20:12:29.08+00:00
commented 2024-07-30T06:37:48.6733333+00:00
Roy Li - MSFT 32,911 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,759 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,011 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.
800 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,256 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.
800 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
1 answer

how do I convert an XML file that Visual Studio generates into something useful like a help file

I am trying to find a good way to document my programs and libraries that I create in Visual Studio. I understand how to make the XML comments and generate the XML file. But, then, what can I do with it? I have found various suggestions on the…

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.
800 questions
asked 2024-07-08T17:18:42.9666667+00:00
Joe Babb 60 Reputation points
answered 2024-07-15T16:42:29.4966667+00:00
Joe Babb 60 Reputation points
2 answers One of the answers was accepted by the question author.

How to remove the clear button at the end of the TextBox in WinUI3

If the TextBox is getting focus and there chars it, there will be a X button appear, so how to remove or hidden the button.

Universal Windows Platform (UWP)
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.
772 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.
800 questions
asked 2024-07-10T09:52:42.2533333+00:00
C CB 150 Reputation points
commented 2024-07-12T02:25:08.8866667+00:00
C CB 150 Reputation points
1 answer

Text inversion in right-to-left languages such as Persian in the Itextsharp Paragraph

First and foremost, I apologize for my grammatical errors; my first language is Persian (Iran). I want to add Persian text to the PDF headline, but when I do this through the iTextSharp.text.Paragraph class, I get into trouble. I can solve this…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,882 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,751 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,800 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.
800 questions
asked 2021-11-12T23:34:53.513+00:00
رضا جافری 1,296 Reputation points
commented 2024-07-10T08:48:51.74+00:00
Enayatullah 0 Reputation points
1 answer One of the answers was accepted by the question author.

Change RadioButton Color in Combined States - WinUI/UWP

Hello. I'm trying to change the radio button color according to combined states: CheckedPressed, UncheckedPressed, CheckedPointerOver, CheckedDisabled, UncheckedDisabled. How can I do that? I added these states but didn't work.

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.
800 questions
asked 2024-07-01T19:15:42.5766667+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
accepted 2024-07-09T11:38:32.19+00:00
Anderson Rodrigues Cavalcante 316 Reputation points
0 answers

Unable to disconnect device on Samsung Android devices when Bluetooth connection is off

I am using the Ble.plugin to connect to BLE devices. However, I am having trouble disconnecting the device when Bluetooth is turned off on Samsung mobile devices. I can successfully disconnect on all other Android devices except for Samsung. Can someone…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,332 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,800 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.
800 questions
asked 2024-07-08T13:14:42.7766667+00:00
Sk 61 Reputation points
commented 2024-07-09T01:35:25.4+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 30,231 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to flatten the XML

Hi have a complex XML structured as per attached below. How can I flatten the XML using XSLT? I have attached the expected sample flatten xml(expected_ouput_flat_oder_xml.xml) based on the complex xml(Order_xml.xml) I provided. I have tried using the…

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.
800 questions
asked 2024-07-03T09:51:20.1633333+00:00
jn93 671 Reputation points
commented 2024-07-05T09:36:39.54+00:00
Viorel 116.4K Reputation points