Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
117 views

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;...
Joshie's user avatar
  • 23
-1 votes
1 answer
70 views

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;...
Wasyster's user avatar
  • 2,583
1 vote
1 answer
121 views

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: ...
Dean Thomas's user avatar
2 votes
1 answer
129 views

I have an ObservableCollection of strings: public ObservableCollection<string> ChallengePartImageURLs { get; } = new ObservableCollection<string>(); Being populated/updated like this: ...
Kasper Sommer's user avatar
0 votes
1 answer
67 views

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 ...
PatrickBremen's user avatar
5 votes
3 answers
204 views

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 ...
Justin8051's user avatar
0 votes
0 answers
101 views

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 !...
jmdess's user avatar
  • 73
0 votes
1 answer
263 views

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 ...
Imran Mohammed's user avatar
0 votes
0 answers
102 views

Problem: I have a method that uses generics and params to accept multiple IList parameters. However, when calling this method with multiple ObservableCollection parameters, one of the calls is not ...
Prem's user avatar
  • 91
0 votes
0 answers
63 views

I want to display a List/ObservableCollection in a DataGrid in a WPF application. At the push of a button, a different list should be displayed, but it is a list of a different data type. It works ...
Wirthi's user avatar
  • 1
0 votes
1 answer
65 views

I am using WPF and have a Listbox that I have bound in the code behind to an ObservableCollection. It is displayed in multiple views and has worked perfectly (adding/removing, & staying in sync ...
ZadiusC's user avatar
  • 51
1 vote
1 answer
120 views

I have a view model class in a folder called ViewModel. The file is called PgViewMode.cs and looks like this: using CommunityToolkit.Mvvm.ComponentModel; using LockAndKeyMaui.Models; using ...
Bob Gatto's user avatar
  • 166
1 vote
1 answer
111 views

I am new to .NET MAUI/MVVM/SQLite, and C# for that matter. I am trying to utilize my ViewModel to bind data from my model class. I can use the model namespace as my binding property just fine, and it ...
Brett Simonds's user avatar
0 votes
1 answer
369 views

I am using an 'ObservableCollection' saving comments. When I delete a comment, I will fetch the deleted comment id and delete that comment from the 'ObservableCollection'. My Problem is if I delete ...
Matthew Pans's user avatar
0 votes
0 answers
61 views

Before I start with the explanation of the problem, I am new to WPF and I still did not grasp every concept behind the MVVM pattern. I have an ObservableCollection<Vertex>, where Vertex is a ...
DDDloae's user avatar
0 votes
1 answer
73 views

Using MVVM, I have a simple CollectionView: <CollectionView ItemsSource="{Binding Items}" VerticalOptions="FillAndExpand"> <CollectionView.ItemTemplate> <...
osama alqaisi's user avatar
0 votes
2 answers
615 views

I'm using MVVM and Ms Toolkit. I'm showing a collection within a CollectionView, but I would like to hide deleted items (set by a flag on model). This why I'm using a global "save" procedure ...
Denis De Pauli's user avatar
0 votes
0 answers
82 views

I want to display my collectionview in the below format: Item0 Item3 Item1 Item4 Item2 Item5 But by default coillectionView displays in the below format: Item0 Item1 Item2 Item3 Item4 Item5 ...
MainakChoudhury's user avatar
-1 votes
1 answer
262 views

I have some classes that model the structure I expect from my JSON file. For values that are an array in the JSON, the corresponding C# properties are declared to have the type IList<T> for ...
Marc Miller's user avatar
1 vote
0 answers
1k views

I found quite a few questions/answers about this here on SO but I'm confused about something. Here's one example: Observablecollection not updating list, when an item gets added Shouldn't adding a new ...
Sam's user avatar
  • 31k
0 votes
0 answers
63 views

I have ControlA hosting ControlB, both of them have DependencyProperty of type ObservableCollection, the nested control's (ControlB) property is binded to parent (ControlA) property, if something is ...
Notrum666's user avatar
  • 377
-2 votes
1 answer
120 views

I'm trying to build my first app based on MVVM pattern. I still didn't isolate the view from button click actions cause i got stuck on this issue with the ObservableCollection. These are the classes: ...
Tvuce's user avatar
  • 11
0 votes
1 answer
80 views

I can not figure this out to save my life. I have a simple WPF form where I enter data in a text box, the user can click insert and it saves to the database. I also have a datagrid that is showing ...
ShaneIsStuck's user avatar
1 vote
1 answer
227 views

I am trying to register the PropertyChanged event for an Observable Collection in PowerShell, but no dice. This works just fine for the CollectionChanged event. This works: Register-ObjectEvent -...
chrisdotknee's user avatar
0 votes
1 answer
35 views

I'm trying to recreate the File Explorer using WPF and MVVM. I got a TreeView and ListBox, both of which work properly, as long as the only thing I do is browse through the folders. As soon as I try ...
magmyr01's user avatar

1
2 3 4 5
58