Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
23 views

.Net Maui ArgumentException: 'An item with the same key has already been added. Key: Microsoft.Maui.Controls.BindableProperty' - What does that mean?

I'm really at a loss here. I'm working on a .Net Maui Application for Android and iOS for work. When I open a specific page I sometimes (like, maybe 1 out of 6-10 times) get an Error with this message:...
Freddy V's user avatar
0 votes
1 answer
23 views

How to have different layout in collection view depends on platform MAUI

<CollectionView> <-- this should be for android--> <CollectionView.ItemsLayout> <GridItemsLayout/> </CollectionView.ItemsLayout> <-- this should be for ...
Beben's user avatar
  • 1
0 votes
0 answers
29 views

Check Box failing to Visually update in WPF C# Xaml

I'm working on a program that will take an existing list and allow users to select an item individually or with a Select all Check box. When the select all checkbox is ticket, there is no visual ...
rzantarra's user avatar
-2 votes
0 answers
35 views

.Net Maui - Null reference when assigning date time to datetimepicker

when overriding the OnAppearing method I do try { startDatePicker.Date = auxDate; } catch (Exception ex) { Console.WriteLine(ex.Message); } and I get a Null Reference Exception... ...
Leonardo's user avatar
  • 11.4k
-1 votes
0 answers
51 views

Pass collection to constructor from xaml [closed]

I have a problem with passing elements collection to a constructor from xaml. Is there a solution to pass multiple arguments to constructor from xaml? An example of what I want to achieve: In c#: ...
Pavel Abramovich's user avatar
0 votes
2 answers
41 views

Items inside border does not resize when window resolution changes

I was wondering if there is an option to make the items inside the border resize when the window changes its size. This is what I mean: Original What I get <Window x:Class="PortableISO....
user22774398's user avatar
1 vote
1 answer
39 views

VisualStateManager in DataTemplate created by code

I have the following code: MainPage.xml <ContentPage x:Class="Test1.MainPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas....
Abelucho's user avatar
  • 232
0 votes
0 answers
43 views

MAUI Binding to default interface property

In my MAUI sample project I have an IGrid interface with a default implemented string property: public interface IGrid { string TestName => "IGrid.TestName"; } A Grid class ...
TRex's user avatar
  • 174
0 votes
2 answers
37 views

How to bind a color from a ViewModel to each TreeView node?

Do I need to bind a color from the ViewModel to each node in the TreeView? I tried using styles, but I was able to set the color for all nodes, but not for each one specifically. How can I do this? &...
chemo's user avatar
  • 11
0 votes
0 answers
19 views

WPF DevExpress : adding hierarchical data template not binding well

I have some code for handling competency and sub-competencies: using System.Collections.ObjectModel; using System.Linq; using System.Windows.Controls; namespace opr.Pages { public partial class ...
lonelydev101's user avatar
  • 1,743
0 votes
0 answers
15 views

How to set FontSize in Avalonia UI specifically only for the Android version of the application?

I'm writing a cross-platform application using the Avalonia UI Community Toolkit. and it turned out that one of my TextBlocks does not fit on the screen when launched on the phone. how to set FontSize ...
0 votes
2 answers
74 views

How to copy and paste in wpf richtextbox containing runs and inlineUICOntainer?

I have created a RichTextBox in wpf containing the below content <RichTextBox x:Name="RichTextBox" IsDocumentEnabled="True" AutoWordSelection="...
why stuff works's user avatar
1 vote
1 answer
82 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="...
luis_m's user avatar
  • 15
0 votes
0 answers
26 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 ...
flip's user avatar
  • 555
0 votes
0 answers
52 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 ...
susmi's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
2551