1,847 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:
...
1
vote
1
answer
74
views
First item in SettingsExpander gets loaded and immediately unloaded
I have the following simplified xaml code within a page:
<controls:SettingsExpander
x:Name="ColorSettingsExpander"
VerticalAlignment="Top"
Header="Color ...
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
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 ...
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\...
3
votes
1
answer
77
views
Is it possible to remove the opening and closing animations of a content dialog in WinUI 3?
I am working on a winui3 app where I wanted to remove the opening and closing animations of a Content Dialog. I tried removing the visual transactions but the animations still exists. Am I doing the ...
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
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 ...
0
votes
1
answer
74
views
How do I find WHAT APP opened my Windows MAUI app with a URI (e.g., which browser)
I have a Windows MAUI .NET 9 app which can be opened with a URI. My clients present a web page to their users, who can click on a button to request my MAUI (WinUI) app to open and do something. The ...
1
vote
2
answers
85
views
Grouping items in a WinUI 3 ComboBox control
I have tried grouping the items in the combobox like below
Fruits
Apple
Banana
Vegetables
Carrot
Brinjal
I have used collectionview source to created the grouped source like below
public ...
-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 ...
2
votes
2
answers
99
views
SwapChainPanel does not receive KeyDown events
I am developing a WinUI 3 app in C#.
I am using a SwapChainPanel and I want to handle keyboard input (for example, the Delete key) using the KeyDown event.
However, the event never fires.
Here is a ...
0
votes
0
answers
108
views
Is there a way to preview and print reports in .NET WinUI 3?
I have my desktop application in .NET WinUI3 and I don’t know how to design and print reports. I’ve tried designing them in FastReport, in a separate app on my computer, and importing the .frx
enter ...
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 ...
2
votes
1
answer
127
views
How to get rid of the box from the first item of GridView In WinUI3?
I have customized GridView "UserDesktopGridView" on a UserControl called "DesktopView", and the GridView's "SelectionMode"="None". However, when the "...
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 ...
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, ...
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
68
views
How do I reload a WinUI3 project after updating Visual Studio?
The feed 'MUX-Dependencies [https://pkgs.dev.azure.com/shine-oss/microsoft-ui-xaml/_packaging/MUX-Dependencies/nuget/v3/index.json]' lists package 'Microsoft.NET.ILLink.Tasks.8.0.19' but multiple ...
1
vote
1
answer
80
views
How to unify ScrollViewer Scroll across two columns?
I'm building a two-column layout in WinUI 3 using a Grid, where each column can have a different amount of content (for example, the left column might be taller than the right one, or vice versa). I ...
2
votes
3
answers
197
views
How to show a ContentDialog before displaying any window?
I have a WinUi3 app written in C++.
I want to show a "MessageBox" before displaying the main window of the application (only sometimes, and based on some switch received in command line).
I ...
1
vote
2
answers
236
views
WinUI 3 Class Library Dependency Injection
I'm using .NET 9, WinUI 3, CommTk.mvvm, Microsoft DI.
I have 3 projects in the solution:
WinUI 3 (the interface)
WinUI 3 class library (user controls to be used in multiple WinUI 3 projects)
C# class ...
1
vote
1
answer
47
views
Capturing a photo with CameraCaptureUI opens post-capture editor popup on some Windows 10 devices
I have a WinUI 3 app where I capture a photo with the following code:
var cameraUI = new CameraCaptureUI(windowId);
var file = await cameraUI.CaptureFileAsync(CameraCaptureUIMode.Photo);
This opens ...
1
vote
2
answers
347
views
How to get to HCI level on Windows
I want to develop an app to control Bluetooth devices. I have to implement connect and disconnect features. The standard Bluetooth API in WinUI3 doesn't provide the necessary instruments for that ...