63,031 questions
0
votes
0
answers
29
views
How can I use a string resource in data binding StringFormat property? [duplicate]
I'm trying to apply a string formatting to a numeric data binding value. The string formatting text is supposed to be localized and taken from the class generated by Visual Studio for .resx files.
...
2
votes
1
answer
163
views
FontAwesome icons not displaying correctly on Android devices when used on XAML components in Maui Blazor Hybrid
I have a Maui Blazor Hybrid solution in VS2022. Most of my pages display inside of the BlazorWebView but a couple have been created in XAML to support some cameraview components.
I use Font Awesome 7 ...
1
vote
1
answer
69
views
How to enable custom intellisense in XAML (WPF) like "Brush" to fill property?
I try to write a globalized app using WPF. I use .resx files to maintain my location resources. I create a customized markup extension to bind location resource to XAML. The problem is when I edit my ...
1
vote
0
answers
59
views
Detecting theme change for XAML-based update
In my AvaloniaUI application I have a user control that's basically a PathIcon with a TextBlock caption, the contents of which are bound to dependency properties. One DP is IsActive, which when true ...
3
votes
1
answer
153
views
How to bind "DataGridComboBoxColumn.ItemsSource" to Enum collections declared in different derived classes displayed by DataGrid rows?
I have an ObservableCollection of Base Objects bound to a datagrid. I am trying to populate a DataGridComboBoxColumn with Enum values from a derived class instantiated in the observable collection.
...
0
votes
1
answer
87
views
Draw a straight line between two visual elements in MAUI app. .NET 9 [closed]
I’ve developed a cross-platform Sudoku app for Android and Windows using MAUI (.NET 9) and Shell, following the MVVM design pattern. The UI is defined in XAML using StackLayout to organize visual ...
2
votes
1
answer
168
views
Custom Calendar Date Picker in Avalonia in JetBrains Rider
I am building a custom Calendar Date Picker in Avalonia in JetBrains Rider. Unable to modify the calendar popout. I need to remove the empty space on the right hand side.
Here is the code.
<Style ...
0
votes
1
answer
97
views
Use MouseDoubleClick event trigger in every datagrid row
I have a DataGrid in my XAML markup:
<DataGrid
AutoGenerateColumns="False"
Grid.Row="2"
IsReadOnly="True"
ItemsSource="{Binding Entities, ...
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 ...
0
votes
1
answer
74
views
Null exception in XAML [closed]
This isn't so much a problem, but rather an annoyance... I've put together a conditional class to show different views dependent on which radio button is selected. It works as expected, but I can't ...
1
vote
1
answer
67
views
Bind TabControl content to child properties when ItemsSource contains view and view model pair properties
In WPF if you want to move a view from one window to another, using DataTemplates will cause the view to be destroyed and recreated in the new window, which means all view state info that is not bound ...
1
vote
0
answers
66
views
How to create a base style for rounded button in WPF XAML? [duplicate]
I created a WPF Class Library so that it would contain base styles that will be used in WPF application. In that class, I wanted to create like base styles for like buttons, expanders, etc. where say ...
0
votes
1
answer
631
views
How to continue using Xamarin.Forms on Android 15/16 after end of support?
I have a Xamarin.Forms application and I would like to continue using Xamarin.Forms for at least the next 2 years.
I understand that Xamarin.Forms has reached its end of support (official support ...
1
vote
2
answers
93
views
Is there a way to intercept the return key on a MAUI editor?
I'm trying to develop a chat application and I'm looking for a way to have my maui Editor accepts the return key pressed as a send command.
Certainly the Editor doesn't have an AcceptsReturn property ...
2
votes
1
answer
104
views
Derived control not picking up base style
I can create a derived Button class like the following, and I will automatically get the style from the default Button
public class Button2 : Button
{
}
However, I cannot seem to do the same with a ...
0
votes
0
answers
62
views
Can not find resource names 'X' but style is applying in designer
I have 2 resource dictionary's which I am trying to load globally in App.xaml.
Intellisense shows me the resource name and the style gets applied in the Designer, however, when I try to start/debug ...
0
votes
1
answer
132
views
I cannot publish my completed .Net Maui application
I completed my .net maui application and got it working 100%. Now I want to publish it into a windows setup.exe file. However, when I right-click on the solution name in the solution explorer, the ...
0
votes
1
answer
133
views
How to Validate per View/ViewModel
Im currently making a visitor app for my work place, its a simple app allowing visitors to sign in and out, i have text boxes asking for the visitors information. My SignInView has alot more textboxes ...
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 &...
0
votes
1
answer
78
views
Avalonia UI style scope propagation
I'm having some issues in defining styles of my items. Or actually in the scope of the styles I set. My question is how do I make sure, that a style I'm setting is not propagated for the elements of ...
0
votes
1
answer
73
views
WPF DataGrid ignores container height, outgrows row
I'm building a resolution-independent WPF application. The MainWindow uses a ContentControl to load views dynamically:
<Border Grid.Row="1" Grid.Column="1" BorderThickness="...
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 ...
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
99
views
Could anyone explain this syntax of XAML?
Could anyone explain this syntax of XAML?
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://...
0
votes
1
answer
39
views
I need to set a command on a tree view item double click WPF
I have a custom tree view, right now if the tree has children it expands and collapses when its double clicked, but I want to create a command to execute when the user double clicks on a item with no ...