Changes

Property Wizard (Client)

1,959 bytes added, 10:22, 25 September 2019
* once done, the object will be immediately saved (and committed if in online mode) automatically.
{{Attention|If the user presses {{key press|Cancel}} in any of the dialogs during the creation process, the creation will be canceled and the object will be discarded.}}
 
Using a customized Editor Template it is possible to attach documents during content creation using the property wizard {{Version/WinXSince|3.6}}. For that specific UBIKEdit template has to be extended by the following:
 
<syntaxhighlight lang="xml">
<AppBarButton
Icon="Camera"
IsEnabled="{Binding EditDialogViewModel.CallingViewModel.IsPictureChildCreationAllowed}"
Style="{ThemeResource UBIKGlobalChildAppBarAppBarButton}"
Visibility="{Binding EditDialogViewModel.CallingViewModel.IsPropertyWizardActive, Converter={StaticResource BoolToVisConverter}, FallbackValue=Collapsed}">
<Interactivity:Interaction.Behaviors>
<Core:EventTriggerBehavior EventName="Tapped">
<Core:InvokeCommandAction Command="{Binding EditDialogViewModel.CallingViewModel.CaptureMediaCommand}" />
</Core:EventTriggerBehavior>
</Interactivity:Interaction.Behaviors>
</AppBarButton>
<ScrollViewer
MaxWidth="500"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto"
Visibility="{Binding EditDialogViewModel.CallingViewModel.IsPropertyWizardActive, Converter={StaticResource BoolToVisConverter}, FallbackValue=Collapsed}">
<ListView
HorizontalContentAlignment="Stretch"
ItemTemplate="{Binding EditDialogViewModel.CallingViewModel.TemplateService[UBIKDocumentItemSmall]}"
ItemsSource="{Binding EditDialogViewModel.CallingViewModel.Documents.Items}">
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<ItemsStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Padding" Value="0" />
<Setter Property="Margin" Value="10,8,0,0" />
</Style>
</ListView.ItemContainerStyle>
</ListView>
</ScrollViewer>
</syntaxhighlight>
[[Category:WinX|Property Wizard (Client)]]
335
edits