719 questions
-1
votes
0
answers
24
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 ...
2
votes
1
answer
46
views
How to unify ScrollViewer Scroll across two columns in Touch machines?
In extension to this question
How to unify ScrollViewer Scroll across two columns?
I have implemented this correctly. For mouse scroll events and trackpad scroll events the ...
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 ...
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 ...
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 ...
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 ...
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
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 ...
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, ...
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
votes
1
answer
70
views
Can't use x:bind to ListView in UWP
I am unable to bind AssignmentList to ListView. I have tried removing the Refresh() method, but it still crashes with this exception:
Exception thrown: 'System.NotSupportedException' in WinRT.Runtime....
2
votes
1
answer
93
views
Failed to assign to property 'Microsoft.UI.Xaml.Controls.Frame.SourcePageType'
I got an issue following WinUI tutorial.
I followed the tutorial step-by-step with copy-and-paste code completion but, reaching the step "Create a page for a note" (specifically the point &...
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
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
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 ...
0
votes
1
answer
60
views
How to use IncrementalLoadingCollection in ItemsRepeater?
I am trying to use IncrementalLoadingCollection in ItemsRepeater. The GetPagedItemsAsync in the IIncrementalSource is not called automatically when scrolled . Should I manually trigger LoadMoreAsync ...
1
vote
1
answer
70
views
How to change the style for the SelectedItem of the ItemsView control in WinUI3?
I am working with ItemsView for a while. I wanted to change the selecteditem's style and hoverstyle for the remaining items.
The unwanted thin lines are displaying on the right side and bottom of the ...
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
2
answers
82
views
How can I use a Converter inside ItemContainerStyle WinUI3
I want to change the Background color of my ListViewItems based on the value of the boolean property EstaGuardado of my model class Permiso.
namespace Modelo.Autenticacion
{
public class Permiso
...
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
147
views
Does Serilog support WinUI 3.0 Apps?
I am new to WinUI development, I created a new simple WinUI 3.0 app (using Viusal Studio template Blank App, Packaged (WinUI 3 in desktop)
I also installed the following
$ dotnet add package Serilog
$ ...