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,
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. …
Listview selection event event is firing when we click on scroll viewer
Hi Team, i am win ui3 application using windows app sdk version - 1.4.240 I have "list view" inside the "scroll viewer" control . List view - has selection changed event Problem : when i click on the scroll viewer, List view selection…
Package missing in offline source
Microsoft.Windows.SDK.NET.Ref Microsoft.AspNetCore.App.Runtime.win-x64 Microsoft.WindowsDesktop.App.Runtime.win-x64 Microsoft.NETCore.App.Runtime.win-x64 so i am new to winui and i just installed the required things for winui desktop i installed…
Exception thrown when calling async task on Winui C#
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…
Best Practices for Two-Way Data Binding in Large .NET Applications
Hello Microsoft Q&A community, I’m working on a large-scale .NET application, and I’ve been using two-way data binding in my XAML views. However, I’ve heard that this approach can become problematic in large projects. I’d like to understand the best…
How to extract an icon from executable and save it on disk properly? Any lightweight library?
Is there something in c++? (Windows API/ WinRT) I've tried some solutions online and none of them work. I didn't find anything useful on Github either. I want to display the icons regardless of whether the exe is still there, so I want to save the icon;…
[Winui3]How to show a model window?
PrivacyWindow::PrivacyWindow() { InitializeComponent(); //...... window_handle_ = GetWindowHandle(); auto window_id = winrt::Microsoft::UI::GetWindowIdFromWindow(window_handle_); app_window_ =…
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…
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
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…
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…
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…
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…
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…
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?
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: 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…
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…
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…