Description
Implements IClickScriptSource as a Button.
Namespace
xmlns:l="http://www.teradp.com/schemas/GN4/1/Shell/Presentation"
Members
For the list of properties and methods, see:
Example
<l:ClickSourceButton
VerticalAlignment="Top"
CommandParameter="ExecuteWorkflowOnObjects"
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
ObjectId="{Binding Path=[folderObject.id]}"
Command="{x:Static l:Commands.ParametersScript}" Param="wf=crop">
<l:ConfigIcon
IconName="tlb_Crop"
ToolTip="Crop"
Size="16" />
</l:ClickSourceButton>
It typically appears within a <xp:StackPanel in a <CellTemplate:
<CellTemplate>
<xp:StackPanel
VerticalAlignment="Top"
Orientation="Horizontal"
HorizontalAlignment="Left">
<l:ClickSourceButton
VerticalAlignment="Top"
CommandParameter="ExecuteWorkflowOnObjects"
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
ObjectId="{Binding Path=[folderObject.id]}"
Command="{x:Static l:Commands.ParametersScript}" Param="wf=crop">
<l:ConfigIcon
IconName="tlb_Crop"
ToolTip="Crop"
Size="16" />
</l:ClickSourceButton>
Other examples
<l:ClickSourceButton
VerticalContentAlignment="Stretch"
VerticalAlignment="Stretch"
Margin="2"
HorizontalAlignment="Right"
Command="{x:Static l:Commands.ClickScript}"
CommandParameter="ChangePageWorkstateDialogClick"
ObjectId="{Binding Path=[page.id]}"
AutoSelect="True"
>