719 questions
2
votes
0
answers
69
views
Can I choose which MSIX Application gets launched in my launchSettings.json?
Is it possible to configure which <Application> gets launched when I F5 deploy my projects in Visual Studio?
I have an MSIX WinAppSDK app with a Package.appxmanifest that has multiple <...
2
votes
1
answer
153
views
Crash on WinUI 3 with ObservableCollection<> binded to ItemsSource, only in Release mode
In my WinUI 3 app, I get no errors when the app is in Debug mode, but when I turn the Release mode, I get a System.NullReferenceException.
Looking at the stack it seems to me that the problem is ...
1
vote
1
answer
160
views
WinUI 3 MicaBackdrop in page
I was trying to add mica backdrop to my application
there are pages in my app and how can I not apply the backdrop to them
App.xaml.cs
public App()
{
this....
1
vote
1
answer
152
views
LoadLibrary fails in WinUI3
I am trying to use the SDK in a WinUI 3 C++ application.
When using the SDK, LoadLibrary inside the SDK fails. During debugging, I examined the process and found that calling LoadLibraryExA as a test ...
1
vote
2
answers
153
views
How to Use TextBoxExtensions.Mask for IP address input?
I am developing a WinUI 3 application and would like to use TextBoxExtensions.Mask from the Windows Community Toolkit to restrict input to IP addresses.
For example: 192.1.1.0 or 255.255.255.255.
I ...
1
vote
1
answer
256
views
How to dynamically adjust window size according to the screen scaling in WinUI 3?
I have problem with a WelcomeScreen developed in WinUI 3. In resolution (1920 * 1080), Scale (125%), the controls on the window are displayed correctly, but they are invisible when in resolution (1920 ...
0
votes
0
answers
93
views
WinUI3 Custom title bar drag region state changes when tab added to TabView
Whenever a new tab is added to the tabview, the titlebar drag region swaps between being enabled and disabled. Visually there is no change. Only effect is that the drag region becomes disabled or ...
1
vote
2
answers
129
views
How to make the background of the CommandBar transparent?
Does anyone know how to make the background of the CommandBar transparent when its overflow is open?
I already tried adding the background directly and through code, but it doesn't change its style.
&...
1
vote
1
answer
113
views
Change Parent Window Overlay Transparency with ContentDialog
I want to change the transparency of the overlay displayed on the parent window when the ContentDialog is open. I am using WinUI 3. I have looked into generic.xaml and tried changing a few things, but ...
1
vote
3
answers
120
views
Why is a ScrollViewer created with code not aligned properly inside of a dialog?
I am trying to create content inside of a Scrollbar in a Dialog. I am doing this through C# instead of XAML even though this is Win UI 3. The problem I am experiencing is that my Scrollbar is not on ...
0
votes
0
answers
244
views
My .Net 9.0 MAUI Blazor hybrid app reports 'does not contain a static 'Main' method suitable for an entry point' when being published
In Visual Studio 2022, I created a .Net 9.0 MAUI Blazor hybrid app, which I was able to publish, straight away.
After adding content and functionality to my project, which builds and runs on all ...
0
votes
0
answers
28
views
Windows MediaComposition Raise ComException During RenderToFileAsync and Fail
I have a project using Windows.Media.Editing.MediaComposition and when using it to render a video composed of few clips, the RenderToFileAsync works fine.
The problem is that when using a large amount ...
0
votes
1
answer
162
views
How to change the font of a TextBox in WinUI3
I want to change the font for all TextBox controls in WinUI 3, but it is not working as expected.
I specified the font in the ResourceDictionary of App as follows, but it was not applied to some ...
0
votes
0
answers
77
views
WinUI 3 PropertyChanged event not firing/updating Checkbox
I'm working this bug in a Winui 3 application. As you can see in the following code example, when check/uncheck the "DefaultProgramCheckBox", the SetValue of Variable "DefaultProgram&...
0
votes
0
answers
51
views
Why is my grid background showing over ItemsRepeater contents? WinUI 3
I've got an ItemsRepeater to show events over on a scrolling calendar view. This works well. I've been trying to find a lightweight way to show lines between days. I tried borders, but some of the ...
0
votes
2
answers
240
views
WinUI 3 TabView Binding Not Updating Correctly - Recycling Instances?
Is this a bug in TabView implementation? Or what could I be doing wrong?
Summary:
Binding seems to get out of sync when adding and removing tabs from tab TabView.
Minimal Working Example that ...
0
votes
1
answer
207
views
Titlebar white with Mica in WinUI 3
recently the titlebar of WinUI 3 apps for me is white even though Mica backdrop is enabled. How do I fix this so the Mica also extend to the titlebar?
<Window.SystemBackdrop>
<...
0
votes
1
answer
103
views
How to bind itemsource property to ID
I have one object DataSet which has a name property and a ID property. I have a list of datasets in my viewmodel, which should be the itemsource of a DataGrid Combobox column. I have defined the ...
0
votes
2
answers
118
views
Change property in async method in WinUI3 project will throw COMException
If you try to run an update in one of your properties marked with ObservableProperty from the CommunityTookit.Mvvm package in an async context, you'll get the following exception:
System.Runtime....
1
vote
1
answer
100
views
How to implement background polling in WinUI application in c#
I have a WinUI application where I can select the serial port I need for my tasks, from which data will be read in the future. The problem is that I need to do the polling in the background, ...
1
vote
0
answers
23
views
UWP: Separate XAML for Xbox device
I have a UWP app which can run on both desktop and xbox device.
How can specify a different XAML for some xbox page?
Is there some kind of special folder name I can use to specify a different XAML ...
2
votes
1
answer
116
views
Binding PathIcon Data to Geometry in ResourceDictionary generates runtime error using WinUI-3
I have been getting into WinUI 3, coming from WPF, and started by making a simple user control with an icon and text on it (configured as dependency properties). When I use the control and bind the ...
0
votes
2
answers
64
views
WinUI TemplateSelector for ContentControl does not work
when i run my app, instead of using the data template i just see the full class name of my viewmodel displayed in the control. the MyDataTemplateSelector class in instantiated, but the ...
2
votes
1
answer
287
views
How to specify a nested class for x:DataType in a DataTemplate?
When I try to use x:DataType in a DataTemplate to specify the nested class, I get an error.
I have a nested class structure in C#, as shown below:
namespace sample
{
public class MainData
{
...
1
vote
3
answers
135
views
Can I change WinUI 3 ListViewItemPresenter selection indicator placement from left to top?
I want to create a horizontally scrollable ListView with a selection indicator located at the top or bottom.
Can I achieve that by restyling ListViewItemPresenter or anyhow else reusing it?