719 questions
1
vote
1
answer
70
views
How to Animate a Border Brush opacity
How do I set a storyboard to animate the opacity of a Border.BorderBrush. I want to create a DashBoard control where the control is surrounded by a 'Pulsing' border ie the opacity of the border ...
0
votes
2
answers
277
views
Use of GaussianBlurEffect in Winui 3 and CommunityToolkit.WINUUI.UI version 8
How can use GaussianBlurEffect in WINUI 3 and CommunityToolkit.WINUI,UI versione 8?
public static CompositionEffectBrush CreateBlurEffectBrush(double amount = 0.0)
{
var effect = new ...
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
93
views
WinUI3 TreeView Hover Colour change issue
I'm working on a WinUI3 project and encountering an issue with a TreeView.
In my code, I've set up a TreeView in XAML and am binding data from the code-behind.
To manage the foreground color of the ...
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
1
answer
63
views
How to move DataGrid scrollbar to bottom of grid?
Without specifying height I am unable to move the scrollbar to the bottom of the Grid it belongs to. Using VerticalAlignment="Stretch" does nothing. Is it not possible to either move the ...
0
votes
1
answer
269
views
WinUI3 Async Binding Converter
I have an API which returns an array of models, each with a thumbnail ID which needs to be fetched via an authenticated API call and shown in an Image element in data template for each item in a grid ...
0
votes
1
answer
68
views
ColorPicker localization change in WinUI 3
I have a question, is there any way to update ColorPicker xaml element in WinUI3 when there's runtime language change in application without restart?
I tried to change Language property in ColorPicker,...
0
votes
1
answer
83
views
How can I tell when it's safe to set TreeView.SelectedItem?
Here's a really simple bit of xaml:
<TreeView x:Name="provenanceTree"
ItemsSource="{x:Bind ProvenanceTreeItems}" SelectionMode="Single"
...
0
votes
1
answer
85
views
WinUI ListView Item Height Not Working Below a Certain Threshold
Despite setting the margins, heights, min heights and so on for the ListView item template, there is a certain minimum height threshold where the ListView seems to create its own container of a ...
0
votes
0
answers
62
views
The application freezes when calling ContentDialog
I am developing a program for the WIN UI. You must call ContentDialog and enter the user's password.
public async Task<bool> enterPasswordAsync(modeCheckPassword checkPassword)
{
var content=...
0
votes
1
answer
137
views
How to check if the new window request is from pressing mouse wheel in Webview2
Normally web browser will open a new tab and switch to the new tab if you clicked on <a href="" target="_blank"> or execute open() in JavaScript. And if you click a link with ...
0
votes
1
answer
108
views
AppBarButton Icon is not vertically centered within its parent
I have an AppBarButton with its Icon property set to Back so it displays a back arrow, however, the Icon is not vertically centered, it's always at the bottom of the button.
I tried setting the ...
2
votes
1
answer
99
views
Unifying NavigationView's Pane and Content Background color
This is what the program looks like after I implemented the x:Key into it. It's almost perfect, I just can't figure out how to make the NavigationPane's expanded form have no background on it, I need ...
1
vote
2
answers
467
views
WinUI3: Applying a differing style to a ListView's SelectedItem(s)
I want to apply a custom style to the selected item on a ListView in WinUI3.
My first thought was to look for a property on ListView to see if there was a style to be applied to the selected item, but ...
0
votes
1
answer
179
views
Some WinUI rendering (e.g. showing `ContextFlyout`) very slow on client’s computer
When running my framework dependent, unpackaged, .NET 8, WinUI 3 app (with all the latest dependencies) on my client’s computer (Windows 11) some UI functionality is very slow.
Examples:
When right-...
2
votes
1
answer
431
views
Change the Height of a TextBox input area in WinUI 3 XAML
I've noticed when I change the height of a TextBox control in WinUI 3 XAML, the overall control height changes (not just the input area) and it will cut off bottom of the input area if I make the ...
-1
votes
1
answer
121
views
Why is my Page.DataContext class not found?
im very new to c# and play around something. Now i want to use Models for my Data Handling so but my class is not found. Do you have any suggestion to get it to run?
Fehler XLS0414 Typ 'vm:...
-1
votes
1
answer
78
views
Referencing UI elements created by XAML during runtime
I am creating a WinUI 3 application, I need to manipulate one of the UI elements during runtime in a very custom and versatile way, so I don't want to define it within XAML.
To manipulate it with code ...
1
vote
1
answer
1k
views
WinUI 3 default template not working when using publish
Im playing around with Winui3 for my next app. I created a default project from the Blank app, Packaged (winui3 in desktop) template in visual studio 2022.
When i run the application inside visual ...
0
votes
1
answer
102
views
Correct way of setting an elements position in relevance to another element or pointer
What is the correct approach to set the position of a object in relevance to the pointer? I have tried
private void TextBlockPressed(object sender, PointerRoutedEventArgs e)
{
var currentPoint = e....
0
votes
1
answer
150
views
How to convert CoreDispatcher to DispatcherQueue for AudioGraph event handler
Since CoreDispatcher has been deprecated in the WinUI 3 Windows App SDK and replaced with DispatcherQueue, how can the following code be converted to use DispatcherQueue properly?
fileInputNode....
0
votes
2
answers
98
views
Binding Header Text In A Custom Header Template
I am having an issue binding header in a HeaderTemplate. When I do the following in xaml, this textblock either doesn't appear or there is no text shown in it making it invisible:
<TextBlock Text=&...
0
votes
2
answers
286
views
WinUI EmbeddedResource in Xaml
I don't understand why this code doesn't work
<Image Source="pack://application:,,,/Resources/Steam.png" Width="30"/>
https://stackoverflow.com/questions/62032643/using-...
0
votes
1
answer
163
views
Pass The Values of Multiple Controls Via A Button in WinUI 3
Using WinUi 3 I am trying to allow a user to add data to an SQLite database by the way of controls on a page. In this particular case I have 2 text boxes whose text value I send to a RelayCommand when ...