817 questions with XAML-related tags

Sort by: Updated
0 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI

I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…

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.
802 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.
11,072 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.
817 questions
asked Nov 23, 2024, 9:39 AM
LÊ CAO TUẤN VŨ 0 Reputation points
commented Nov 25, 2024, 1:58 AM
Junjie Zhu - MSFT 19,481 Reputation points Microsoft Vendor
4 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,671 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.
817 questions
asked Sep 24, 2024, 4:33 AM
TazKing 85 Reputation points
answered Nov 24, 2024, 8:26 AM
TazKing 85 Reputation points
1 answer One of the answers was accepted by the question author.

Sometimes click something in The WebView2 Page will open a new Microsoft Edge Window,could we show it in the Webview2 replace open a new window?

With local file WebView2: var env = await CoreWebView2Environment.CreateAsync(WebViewRuntimeFolder, DataFolder, opt)); await webView.EnsureCoreWebView2Async(env); I want whatever you click in the WebView2,The requested showed in the WebView2 Element,…

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,789 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.
817 questions
asked Oct 27, 2021, 2:51 AM
GuoLearn 251 Reputation points
commented Nov 21, 2024, 1:50 PM
Rahul Khandelwal 0 Reputation points
1 answer

How to change tabbar style (font and size and ...)

i want change the style of tabbar menu item font and size and color how to do it ? AppShell <TabBar > <Tab Title="پروفایل" > <Tab.Icon> <FontImageSource FontFamily="MDReg"…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,650 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,671 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.
817 questions
asked Nov 14, 2024, 5:09 AM
Mahdi Elahi 31 Reputation points
answered Nov 21, 2024, 8:59 AM
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,791 Reputation points Microsoft Vendor
1 answer

Double tapping Editor control locks app when deployed to iOS

Double tapping the Editor locks the app when deployed to iOS. This occurs for both net 8 and 9. Entry control works well and does not lock up the app. I added Editor and Entry controls to the demo Maui app as below. Am I missing a setting? Any known…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,671 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.
817 questions
asked Nov 14, 2024, 7:29 AM
TazKing 85 Reputation points
answered Nov 21, 2024, 8:20 AM
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 32,936 Reputation points Microsoft Vendor
0 answers

How fix System.ArgumentNullException

L'erreur complet : System.ArgumentNullException HResult=0x80004003 Message=Value cannot be null. Arg_ParamName_Name Source=Microsoft.EntityFrameworkCore Arborescence des appels de procédure : à…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
760 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 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.
817 questions
asked Oct 28, 2024, 4:59 PM
Christian Nahbi 0 Reputation points
commented Oct 29, 2024, 9:43 PM
Christian Nahbi 0 Reputation points
1 answer One of the answers was accepted by the question author.

High RAM Usage with Custom Splash Screen in WPF (Code-Behind, .NET Core 6) - How to Reduce Memory Consumption?

I'm working on a WPF application using .NET Core 6 (Code-Behind, no MVVM) in Visual Studio 2022 on Windows 10. I've created a customized splash screen that displays a GIF on startup. The splash screen closes once the app has fully loaded. My problem is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 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,789 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,236 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.
11,072 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.
817 questions
asked Oct 23, 2024, 2:45 AM
Mojtaba_Hakim 321 Reputation points
edited the question Oct 28, 2024, 2:14 AM
Jack J Jun 24,521 Reputation points Microsoft Vendor
0 answers

Crash issue from Microsoft official Win32 C++ custom WinRT XAML control tutorial

Build was ok, but got a crash after following the official Microsoft official Win32 custom WinRT XAML control tutorial https://video2.skills-academy.com/en-us/windows/apps/desktop/modernize/xaml-islands/host-custom-control-with-xaml-islands-cpp: Clicking…

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,672 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,777 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.
817 questions
asked Oct 18, 2024, 2:50 AM
KKL 0 Reputation points
commented Oct 22, 2024, 2:32 PM
KKL 0 Reputation points
1 answer One of the answers was accepted by the question author.

[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)
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.
817 questions
asked Sep 30, 2024, 7:38 AM
Md. Niaz Mahmud 131 Reputation points
accepted Oct 22, 2024, 8:10 AM
Md. Niaz Mahmud 131 Reputation points
1 answer One of the answers was accepted by the question author.

How to build an application correctly in the WinUI3 project template?

I am working in the Blank App, Packaged (WinUI 3 in Desktop). When compiling and launching a new project in Visual Studio using the keyboard shortcut "Ctrl + F5", the application opens without problems. However, when building the project and…

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.
802 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.
817 questions
asked Oct 15, 2024, 2:33 PM
RΞY 20 Reputation points
edited an answer Oct 18, 2024, 5:12 AM
Roy Li - MSFT 33,471 Reputation points Microsoft Vendor
0 answers

How to Extend TextBox's Text Property to Show Binding Value in the Properties Window without XAML Updates?

I am working with WPF and trying to extend the functionality of a Text property in the Properties in the design mode in the TextBox, but I’m running into limitations with the Text property. Here’s what I want to achieve: In WPF, when Text has Binding,…

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.
817 questions
asked Oct 13, 2024, 6:36 PM
Coala 0 Reputation points
edited the question Oct 13, 2024, 6:44 PM
Coala 0 Reputation points
1 answer One of the answers was accepted by the question author.

WPF TextBox Style Customization: CaretBrush Disappeared After Trigger Setup

Seeking assistance with customizing the style properties of a TextBox in WPF: Background: MouseOver #505050 & not MouseOver #303030 Foreground: #FFFFFF BorderBrush: MouseOver #868686 & not MouseOver #666666 CaretBrush Despite setting up…

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,789 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.
11,072 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.
817 questions
asked Oct 6, 2024, 11:49 AM
StreamingMoon 20 Reputation points
accepted Oct 7, 2024, 3:45 AM
StreamingMoon 20 Reputation points
1 answer One of the answers was accepted by the question author.

search code does not execute (xaml page,pagemodel or MVVM )

I'm trying to add a search bar to my app, but can not get the code to execute. I've placed breakpoints in the pagemodel but they are tripped. Xaml: <SearchBar x:Name="searchBar" HorizontalOptions="Fill" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,671 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.
11,072 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.
817 questions
asked Oct 1, 2024, 1:18 PM
tim 200 Reputation points
commented Oct 3, 2024, 9:15 PM
tim 200 Reputation points
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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,951 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.
817 questions
asked Jul 3, 2024, 9:51 AM
jn93 671 Reputation points
edited the question Oct 3, 2024, 9:31 AM
Jack J Jun 24,521 Reputation points Microsoft Vendor
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

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,789 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.
817 questions
asked Sep 30, 2021, 8:50 AM
XAML WPF Developer 36 Reputation points
edited the question Oct 3, 2024, 9:29 AM
Jack J Jun 24,521 Reputation points Microsoft Vendor
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,672 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.
817 questions
asked Sep 11, 2024, 12:08 PM
Kavitha T 0 Reputation points
commented Oct 2, 2024, 8:33 AM
Junjie Zhu - MSFT 19,481 Reputation points Microsoft Vendor
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,951 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.
11,072 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.
817 questions
asked Sep 16, 2024, 5:48 AM
Harsini 0 Reputation points
commented Sep 27, 2024, 7:02 AM
Harsini 0 Reputation points
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,789 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,005 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.
11,072 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.
817 questions
asked Sep 11, 2024, 9:41 PM
MERUN KUMAR MAITY 601 Reputation points
commented Sep 23, 2024, 9:16 AM
Hongrui Yu-MSFT 3,015 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,671 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.
817 questions
asked Sep 16, 2024, 1:26 PM
c00012 741 Reputation points
commented Sep 23, 2024, 1:01 AM
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,166 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,671 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.
11,072 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.
817 questions
asked Jun 11, 2024, 4:27 AM
Md Mosabbir Alam 20 Reputation points
commented Sep 20, 2024, 5:51 AM
Md Mosabbir Alam 20 Reputation points