Comments (5)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- Problem updating CollectionView ItemSource, when the modification is triggered by one of the items in the list (#22122), similarity score: 0.74
- CollectionView dont update automatically (#8534), similarity score: 0.74
Closed similar issues:
- [Android] CollectionView and other control's visibility do not update from Binding (#8135), similarity score: 0.75
- [Bug] CollectionView ItemSource bound to ObservableCollection not updating on collection update (#2045), similarity score: 0.72
- In MVVM mode, the Android collectionView does not update the UI properly (#8187), similarity score: 0.72
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
I needed to translate your message to understand it, so I may have lost something in this, but I believe this is correct behavior.
An ObservableCollection, I believe, implements INotifyPropertyChanged for the items themselves. If you add a new item, ListView/CollectionView will add a new item to the list, based on the DataTemplate. If you're editing elements within that list, those properties would still need to implement some form of INotifyPropertyChanged for each property. Just having an ObservableCollection doesn't magically make that work.
Having an example of what you're doing would help see if you're implementing this incorrectly.
from maui.
I am running into similar issues. However, it is not only tied to CollectionView, but happens also with Syncfusion's ListView control. On top, it does not matter if the Itemsource is a List or an ObservableCollection.
In one of my scenarios, I have a boolean that controls the visibility of an ImageButton. This Binding works like it should.
The same boolean is used and runs through 2 converters, one converts the boolean to a Color (predefined Red and Green), the other loads text from the app's resx file. The Color is bound to the BackgroundColor of an Ellipse, while the text is bound to the ToolTipProperties.Text property. These two bindings work only one-time, but do not get changed after that.
If I add a breakpoint in the ctor of my ViewModel, the change gets propagated like it should.
I tested also binding to properties in the ViewModel instead of using the converters, but that does not change anything.
I tried to add Task.Delay between OnPropertyChanged calls with no success.
I also did a clean/rebuild between these changes.
It would be great if someone could take the problem seriosuly.
Tested these on MacCatalyst.
Edit 1:
On SfListView, if I change the CachingStrategy property to CreateNewTemplate, the bindings work. Which just underlines that there seems to be some problem with the DataTemplating in MAUI.
from maui.
Hi @DevRafael2. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
from maui.
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
from maui.
Related Issues (20)
- [Android]TabbedPage Children`s IsEnable=False setting is invalid when the child elements of TabbedPage are reseted HOT 1
- Cannot use unplated icons in .msix and in windows "start" HOT 3
- How to disable vertical moving of collection view on ios? HOT 2
- BindableLayout performance could be better HOT 3
- Blazor Hybrid template doesn't work HOT 4
- Moving Items between groups of a Grouped CollectionView in Android throws a IndexOutOfBoundsException HOT 3
- 'Microsoft.Maui.Platform.ContentView' does not have a constructor that takes one NativeHandle argument HOT 2
- Severity Code Description Project File Line Suppression State Error MSB4044 The "GenerateRtxt" task was not given a value for the required parameter "JavaPlatformJarPath". InfinityTrafficMobile C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.52\tools\Xamarin.Android.Resource.Designer.targets 65 HOT 2
- 'Platform' does not contain a definition for 'Init' (iOS) HOT 5
- Incorrect height of CollectionView when ItemsSource is empty HOT 5
- Maui Blazor Hybrid doesn't Import JavaScript HOT 2
- MAUI for Linux HOT 1
- Resizetizer no longer applies fonts HOT 3
- Moving one item between groups of a Grouped CollectionView results in the temporary fading out of two items instead of one on Android HOT 2
- Resize, when 200% Zoomed "Home Heading" is not adopting Zoom in "DotNet Home screen": A11y_.NET Core_Template App Home page_Hello World_Resize. HOT 1
- [BUG] ios LineBreakMode and MaxLines on Label controls does not work well HOT 1
- [Windows] CascadeInputTransparent="False" not working for ScrollView and ContentView HOT 1
- Unable to compile iOS Binding Library HOT 1
- UIScrollView able to pan past content inside scrollview when zooming (iOS) HOT 1
- Starting Community Triagers process in our repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.