Changes

XAML Tips

627 bytes added, 09:56, 12 November 2020
/* Creating multiple documents */
=== Creating multiple documents ===
To upload multiple documents at once, the CreateChildItemsCommand can be used. The AutoNavigate will always be set list of supported command parameters are similar to false those of the CreateChildItemCommand (does not need to be specifiedsingle item) . Except that anything other than AutoNavigate=false and the AutoCommit will always be set to =true (also does do not need to make sense in multi-creation scenario. Therefore, those parameters are fixed and any received from XAML will be specified)ignored.
<tabs>
 
<tab name="UWP">
<source lang = "xml">
<Button... xmlns:uc="using:UBIK.WinX.Controls" Command="{Binding CreateChildItemsCommand}" Content="Create multiple documents"> <Button.CommandParameter> <uc:KeyValueList> <uc:KeyValueParameter Key="Type" Value="6170a068-2314-4444-ad62-0da99769a048" /> </uc:KeyValueList> </Button.CommandParameter>
</Button>
</tab>
 
<tab name="Xamarin">
<source lang = "xml">
<Button ...
xmlns:classes="clr-namespace:UBIK.CPL.Classes;assembly=UBIK.CPL"
Command="{Binding CreateChildItemsCommand}"
Content="Create multiple documents">
<Button.CommandParameter>
<classes:KeyValueList>
<classes:KeyValueParameter Key="Type" Value="6170a068-2314-4444-ad62-0da99769a048" />
</classes:KeyValueList>
</Button.CommandParameter>
</Button>
</tab>
 
</tabs>
 
</source>