<br />
<source lang = "xml">
<AppBarButtonButton xmlns:example="using:UBIK.WinX.Controls" Command="{Binding Children.InvokeOnItemsCommand}" Icon="AllApps" Label Content="Set to 50%" Style="{ThemeResource UBIKActionAppBarButton}"> <AppBarButtonButton.CommandParameter> <example:KeyValueList> <example:KeyValueParameter Key="Command" Value="SetPropertyValueCommand" /> <example:KeyValueParameter Key="SelectedItemsOnly" Value="TrueFalse" /> <example:KeyValueParameter Key="PropertyName" Value="VALUE" /> <example:KeyValueParameter Key="PropertyValue" > <example:KeyValueParameter.Value="> <x:Double>50" </x:Double> </example:KeyValueParameter.Value> </example:KeyValueParameter> </example:KeyValueList> </AppBarButtonButton.CommandParameter> </AppBarButtonButton>
</source>
==== Invoke on filtered results ====
This single value is then passed as the command parameter instead of the entire KeyValueList.
[[Category:Client|XAML Tips]][[Category:WinX|XAML Tips]][[Category:XAML|XAML Tips]][[Category:Xamarin|XAML Tips]]
=== SetPropertyValueCommand {{Version/WinXSince|3.6}} ===