Closed aliEsmaelFard closed 9 months ago
You can use binding for SelectedItem
. It'll trigger the setter of your property when it's changed.
<material:PickerField Title="Select View Type"
ItemsSource="{Binding ControlTypeList}"
Margin="0,8"
SelectedItem="{Binding SelectedItem}" />
public class YourViewModel : ViewModelBase
{
object selectedItem;
public object SelectedItem
{
get => selectedItem;
set
{
selectedItem = value;
// Here you can handle the changes...
}
}
}
I'll consider adding events & commands for selection changes, but in the current version it's possible in this way
thank you. i have another questions why MultiplePickerField not work in windows?
thank you. i have another questions why MultiplePickerField not work in windows?
It uses a dialog implementation, did you configure UraniumUI.Dialogs.CommunityToolkit
or UraniumUI.Dialogs.Mopups
?
They come with a simple configuration: https://enisn-projects.io/docs/en/uranium/latest/dialogs/Index
Still Not Working Even In android Device
And I Check Your Demo Not Working In There too
I found the problem and fixed with https://github.com/enisn/UraniumUI/pull/598
It'll be included in the next release
when its released?
thanks
With the help of which handler we can understand the Selections Change?
<material:PickerField Title="Select View Type" ItemsSource="{Binding ControlTypeList}" Margin="0,8" />