Does the MAUI UI Toolkit work with the MAUI MVVM Community toolkit (), specifically the RelayCommand.
I am trying to configure the ListPicker to work with a RelayCommand but its not firing.
I am using the ListPicker on Windows, Latest Visual Studio, .net and Telerik versions.
XAML
<telerik:RadListPicker x:Name="WorkflowPicker" Placeholder="Select Workfow" ItemsSource="{Binding Workflows, Mode=TwoWay}" DisplayMemberPath="Name" PickerMode="DropDown" IsLooping="False" WidthRequest="300" Margin="3" BackgroundColor="Transparent" SelectedItem="{Binding SelectedWorkflow}">
<telerik:RadListPicker.DropDownSettings>
<telerik:PickerDropDownSettings AcceptCommand="{Binding OnWorkflowsPickerAcceptRelay}" CancelCommand="{Binding WorkflowsPickerCancelCommand}" />
</telerik:RadListPicker.DropDownSettings>
<telerik:RadListPicker.ItemTemplate>
<DataTemplate>
<Label Text="{Binding Name}" HorizontalTextAlignment="Start" VerticalTextAlignment="Center"/>
</DataTemplate>
</telerik:RadListPicker.ItemTemplate>
</telerik:RadListPicker>
Page Model
public ICommand WorkflowsPickerCancelCommand { private set; get; }
public MainPageViewModel()
{
this.WorkflowsPickerCancelCommand = new Command(this.OnWorkflowsPickerCancel);
}
private void OnWorkflowsPickerCancel(object obj)
{
// This fires
}
[RelayCommand]
private void OnWorkflowsPickerAcceptRelay(object obj)
{
// This does not fire
}
Are there any examples using the MVVM toolkit?