ObservableCollection does not work correctly with the controls
Open
@pomianowski is already working on this.
Since Jul 19, 2022.
controls
enhancement
styles
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
If we try to add any control via code using ObservableCollection, we won't get the desired result.
for example:
public ObservableCollection<WPFUI.Controls.Card> TestColl { get; set; } = new ObservableCollection<WPFUI.Controls.Card>();
TestTest.Add(new WPFUI.Controls.Card {Content = "Test"});
The result will be just Test text without any style
Similar behavior can be seen in the Demo > Controls > DataGrid
As you see the checkboxes use the default windows style.
Maybe someone knows why this happens? I have not yet tested other ui libraries, wonder how they handle it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.