719 questions
0
votes
1
answer
261
views
Uno Platform Windows TextBox treats Tab key as Text instead of giving focus to next control
I'm an absolute nebie in Uno Platform and did first steps to refresh my XAML knowledge.
Based on the default multiplatform Uno template I built a page where I bound a TextBox to a string property.
The ...
1
vote
1
answer
275
views
Cant override DefiningGeometry of Shape in WinUI 3
i'm trying to create a Custom Shape (Triangle) but I can't find the right way to get a Custom Shape working.
In WPF I'm used to overriding DefiningGeometry, but using WinUI 3 there is nothing like it.
...
0
votes
1
answer
700
views
update label text through MainPage Helper class
To simplify my scenario, I have a label and a button in a MAUI application.
And I want to update the label text through mainpagehelper class instead of mainpage class.
MainPage.xaml:
<Button
x:...
1
vote
1
answer
1k
views
Button color change on click or hover
I added a button component in my application, and I am expecting it to change the color when user hovers on it or click it.
But looks like that's not the default behavior of the button.
Is there a way ...
1
vote
1
answer
352
views
How to access your nested custom control?
This question comes from this related question.
One way to access your nested inner control, is to create dependency-properties in the outer control and pass values to the inner control.
How can I ...
5
votes
1
answer
3k
views
What is the difference between FallbackValue and TargetNullValue in UWP and WinUI 3?
can someone please tell me the exact difference between FallbackValue and TargetNullValue? I know they are quite similar, but I'd like to understand more about those edge usecases where you want to ...
0
votes
1
answer
544
views
ListView in WinUI maintains ListBox text after reset
I have a ListView in a WinUI 3 app (target framework net6.0-windows10.0.19041.0) with a data template that contains a TextBox. The ItemsSource is bound to an ObservableCollection in the code-behind ...
0
votes
1
answer
108
views
Defining buttons in XAML for usercontrol
I am wanting to write a user control that contains a customizable CommandBar. There are standard items which are always present in the command bar, and the page hosting the user control can define ...
0
votes
0
answers
223
views
How to avoid using namespace prefixes in Xaml
I've started migrating company owned application from UWP 10 to WinUI (on NET5) using upgrade-assistant tool. Give or take, the most conflicts are gone, but the the nasty one remains in .xaml files. ...
5
votes
3
answers
11k
views
C# CommunityToolkit.Mvvm ObservableProperty on a list
I want to try the Community Toolkit 8.0 the MVVM part.
I have a very simple application:
....
d:DataContext="{d:DesignInstance Type=local:MainWindowViewModel}"
....
<Grid>
...
0
votes
1
answer
757
views
How to dynamically change border color when the error occur in UWP XAML?
I had bind the error method property with text-block so that when error occurs it is shown down the textbox in the form. But i also want to change the background color of the textbox when the error ...
5
votes
4
answers
3k
views
Is it possible to publish an unpackaged Windows App SDK (WinUI 3) as self contained single file?
I'm pretty sure I have all the right flags and everything set according to Microsoft Docs, however the UI dlls are not being included in the single file exe.
4
votes
2
answers
4k
views
How can I add desktop notifications with WinUI 3?
Does WinUI 3 have the feature to add desktop notifications?
See reference (see below)
3
votes
1
answer
3k
views
How To Set Default Window Mode to Full Screen in WinUI 3?
namespace MyApp
{
public sealed partial class MainWindow : Window
{
AppWindow m_appWindow;
public MainWindow()
{
this.InitializeComponent();
...
4
votes
3
answers
3k
views
How can I remove the close button in WinUI 3?
How can I remove the close button in WinUI 3?
Screenshot of WinUI 3 App
0
votes
1
answer
64
views
Avoid duplicated content in slightly different DataTemplate
I have the datatemplate:
<DataTemplate x:Key="ItemWithCanvas"
x:DataType="itemVM">
<Canvas>
<Grid x:Name="common">
...
0
votes
1
answer
205
views
Switch view with same object in winUI3
Example I have 4 images, I want to make a button to switch view for displaying those images:
view1(view1.xaml) as uniform grid(2x2), view2(view2.xaml) as listview(1x4), and 2 views use the same ...
10
votes
2
answers
12k
views
Using CanExecute in RelayCommand MVVM Toolkit
I have bound button command to one RelayCommand from MVVM Toolkit, which executes some function, with following:
[RelayCommand]
private async void SomeMethod() {}
I want to prevent multiple clicks on ...
0
votes
1
answer
119
views
Uwp App can continues work with multiple forms?
I have created a Uwp App that is directly referenced in the NetCore3.1 Winforms application.
I used XamlHost to show custom control in Winforms.
When I run the application it shows particular control ...
2
votes
1
answer
2k
views
How to get parameters of a URI deep link into a Maui Application?
I am want to create a deep link like some-app://localhost?user=123455 that when clicked opens a Maui WinUI app. When the app receives this deep link I want to be able to get the user ID off of the ...
3
votes
1
answer
341
views
InfoBar FontSize cannot be changed
No changes occur when you try to
change the font size of the Message property of
the InfoBar class with the FontSize property.
Problem
Font size has not changed
Source Code
<InfoBar
Severity=&...
0
votes
1
answer
1k
views
WinUI 3 - How to open a control in a page upon click of button from a User Control c#?
I have an ItemsRepeater on the page's XAML code where it's ItemsSource property is bind to a list of User Control (ObersvableCollection), a custom control I made. In this User Control there's a button ...
0
votes
0
answers
1k
views
How to show embedded resource images from external library set from code behind?
I have a common library foo.common with some *.pngs stored as Embedded Resource or Resource.
Now I would like to show them in my foo.ui WinUI3 application.
I can't get any further at the moment. I've ...
1
vote
3
answers
1k
views
WM_GETMINMAXINFO in WinUI 3 with C#?
Problem
Since WinUI 3 currently has no function to set the minimum size, I have to use WM_GETMINMAXINFO.
Question
How can I specify WM_GETMINMAXINFO minimum or maximum window size with C# in a WinUI 3 ...
1
vote
0
answers
188
views
Trying to instantiate a JUCE MessangerManager throws “Access violation writing location”
I am trying to use JUCE as a dll backend for a WinUI app. I managed to make it work but it sometimes(almost randomly, because I can't find a pattern, it looks like a timeout) throws ...