Questions tagged [xaml]
Extensible Application Markup Language (XAML) is a declarative XML-based language used for initializing structured values and objects in various frameworks. When a question is about the usage of XAML with a specific framework a tag for the framework should also be provided e.g. [wpf] (Windows Presentation Foundation), [silverlight], [windows-phone], [windows-store-apps] (Windows 8 store apps), [win-universal-app], [xamarin.forms] or [workflow-foundation]
xaml
62,656
questions
0
votes
0
answers
20
views
Why does a picker in a CollectionView set the SelectedItem binding to null?
I have a picker inside a CollectionView that should select a predefined item ColorNav but when it starts the item is not selected.
XAML:
<StackLayout>
<Label Text="...
0
votes
0
answers
12
views
How can I dismiss the49.maui.BottomSheet within the ViewModel?
So I've done some searching, attempted to ask ChatGPT, and tried several different methods, but I cannot, for the life of me, get the bottom sheet to dismiss.
I have a Page called CategoryItemPage ...
0
votes
1
answer
9
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
0
answers
17
views
Binding to parent control with context menu in UWP (WinUI 3)
I am trying to make a context fold out menu on a list box component, it has a simple but i can't manage to get the binding for command paramter to work.
Here is a simplified view of my user control ...
0
votes
0
answers
29
views
An ImageButton with rounded corners does not display well
I am developing an application in .NET MAUI using Visual Studio 2022. Generally it works fine, but at some point something got corrupted and a particular button on a screen is not displayed correctly. ...
-1
votes
0
answers
47
views
Stack Overflow Exception in InitializeComponent [closed]
I am making a WPF Application for Listing Schools, but if i load the schools from my mariaDB Table i get a Stackoverflow Exception.
My Schools_View class where i bind the collection to the list and ...
0
votes
0
answers
19
views
How to control layout of both TabControl.ItemTemplate and TabControl.ContentTemplate with ReactiveUI View Location?
I have a TabControl which I'm trying to hook up to a collection of ViewModels with ReactiveUI. The ViewModels are various subclasses of a particular base class, and there are different Views defined ...
0
votes
0
answers
33
views
How to know when an element has become visible in a MAUI app?
Say I have a hidden CollectionView, which becomes visible when I click on a button, and I need to set the focus on a CollectionView when it becomes visible (to detect when it is not focused anymore ...
0
votes
1
answer
55
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 ...
0
votes
0
answers
22
views
MAUI ContentView that both exposes bindings and binds
If I inherit from ContentView to create a reusable control, I can make a control that binds its UI elements to it's own view model, or I can make a control that exposes a BindableProperty to its ...
0
votes
0
answers
46
views
How to share data between pages when using frame according to MVVM
I have a simple application with a frame in a MainPage.xaml that changes between MediaCenterPage.xaml and PlayerPage.xaml. Now I want the selected movie in the MediaCenter to be shared with the ...
1
vote
0
answers
26
views
How to use App.xaml when rendering WPF GUI in PowerShell core?
I want to use resource dictionary and app context to render a WPF GUI in PowerShell core (7.5) and .NET 9.
here is the main.xml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/...
0
votes
1
answer
48
views
Changing background color of button alters other button styles in .NET MAUI
I just (finally) upgraded an application from Xamarin to MAUI. After doing the upgrade, I found that any background color (other than the default) applied to a button causes the button to grow in ...
0
votes
1
answer
38
views
Best approach to swapping content in a page
What is the correct approach for swapping the entire content of the page? Lets say you have a media center and when the user selects a movie you want the entire page to show a MediaPlayerElement which ...
0
votes
1
answer
42
views
How to implement the TextChanged the CommunityToolkit MVVM way
I am using the .Net Maui's community toolkit and have some mvvm binding going on in a project.
I have a collectionview and a Searchbar connected to a ViewModel. I wish to implement the Searchbar's is ...