270 questions
-1
votes
0
answers
28
views
Casting from list of VirtualKey objects to RegisterHotKey
I'm using DevWinUI's shortcut control but I'm confused on how to get the key and modifiers from it and then casting it to the proper types for RegisterHotKey.
The shortcut control returns public new ...
-1
votes
1
answer
49
views
Set content of button in WinUI 3 to a StackPanel
Hello people of Stack Overflow. Recently, I've been working on a project in WinUi3, and I haven't been able to find a way to set the content of a Button to a StackPanel.
In WPF you could just do:
...
0
votes
0
answers
67
views
WinUI ItemsRepeater weird behavior
I'm using the header of the listview to filter item inside it.
What I'd want, would be, to have the TextBox Collapsed by default and on PointerReleased on the TextBlock to put it Visible.
When ...
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 ...
2
votes
2
answers
80
views
ComboBox with SelectedValuePath and DisplayMemberPath does not show initial value
I am trying to display items in a WinUI 3 ComboBox using SelectedValuePath and DisplayMemberPath. However, the ComboBox does not show the initial selected value.
<ComboBox
x:Name="...
-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 ...
1
vote
2
answers
104
views
How to dispose the events and properties when creating custom controls in WinUI 3?
I have created a custom control in winui3 and in OnApplyTemplate() i have subscribed for few events. How to unsubscribe these events? . I have tried it in unloaded event but unloaded event is called ...
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 ...
2
votes
1
answer
88
views
Unable to override SystemAccentColor via XAML (only works when changed in Windows Settings)
I am working with a WinUI 3 app and would like to change the system accent color for my application.
According to Microsoft Learn, the accent color can be overridden in App.xaml like this:
<...
1
vote
1
answer
79
views
What is the recommended way to override the default bootstrapper for unpacked Winui3 apps?
I have an unpackaged WinUI3 app which will automatically prompt the user if the required WinAppSDK is missing and to download the latest one with the provided link. My problem is that if my app uses e....
1
vote
1
answer
349
views
Blank App, Packaged (WinUI 3 in Desktop) is missing
I believe my setup meets all the requirements on my Windows 11 24H2 machine but I can't find the "Blank App, Packaged (WinUI 3 in Desktop)" template.
I have VS2022, installed .NET desktop ...
2
votes
1
answer
40
views
FlowDirection.RightToLeft does not apply to custom TitleBar or caption buttons
I'm building a WinUI 3 desktop application with a custom TitleBar. I've applied FlowDirection="RightToLeft" to the main grid in my MainWindow.xaml, but the caption buttons (minimize, ...
0
votes
0
answers
140
views
Microsoft C++ exception: winrt::hresult_class_not_registered at memory location
I was trying the sample code from here
While trying to execute cpp-console-unpackaged sample of Push Notification, I am facing error:
Unhandled exception at 0x00007FFE067101DC in ConsoleApplication2....
3
votes
1
answer
100
views
WinUI 3 ItemsView with LinedFlowLayout items shrinking instead of wrapping
I have an ItemsView control with LinedFlowLayout inside my WinUI 3 application. I would like to make a list of "tags", but for some reason I cannot figure out, when the window is resized ...
1
vote
2
answers
138
views
When hovering pointer over taskbar icon, it is showing default icon. How to fix this?
I am currently developing a desktop application using WinUI 3 (Windows App SDK). While most of the UI is working as expected, I’ve noticed that the application’s icon displayed in the taskbar ...
1
vote
1
answer
60
views
How to set the SelectedItem for the ItemsView control in WinUI 3?
The ItemsView's SelectedItem Property is a readonly property so it doesn't support two way binding. You can find the reference here
https://learn.microsoft.com/en-us/windows/windows-app-sdk/api/winrt/...
0
votes
1
answer
1k
views
How do I assign permission for the new Windows app in Azure?
Microsoft is phasing out Remote Desktop in favour of Windows app for RDP. I have installed windows app but get the following error:
It looks like your system administrator hasn't set up any resources ...
0
votes
0
answers
61
views
How to Process Low latency input in winui3 (WindowsAppSDK) like uwp
In my UWP project I am using CoreDispatcher.ProcessEvents function
like mentioned in https://github.com/microsoft/Windows-universal-samples/blob/main/Samples/LowLatencyInput/
I want to convert it for ...
0
votes
0
answers
229
views
How to solve System.Runtime.InteropServices.COMException : Class not registered (0x80040154 (REGDB_E_CLASSNOTREG)) while using Windows app SDK
I have a .NET project which has a class library that uses Windows App SDK. I'm trying to run test cases on this class library by creating a test project. But they are failing whenever it is trying to ...
1
vote
1
answer
161
views
WinUI 3: How to Create a GridView with Floating Expandable Rows and Unified Scrolling
How can I create a GridView in WinUI 3 where:
1.Only the first row is visible initially.
2.The second, third, and further rows should be hidden by default and shown on demand (e.g., on a button click)....
1
vote
1
answer
101
views
How to Set Parent Window for Modeless Dialog in WinUI3
I am developing an application in C# using WinUI3 and I am having trouble setting the parent window for a modeless dialog. By setting the parent window, I expect the following effects:
The dialog ...
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
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 ...