55 questions
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 ...
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 ...
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
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, ...
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
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, ...
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
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"
...
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
0
answers
59
views
How to make item with styled DataTemplate react on Visual states? WinUI
I have an ItemesView with binding collection. I styled the DataTemplate for it with root element ItermContainer, but at attempt to provide some VisualState for it it just doesn't work. How to make ...
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
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 ...
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&...
1
vote
1
answer
184
views
Displaying Index in WinUI 3 ListView
I am displaying a ListView using WinUI3. I am showing an array of structs, but is it possible to display an array index that is not part of the struct in XAML?
<ListView>
<ListView....
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?
0
votes
1
answer
89
views
Winui ComboBox in a control default initial index not working correctly
I am creating a Usercontrol that has a Combobox in it.
<UserControl>
...
<ComboBox HorizontalAlignment="Stretch" Name="ReasonComboBox"
...
0
votes
0
answers
178
views
Creating a UI with using Win Ui in python
i am trying to create a desktop app using python firstly i create a folder and next open in vs code and create files like winui.py and page.xaml and then run this code and give me some related to ...
0
votes
1
answer
83
views
ReadOnly functionality for TexBox-like controls
The TextBox control (Microsoft.UI.Xaml.Controls.TextBox) exposes an "IsReadonly" property, which seems to differ from !IsEnabled in the following ways:
The content of a ReadOnly TextBox can ...
0
votes
1
answer
99
views
How to use TemplateSelector for WinUI Datagrid
I have a datagrid populated from a viewmodel, I want to use Template selector based on the viewmodels property (basic template selector using a boolean field to decide which template is needed)
public ...
0
votes
1
answer
81
views
Populate more nested WinUI TreeView
I want to show View Model on my UI using treeview, but I could not find a way to go more than one node deep
The view should show the Persons and their Adress and their Adress details
using System....
0
votes
2
answers
173
views
Remove NavigationView gap in Content area (WinUI 3 version)
Anyone know how to reduce or remove this padding on the content area of NavigationView (WinUI 3)?? I'd like to do this without using a Style. Is there a resource I can override?
The reason I ask is ...
0
votes
1
answer
129
views
Controls going invisible when changing background color of canvas in WinUI 3
I've recently started to use WinUI 3 and have an issue with changing the backcolor of a canvas. Coming from WPF, I was used that simply changing the Background property works. This however, results in ...
1
vote
1
answer
333
views
How to switch `ContextFlyout` on `DataTemplate` based on properties of the bound type?
Let’s say I have a ListView, a DataTemplate for the items and two MenuFlyouts:
<Page>
<Page.Resources>
<MenuFlyout x:Key="Menu1" />
<MenuFlyout x:Key=...