ClickSourceButton class

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 16:29

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:

http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4WinUIControlsClickSourceButtonClassTopic_members+.html

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"

>