63,031 questions
0
votes
1
answer
120
views
WPF DataGrid extremely slow scrolling
I need to implement a spreadsheet like control in my WPF app, and all my attempts at using the WPF DataGrid have resulted in very poor scrolling (it is worse in horizontal than vertical).
I have tried:...
0
votes
1
answer
77
views
Context Menu does not register click event to fire command xaml and c#
I have some code to display a list of object type waiters and inside that object is a list of customers objects assigned to that waiter. Each customer can be checked in the list. I have a context menu ...
0
votes
1
answer
131
views
How to put two triangles in a button
I am trying to create a button that has two triangles. One in the top right corner and one on the bottom left corner as shown below. And each would be displayed based on a boolean value (for example, ...
0
votes
0
answers
73
views
Dynamic CellTemplate in WPF DataGrid with dynamically bound column
This question has been asked in some form in some old threads, but having scoured them for hours and not found any satisfactory answers, I thought I would resurrect the question and see if I can get a ...
0
votes
1
answer
79
views
"In .NET MAUI, when using a CarouselView, the controls within the EmptyView template are disabled by default. How can I enable them?"
I have a CarousalView that display stuff from a collection. When there is nothing in the collection, I want to use the CarouselView EmptyView template to display a button to add an item to the ...
0
votes
2
answers
78
views
XAML nested bindablelayout comes up empty until I modify the XAML in debug
In a Maui XAML content page, I have a nested bindablelayout to generate a grid.
Nothing comes up but when I during a debug session modify the XAML code it all shows up. What am I doing wrong here?
The ...
1
vote
0
answers
56
views
How do I make the Passwordbox visible when I click on the button, and hide when I click again? [duplicate]
I'm trying to make it so that when you click on the "eye" to the right of the password entered by the user, it appears, and the eye closes (just substitute another picture) and vice versa ...
0
votes
1
answer
85
views
Binded property of child context not displaying correctly in dotnet maui
In my dotnet maui page, I have a property that will not display, unless I change the binding while the app is running. Here's how my xaml looks:
<CollectionView ItemsSource="{Binding ...
0
votes
1
answer
84
views
Can't get SelectedValue in WinUI 3 ComboBox to work
I tried this with String (hstring) combo items and everything worked fine. Now I try to use structure and... trying to fill ComboBox and select one of them.
ComboBox is filled ok, but no item is ...
1
vote
1
answer
88
views
Control Not Visible on Smaller Screens or High-Scale Displays in MAUI
I have a custom control in my .NET MAUI application that is not visible under the following conditions:
The screen size is less than 15.6 inches
The resolution is lower than 1920 x 1080
The display ...
0
votes
1
answer
67
views
The buttons don't have a specific color left when you click on it. Why?
I have a problem with the effects when hovering over the button and with the color of the active button. How can this be implemented?
The main problem is that when you hover over the button, the ...
3
votes
1
answer
74
views
How do I make a smooth transition in the slider switch?
I'm trying to make a slider switch in XAML, but when you click on this button, the circle of the switch does not move, I seem to have written everything correctly, but alas, I can't find the error, as ...
0
votes
1
answer
59
views
How to keep the set background color of a TabControl's header
I've the following TabControl:
<TabControl ItemsSource="{Binding Days}" Grid.Row="1" Margin="6" SelectedIndex="0" Loaded="OnTabLoaded">
<...
6
votes
5
answers
727
views
.NET MAUI gap between status bar and content
I have the following issue that appears when using an iPhone 16.
The MAUI App is NOT using shell if that might be useful in any way...
There is a full MAUI example project here
Explanation
The ...
0
votes
0
answers
113
views
Dynamic Binding to Dictionary Values in WinUI 3 DataGrid
I'm developing a WinUI 3 app that displays a dynamic grid (using Syncfusion’s SfDataGrid) of employees and their SOP statuses. Each employee has a set of SOP statuses stored in a dictionary (keyed by ...
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 ...
0
votes
0
answers
26
views
XAML String format causes type not found error but works
I am working on some old XAML that has a binding with a string format specified as {}{0,8:0.000}
I believe the intent of this string format is to create a fixed length string with whitespace padding ...
0
votes
1
answer
159
views
WinUI 3 Titlebar and Navbar customization
while learning winui3
i wanted to make a simple sample application such as microsoft teams
when i was trying to design
i wanted to write the title name next to the navbar
<Grid Background="...
1
vote
0
answers
117
views
Any workaround for broken SystemColors from Win10 onwards?
I want to use one of the system colors in XAML.
It used to be possible to do this:
<Setter Property="Foreground"
Value="{DynamicResource {x:Static SystemColors....
0
votes
0
answers
52
views
WPF Border within Grid causes visible lines in UI
I am designing a set of custom controls in WPF. For GroupBox it is mainly Controls.Border within a Grid. Unfortunately the borders of these visual elements are visible in WPF designer as well as in ...
1
vote
1
answer
46
views
Background of Teaching Tip is not applied when IsLightDismissEnabled="True" in WinUI 3
I am creating a teaching tip in my WinUI 3 application. Setting the background of the teaching tip works fine when IsLightDismissEnabled="False". However, when I set it to True, a default ...
-1
votes
1
answer
95
views
Using Scrollviewer on UniformGrid
I'm struggling a lot finding a solution to my problem. I can't understand why my view is breaking as soon as I wrap it inside a scrollviewer.
The layout idea is the following:
<ScrollViewer>
...
1
vote
1
answer
92
views
MAUI - Buttons interfere with each other
I have a xaml file with 2 basic buttons: button_1 and Button_2
The problem, is that the first button is responsive, but Button_2 is not.
However, if I move Button_2 above Button_1 in the xaml file, ...
1
vote
1
answer
250
views
Path is not working in .NET MAUI with .NET 9
Controls -> Views -> Shapes -> Paths -> Path class is not working properly though I have written correct code:
<?xml version="1.0" encoding="utf-8" ?>
<...
0
votes
2
answers
95
views
How can I make two switches depend on each other?
I'm trying to code a little app in C# and XAML and have the following issue:
I have two switches, "advantage" and "disadvantage". I want to avoid a situation where both are set to &...