Convert Items property to ItemsSource (non-ItemsControl)#10831
Convert Items property to ItemsSource (non-ItemsControl)#10831danwalmsley merged 10 commits intomasterfrom
Conversation
I personally think the users would expect that if |
|
You can test this PR using the following package version. |
…com/AvaloniaUI/Avalonia into refactor/other-controls-itemssource
|
You can test this PR using the following package version. |
|
You can test this PR using the following package version. |
What does the pull request do?
Renames the
Itemsproperty toItemsSourceon controls other thanItemsControl(which was done in #10590). The following controls were converted:DataGridAutoCompleteBoxItemsRepeaterMenuFlyout- this one now has bothItemsandItemsSource(from discussion with @maxkatz6 )For the controls which now have only an
ItemsSourceproperty, we could add anItemsproperty for compatibility but I've not done that here. Let me know if that would be a good idea.Breaking changes
The
Itemsproperty onDataGrid,AutoCompleteBoxandItemsRepeaterhas been renamed toItemsSource.The
Itemsproperty onMenuFlyoutis now readonly -ItemsSourceshould be used for setting/binding.Depends on #10827