Link mouse actions to results

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

To link mouse actions to results, use the following statements in xxx_TabItems.xml file

         LeftDoubleClickCommandParameter="<scriptname>"

         RightMouseClickCommandParameter="<scriptname>"

Full code

  <TabItemList>

    <TabItem xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x:Name="ClipboardNavTab" Header="Clipboard">

      <Grid Name="ClipboardGrid">

        <Grid.RowDefinitions>

          <RowDefinition Height="*"/>

          <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>

        <l:ShellResultView 

          Style="{DynamicResource ShellResultView}" 

          Grid.Row="0" 

          Name="ClipboardResultView" 

          DirectoryStyleName="List" 

          l:DragDropHelper.IsDragSource="true"  

          LeftDoubleClickCommandParameter="OpenDesigner"

          RightMouseClickCommandParameter="ShowClipboardNavTabPopup"

          l:ShellData.IsRegistered="True"

          SearchCriteriaSource="{x:Static l:Clipboard.SearchCriteria}">

        </l:ShellResultView>

        <l:StyleTabStrip Grid.Row="1" ShellResultView="{Binding ElementName=ClipboardResultView}"/>

      </Grid>

    </TabItem>