807 questions with XAML-related tags

Sort by: Updated
0 answers

[UWP] Change Lottie Animation Color / Theme Dynamically

I have used lottie json animation in xaml uwp using "CommunityToolkit.WinUI.Lottie" and "AnimatedVisualPlayer". But for dark theme I can not see the lottie animation as the color is fixed. How can we dynamically change color of…

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,888 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.
807 questions
asked 2024-09-30T07:38:02.08+00:00
Md. Niaz Mahmud 111 Reputation points
3 answers One of the answers was accepted by the question author.

How to create Custom Window Style in WPF [Drag Window]

Hi To All, How to create Custom Window Style in WPF with Drag-able window

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.
807 questions
asked 2021-09-30T08:50:08.393+00:00
XAML WPF Developer 36 Reputation points
answered 2024-09-30T06:54:49.3233333+00:00
Yi Yongzhong 0 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,823 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,888 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.
807 questions
asked 2024-09-16T05:48:47.1033333+00:00
Harsini 0 Reputation points
commented 2024-09-27T07:02:16.2266667+00:00
Harsini 0 Reputation points
2 answers

Editor controls in grid don't resize correctly after grid and row compressed to zero width and expanded back

Editor controls in a 3x3 grid don't resize correctly after compressing one of the rows and columns to 0 width and height and expanding it back to normal size. The bug is only present on the windows platform using Editor controls. Resizing works correctly…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,460 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.
807 questions
asked 2024-09-24T04:33:12.63+00:00
TazKing 0 Reputation points
commented 2024-09-27T05:37:28.1133333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 42,351 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,765 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
980 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,888 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.
807 questions
asked 2024-09-11T21:41:55.1+00:00
MERUN KUMAR MAITY 596 Reputation points
commented 2024-09-23T09:16:41.3433333+00:00
Hongrui Yu-MSFT 1,690 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,460 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.
807 questions
asked 2024-09-16T13:26:12.72+00:00
c00012 716 Reputation points
commented 2024-09-23T01:01:29.3733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 75,036 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Unable to make full screen splash in .NET MAUI

How can I make splash to display in full screen instead of just at the center of the mobile screen in .NET MAUI? I've tried different base sizes, but not working. Target android version up-to 13. <ItemGroup> <MauiSplashScreen…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,460 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,888 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.
807 questions
asked 2024-06-11T04:27:11.4933333+00:00
Md Mosabbir Alam 20 Reputation points
commented 2024-09-20T05:51:06.8+00:00
Md Mosabbir Alam 20 Reputation points
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,604 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.
807 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,091 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.
807 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.
807 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.
807 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,888 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.
807 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,558 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,091 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,765 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,888 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.
807 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,690 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,765 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,888 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.
807 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,558 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,690 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.
783 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.
807 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,460 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.
807 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,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,765 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,087 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,888 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.
807 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.
783 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.
807 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,765 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,888 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.
807 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,558 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,765 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,888 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.
807 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