719 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 ...
0
votes
0
answers
39
views
Title: Fixing Shaking and Jumping in Custom LoopPanel with Inertia Scrolling and Snap-to-Item
I have a custom LoopPanel in WinUI, and I’m trying to implement inertia smooth scrolling and a snap-to-item feature.
I implemented both features, but I’m seeing some weird behavior: the panel shakes ...
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 ...
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
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
vote
1
answer
47
views
How can I hide the dates that are not part of the current month in the CalendarView control in WinUI 3?
I am using the CalendarView control in my WinUI 3 project. I want to hide the out-of-scope dates. I didn’t find any property for this. I can set the OutOfScopeForeground to match the calendar ...
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 ...
1
vote
1
answer
73
views
Which is the default fallback font used when FontFamily is invalid?
I’m working on an app that is delivered for both platform UWP and WinUI 3. In UWP, when I misspell or provide an invalid FontFamily, it seems to fall back to Segoe UI Variable. However, in WinUI 3, ...
0
votes
1
answer
69
views
How to dynamically change the Itemtemplate of a ListView without a flicker?
I am working on a WinUI3 project. I have a ListView where I want to change the datatemplate during runtime. Whenever I do that I could see a flicker or a visible flash.
Template 1
<DataTemplate ...
0
votes
1
answer
136
views
WINUI Scale without fuzzy
I have a WinUI app:
<Image x:Name="PixelSurface" Stretch="None" HorizontalAlignment="Left" VerticalAlignment="Top">
<Image.RenderTransform>
...
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 ...
0
votes
2
answers
51
views
Selected item not visible when opened
I have a requirement where the ComboBox popup should be shown below the ComboBox and the Selected Item should be different i.e the selected item should be shown with an Icon on the left.
To show the ...
3
votes
2
answers
72
views
Unable to use binding with ItemsView
I am trying to create an ItemsView with a collection of Images from Microsoft.UI.Xaml.Media.Imaging. The ItemsView is populated by a FilePicker in a CommandBar. The Images property is getting ...
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
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 ...
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
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 ...
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, ...
1
vote
1
answer
276
views
How to make the expander control's content area overlay in WinUI 3?
Took these lines from WinUI 3 expander class documentation.
Use an Expander to focus on the most important content when display space is limited. The Expander control lets you show or hide less ...
1
vote
1
answer
72
views
Is it possible to have a GridView with UniformGridLayout?
ItemsRepeater Layout can be changed to UnformGridLayout which makes the items to evenly distribute in the available space.
<ItemsRepeater
XYFocusKeyboardNavigation="Enabled"
...
2
votes
2
answers
990
views
Where are DataTable and DataColumn in WinUI 3?
I want to use DataGrid in WinUI 3, and I noticed that the WinUI3 gallery and the Windows Community Toolkit gallery have different DataGrid table controls.
I can’t find where the DataTable is located.
...