1,847 questions
0
votes
1
answer
2k
views
WinUI 3 XAML Animations
In a WinUi 3 MVVM project I have a media (image and videos) Json list that plays one my one with a certain duration, I am trying to add a fade in and out whenever the image changes, I have tried ...
0
votes
2
answers
222
views
Ef Core Migration Commands Do Not Work In WinUI3 Project. Error is WindowsAppSDKSelfContained requires a supported Windows architecture
I'm working on a WinUI3 application. I created the project using Template Studio and modified the project files to get is working with dotnet 9. Everything was going smooth until I needed to ...
1
vote
2
answers
129
views
How to Enable Hot Reload in Visual Studio for WinUi 3 Development?
I have been developing a WinUI 3 application on Visual Studio but for every change in XAML reloading the application seems too much. I see the Hot Reload button and it working when i do changes from ...
1
vote
1
answer
163
views
Why task cancellation does not work in my code?
I have a code that creates qr-code in MainThread after user's typing. To prevent generation after each small change I tried to create kind of timer with Task.Delay and CancellationToken that could be ...
1
vote
1
answer
311
views
How can I set (and why is it not already set) the preview sink for the camera in my WinUI application?
I'm making a WinUI3 application, that displays a camera feed to the user, and can stop/start it with a button. So far I've followed the "tutorial" by Microsoft. I have the following code in ...
1
vote
1
answer
555
views
how to get or set git global config using libgit2sharp
I am learning C# and trying to develop a git client, currently using the library: libgit2sharp,
Now I have a requirement to display and support modification of git global config, such as "user....
1
vote
1
answer
99
views
Why in a WinUI3 app, does DataContext binding work when debugging but causes exception when deployed and run [closed]
I have a WinUI3 app that I am trying to use in an MVVM pattern.
I have a ViewModel that implements INotifyPropertyChanged. In that ViewModel I have a simple string property (TextBoxContent) that calls ...
1
vote
1
answer
108
views
Copy part of the drawing in the same DrawingSession
I want to design a continues moving "waterfall" to represent a radio spectrum.
The way to do this in for example HTML5 is to draw 1 horizontal line at the top.
Then copy the entire drawing ...
0
votes
1
answer
1k
views
Start Winui 3 App from command line with arguments [closed]
My application is packaged and deployed using a local msix installer.
The installer works fine and the app runs fine.
For testing and maintenance scenarios, I need to be able to run the app from the ...
0
votes
1
answer
181
views
Why WebView2 aren't load in WinUi3 App in C:\Program Files? [closed]
I have written a small program, what downloads 2 PDFs (marketplace shipping label), depending on a given purchase order on commandline. The App itself is build as unpackaged WinUI3. After downloading ...
1
vote
1
answer
55
views
How to prevent the touch keyboard in Windows from opening for the Touch machines?
I am building a custom keyboard for my WinUI3 application for Touch machines. I couldn't prevent the default Touch Keyboard from opening when a textbox receives focus. I tried the following approach ...
1
vote
1
answer
75
views
How to highlight part of the text with background color while preserving text wrapping in WinUI 3?
I am working on a WinUI 3 application and need to display a line of text where only a portion of the text has a colored background (like a highlight). The requirement is:
The text should wrap exactly ...
1
vote
1
answer
130
views
WinUI 3 - How to disable opening and closing animation of content dialog?
I am using winui3 content dialog , when opened it is opening with an animation and when closed it is closing with an animation.
<VisualTransition To="DialogHidden">
<Storyboard&...
1
vote
1
answer
499
views
Why Are Conditional XAML Setters In Default WinUI Styles Invalid In UWP?
I copied the default WinUI button style from the WinUI GitHub repo into an empty project. Below is my App.xaml. When I try to run the project, I get this error: The XAML Binary Format (XBF) generator ...
1
vote
1
answer
278
views
Display PlaceholderText When DateTime is null in CalendarPicker in UWP XAML
I have a CalendarDatePicker with some DateTime object bound to it's Date property. When the bound Date is null, The picker is showing the least date available (1/1/1922). How can I make the picker ...
-1
votes
1
answer
152
views
Is it possible to use OxyPlot with Uno Platform? [closed]
I am trying to transfer a UWP project to Uno Platform. I want to run the app on Linux later and I am using VS22. The project uses OxyPlot to plot some charts and I am having problems to integrate ...
2
votes
1
answer
169
views
determine default browser setting in a WinUI app in Windows11
I followed several hints on how to get the "default browser" in windows, but they all are how to read the registry path from Current.User:
Software\Microsoft\Windows\Shell\Associations\...
1
vote
1
answer
114
views
Memory is not getting released in WinUI application
I have a WinUI application, which uses Newtonsoft.Json for json serialization and use x:Bind for binding the value to xaml UI. There are various UI elements like, listview, gridview, buttons, ...
4
votes
1
answer
124
views
WinUI 3 DataTemplateSelector always crashed when using AOT
// English is not my native language; please excuse typing errors.
WinUi3 dotNet8.0 Win11(22631.4317) VisualStudio Enterprise 2022 17.14.0
First, I use a DataTemplateSelector in a ListView
<...
-1
votes
1
answer
69
views
How to bring the selected date into view in the calendarview control of WinUI?
I have created a calenderview in winui3 for my project. I am setting the selected date in the code behind file. But the calendar is not bringing the selected date into view. How to fix this?
If I set ...
0
votes
0
answers
45
views
WinUI 3 Unpackaged App: Toast Notification Button Clicks Not Working - Complete Solution
Problem
Toast notification buttons in an unpackaged WinUI 3 app don't trigger the OnNotificationInvoked event handler, despite proper event registration and manifest configuration.
Symptoms
Toast ...
1
vote
2
answers
236
views
Managed exceptions in MAUI Windows app logged as CoreMessagingXP.dll crashes
I am facing an issue where most exceptions thrown in my .NET MAUI Windows app appear in the Windows Event Viewer as if they are coming from CoreMessagingXP.dll instead of showing the actual managed ...
0
votes
2
answers
153
views
Drag and drop management in TreeViews in WinUI 3
I'm developing a WinUI 3 page in C# where I'm having trouble setting up the Drag and Drop of a TreeView.
When I perform the Drag and Drop from a ListView present in another page everything works ...
1
vote
1
answer
70
views
What are the steps needed to convert a packaged WinUI3 app to an unpackaged one
I tried adding <WindowsPackageType>None</WindowsPackageType> and deleting Package.appxmanifest but I get Improper project configuration: WindowsPackageType is set to None, but AppxPackage ...
0
votes
0
answers
77
views
Consume a C# component with WinUI 3 controls from a WinRT/Win32 project
I followed this tutorial https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/create-winrt-component-winui-cswinrt and I would like to do the same thing but from a Win32 ...