705 questions with Windows App SDK tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How to bind a button's command inside a data template in winUI3

I am working on a project using WinUI3. You want to create navigation in the Main Window and modify the Header with DataTemplate. How do I do the <button command="{binding}" within the data template at this time? <NavigationView…

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.
705 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,054 questions
asked 2024-03-08T06:38:16.55+00:00
차준혁 40 Reputation points
accepted 2024-03-19T02:13:53.0933333+00:00
차준혁 40 Reputation points
0 answers

Is there a way to find the DownLoad folder programmatically?

You know, where remote systems put things when they don't give you a chance to tell them where to put them, The Environment.SpecialFolders enum doesn't see to have one,

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.
705 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,824 questions
asked 2024-03-16T20:19:05.3966667+00:00
Marc Graham 6 Reputation points
commented 2024-03-18T01:31:03.25+00:00
Xiaopo Yang - MSFT 11,001 Reputation points Microsoft Vendor
0 answers

Add immovable "Edit" button to ComboBox in WinUI 3

Is it possible to add a immovable button (item) to the ComboBox, maybe by custom XAML in the App.xaml like in the image? (As you can see, the button is immovable below the scrollable part of the ComboBox.) Regards

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.
705 questions
asked 2024-03-10T10:13:23.5033333+00:00
youki 991 Reputation points
commented 2024-03-16T13:42:40.84+00:00
youki 991 Reputation points
1 answer

Listing serial ports winui c# visual studio 2022

Dear everybody. Using Microsoft Visual Studio Community 2022 (64 bits) - Current Versión 17.9.3 on Windows 10 most recent update, Packaged WinUI with C# I am programming from scratch a new program (WinUI with C#) to manage my motorized telescope and I am…

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.
705 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,054 questions
asked 2024-03-13T11:06:18.64+00:00
Paul Harvey Chiverton Messina 5 Reputation points
commented 2024-03-15T01:44:20.1266667+00:00
Xiaopo Yang - MSFT 11,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Alternatives for the application to make it as a packaged application?

Hi, I am currently building a WinUI3 C++ application using Windows App SDK. But currently the application is unpackaged mode. I am currently thinking to shift to packaged mode as it is recommended by the Microsoft currently I have tried the sample…

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.
705 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,472 questions
asked 2024-03-13T04:17:56.3366667+00:00
Rohan Pande 210 Reputation points
commented 2024-03-14T06:00:42.71+00:00
Jeanine Zhang-MSFT 8,766 Reputation points Microsoft Vendor
1 answer

How to apply transitions in ItemsView on reload in WinUI 3?

I have an ItemsView and the transition gets applied when loading the items by a ViewModel but when I reload the ViewModel, there is no transition. <ItemsView…

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.
705 questions
asked 2024-03-13T16:26:29.3166667+00:00
youki 991 Reputation points
answered 2024-03-13T18:08:09.4433333+00:00
youki 991 Reputation points
0 answers

how to track down source of kernelbase.dll error (event ID 1000)

Hi, I have an app made in Windows App SDK. Lately however it seems to crash every 3-4 hours. I've tried to add logging everywhere but i have no clue how or why it crashes. It crashes randomly and in the event viewer it throws the following…

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.
705 questions
asked 2023-03-20T11:35:17.6166667+00:00
Mao Uyen Tram 106 Reputation points
edited a comment 2024-03-11T08:35:30.6633333+00:00
Ivan Stupak 0 Reputation points
1 answer

App package not installed in WinUI3???

Hello, I added a Packaging Project to my unpackaged WinUI 3 app and set the Packaging Project as Startup Project in VS 2022. I get the following error: DEP0800: The required framework "C:\Users\xxx\source\repos\cpp\UI_Test…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,482 questions
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.
705 questions
asked 2024-03-02T02:24:38.6866667+00:00
youki 991 Reputation points
edited a comment 2024-03-07T23:00:00.8066667+00:00
youki 991 Reputation points
1 answer

Best practices for handling resources (.resw) that need to be formatted

I have resources like Formatted by {0} on x Approach #1 In the backend (.cs file), we create a parameter like so: string FormattedString = string.format(getResource("abc"), userId); and use the FormmatedString directly in the xaml file. …

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.
705 questions
asked 2024-03-05T07:39:10.5733333+00:00
Brij 0 Reputation points
commented 2024-03-07T05:55:02.2333333+00:00
Xiaopo Yang - MSFT 11,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How can I view HTML files in local on winUI as webView 2?

Hello, I have a simple problem. I want to work on the screen using the html file within the project using webView 2 in the win UI 3 project. The path of the local HTML file is shown in the following image.... In order to use webView 2, I wrote…

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.
705 questions
asked 2024-02-15T00:32:00.64+00:00
차준혁 40 Reputation points
accepted 2024-03-07T02:49:12.8833333+00:00
차준혁 40 Reputation points
3 answers One of the answers was accepted by the question author.

[Winui3]How to show a model window?

PrivacyWindow::PrivacyWindow() { InitializeComponent(); //...... window_handle_ = GetWindowHandle(); auto window_id = winrt::Microsoft::UI::GetWindowIdFromWindow(window_handle_); app_window_ =…

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.
705 questions
asked 2022-07-01T08:22:42.937+00:00
lei han 46 Reputation points
commented 2024-03-06T14:49:34.35+00:00
Torsten Krause 0 Reputation points
1 answer

Use Windows App SDK and WinUI 3 to develop an ESim application,Can this be done?

Hello, I want to use Windows App SDK and WinUI 3 to develop an ESim application, download ESimProfile, enable Profile and other ESIM-related features. Can this be done?

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.
705 questions
asked 2024-03-06T02:47:10.72+00:00
Yaguang Ruan 20 Reputation points
commented 2024-03-06T08:18:53.23+00:00
Jeanine Zhang-MSFT 8,766 Reputation points Microsoft Vendor
1 answer

IMFSourceReader::ReadSample hangs randomly on ARM64

IMFSourceReader::ReadSample hangs randomly on ARM64. This happens very infrequently, but can be easily reproduced with the code below (be patient and let it run for a while). On x64 it seems to work fine, so you really need to compile it for ARM64 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.
705 questions
asked 2024-02-25T14:14:17.4133333+00:00
Ianier Munoz 5 Reputation points
commented 2024-03-04T01:36:17.7433333+00:00
Xiaopo Yang - MSFT 11,001 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

WinUI3: ToggleSwitch IsEnabled x:Bind does not work

Hi, Could anybody show me how to enable/disable ToggleSwitch from binding property. This is what I have done for testing: From xaml file: From code behind: Thanks.

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.
705 questions
asked 2023-01-19T09:30:10.6266667+00:00
Minh Van 171 Reputation points
commented 2024-03-03T18:00:32.07+00:00
Luca Ziegler 6 Reputation points
0 answers

Windows App: ProximityDevice NFC events not triggered / NFC doesn't work at all

was first posted as issue here: https://github.com/microsoft/microsoft-ui-xaml/issues/9358 Describe the bug We have an app that we migrated from UWP to WinUI 3 a while ago. Unfortunately, we discovered that with the WinUI 3 app the ProximityDevice NFC…

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.
705 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,054 questions
asked 2024-02-29T18:39:22.2433333+00:00
Nico K 0 Reputation points
commented 2024-03-01T08:59:19.73+00:00
Jeanine Zhang-MSFT 8,766 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Can we use UWP APIs for WinUI3 desktop Applications?

Hi, I am building a WinUI3 desktop application where I am looking for notifications. I have tried out the App Notifications which are part of Windows App SDK but I am currently looking into Badge Notifications. So, I found this Badge Notification…

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.
705 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,472 questions
asked 2024-02-16T09:34:58.17+00:00
Rohan Pande 210 Reputation points
edited the question 2024-03-01T06:07:38.5+00:00
Roy Li - MSFT 31,521 Reputation points Microsoft Vendor
0 answers

Need Help with Generating PDB File in GitHub Actions for WinUI Project

Hello, I have a solution that includes a WinUI project and a few other projects. I’m using MSBuild in GitHub Actions to generate an MSIXUPLOAD file. However, I’m also in need of a PDB file. Here’s the MSBuild command I’m currently using: # Create the…

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.
705 questions
asked 2024-02-29T07:40:05.3433333+00:00
Ashok Thulasidharan 0 Reputation points
edited the question 2024-02-29T08:45:57.1466667+00:00
Jiale Xue - MSFT 21,441 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

WinUI - MessageDialog in App.xaml.cs does not work

Before the MainWindow is created and called, the programme should establish a connection to the database and read data. In case of an error, a message should be displayed and the programme closed without the main window appearing. I have tried various…

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,638 questions
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.
705 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.
750 questions
asked 2022-03-04T08:03:30.063+00:00
Andreas Mazatis 131 Reputation points
edited a comment 2024-02-28T21:10:12.1066667+00:00
Enrique Ballarin 0 Reputation points
1 answer

Regarding the android minsdk version in .net maui

Severity Code Description Project File Line Suppression State Error AMM0000 uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library C:\Mtechwebx folder\M-PriceCheker\obj\Debug\net7.0-android\lp\132\jl\AndroidManifest.xml as the…

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.
705 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-02-26T11:16:21.29+00:00
Faizan Khan 0 Reputation points
answered 2024-02-27T03:02:16.4433333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to make my MAUI app use the latetest Microsoft.WindowsAppSDK

I have my MAUI app running on the latest version of MAUI, but see in the transitive dependencies that the used Microsoft.WindowsAppSDK is still version 1.3.x. While there is a stable version of 1.4.x which contains fixes for my WinUI app which I would…

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.
705 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-02-20T06:50:35.1366667+00:00
C. Veeningen (c) 20 Reputation points
accepted 2024-02-26T07:17:10.8433333+00:00
C. Veeningen (c) 20 Reputation points