2,897 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
2
answers
123
views
.NET MAUI [ObservableProperty] decimal shows fixed decimals in UI — need fully dynamic decimal places (0–10)
I'm building a .NET MAUI app using the CommunityToolkit.Mvvm [ObservableProperty] attribute for data binding.
Example:
[ObservableProperty]
public decimal _count;
Setting the value:
decimal count = 2;...
2
votes
2
answers
95
views
Update only subsequent items in ObservableCollection based on PropertyChanged event of one of the Items
Context
I'm working on a .net WPF Application to manage sequential and hierarchical activities featuring (top to bottom):
Main FirstLevel activity
FirstLevel activity is divided into SecondLevel ...
-1
votes
1
answer
75
views
.net MAUI System.Runtime.InteropServices.COMException when adding data to ObservableCollection
I have a class, that represents a line in a table, as:
public class TeamListModel
{
public uint TeamId {get;set;}
public string TeamName {get;set;}
public string NamesOfPlayers {get;...
0
votes
3
answers
219
views
How to Update a Property in a Parent Class When a Nested Property Changes in a
I'm using a custom FullyObservableCollection class that extends ObservableCollection, where T implements INotifyPropertyChanged. The idea is to have a collection of objects that not only notify ...
1
vote
1
answer
140
views
MAUI CollectionView Selected style only works on first item
I'm using an example from Configure CollectionView item selection in my app, but the background color only changes when the first item in the observable collection is selected.
First Item selected:
...
2
votes
1
answer
135
views
MAUI ObservableCollection not triggering Converter
I have an ObservableCollection of strings:
public ObservableCollection<string> ChallengePartImageURLs { get; } = new ObservableCollection<string>();
Being populated/updated like this:
...
0
votes
1
answer
65
views
ObservableCollection inside of an ObservableCollection, input new item in existing ObservableCollection
I have 2 classes Patent and Author in Model. Class Patent have observablecollection PatentAuthors which stores all authors of patent of which there may be several.
public class Patent
{
public int ...
0
votes
1
answer
67
views
MAUI Grouped ListView Remove Item Causes Error when more than one Group item exists
I have a Grouped List in C# MAUI MVVC, destination is Andoid
public class GroupData : ObservableCollection<DetailData>
{
public string Name { get; private set; }
public GroupData(string ...
0
votes
2
answers
158
views
Problem with two way data binding with ObservableCollection
I have three pages in the project with two ViewModels, and two models. The first page populates open orders into a ListView without a problem. When a ListView item is tapped (Orders_ItemTapped) in the ...
5
votes
3
answers
220
views
Is there a simpler way to have an ObservableCollection that can be modified only from within the same class?
Often I need a read-only ObservableCollection (so that it's reference or contents can be only modified from within this class). I need ObservableCollection because I will be binding to that property ...
1
vote
3
answers
842
views
ObservableCollection Not Updating UI After Refresh in .NET MAUI
I'm developing a .NET MAUI application where I have a ClientReviewsViewModel that uses an ObservableCollection to display a list of reviews. The reviews are displayed in a CollectionView, and I'm ...
0
votes
0
answers
102
views
Maui CollectionView<T> problems with SelectionMode=Single and rows display
I have a CollectionView<T> with 2 columns.
The SelectionMode=Single.
Problem :
The second column displays only a few colors names,
not all and after a selection no more color names !...
0
votes
1
answer
102
views
ObservableCollection.CollectionChanged not firing when collection is instantiated first before adding items
The title kind of covers it, I think. Consider:
Public Class DesignItem
Private _effects As ObservableCollection(Of Effect) = New ObservableCollection(Of Effect)
Public Property Effects() As ...
0
votes
1
answer
283
views
How to Efficiently Load Large JSON Data into ObservableCollection in .NET MAUI?
I'm working on a .NET MAUI application where I need to load a large volume of data from a JSON file and add it to an ObservableCollection. Currently, the application becomes unresponsive during this ...
0
votes
2
answers
192
views
How to reuse globally already loaded observable collection in Maui app?
I have a Maui app where 4-5 observable collections are used across the application on different views. Currently I have a service which loads from database via repository and trigger an event to ...