バージョン

GroupMoveUpCommand フィールド

ナビゲーション領域内の場合は、OutlookBarGroup を上に移動します。オーバーフロー領域の場合は、グループを左に移動します。CommandParameter で (たとえば、myButton.CommandParameter = aGroup) 移動される OutlookBarGroup を提供します。
シンタックス
'宣言
 
Public Shared ReadOnly GroupMoveUpCommand As RoutedCommand
public static readonly RoutedCommand GroupMoveUpCommand
使用例
<Window x:Class="XamOutlookBarBug.WindowXOB"
    
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
xmlns:igOutlookBar="http://infragistics.com/OutlookBar"
    
Title="OutlookBar Commands" Height="300" Width="300" >
    
<StackPanel Orientation="Horizontal">
        
<igOutlookBar:XamOutlookBar Name="xamOutlookBar1" Width="144">
            
<igOutlookBar:OutlookBarGroup Header="Group 1" Key="Group1">
                
<Grid>
                    
<TextBox Text="This is a Group 1"/>
                
</Grid>
            
</igOutlookBar:OutlookBarGroup>
            
<igOutlookBar:OutlookBarGroup Header="Group 2" Key="Group2">
                
<Grid>
                    
<TextBox Text="This is a Group 2"/>
                
</Grid>
            
</igOutlookBar:OutlookBarGroup>
        
</igOutlookBar:XamOutlookBar>
        
<StackPanel>
            
<Button x:Name="btnUp" Content="Move Up" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.GroupMoveUpCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1, Path=SelectedGroup}"/>
            
<Button x:Name="btnDown" Content="Move Down" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.GroupMoveDownCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1, Path=SelectedGroup}"/>
            
<Button x:Name="btnSelect1" Content="Select 1" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.SelectGroupCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1, Path=SelectedGroup}"
                
CommandParameter="{Binding ElementName=xamOutlookBar1, Path=Groups[Group1]}"/>
            
<Button x:Name="btnSelect2" Content="Select 2" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.SelectGroupCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1, Path=SelectedGroup}"
                
CommandParameter="{Binding ElementName=xamOutlookBar1, Path=Groups[Group2]}"/>
            
<Button x:Name="btnMore" Content="Show More" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.ShowMoreButtonsCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1}"/>
            
<Button x:Name="btnFewer" Content="Show Fewer" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.ShowFewerButtonsCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1}"/>
            
<Button x:Name="btnOptions" Content="Options" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.ShowOptionsCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1}"/>
            
<Button x:Name="btnPopup" Content="Show Popup" Margin="2"
                
Command="{x:Static igOutlookBar:OutlookBarCommands.ShowPopupCommand}"
                
CommandTarget="{Binding ElementName=xamOutlookBar1}"/>
        
</StackPanel>
    
</StackPanel>
</Window>
Private  Sub WindowXOB_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Dim binding As Binding
 
    ' move up
    btnDown.Command = OutlookBarCommands.GroupMoveDownCommand
    binding = New Binding("SelectedGroup")
    binding.Source = Me.xamOutlookBar1
    btnDown.SetBinding(Button.CommandTargetProperty, binding)
 
    ' move down
    btnUp.Command = OutlookBarCommands.GroupMoveUpCommand
    binding = New Binding("SelectedGroup")
    binding.Source = Me.xamOutlookBar1
    btnUp.SetBinding(Button.CommandTargetProperty, binding)
 
    ' select group 1
    btnSelect1.Command = OutlookBarCommands.GroupMoveUpCommand
    btnSelect1.CommandTarget = Me.xamOutlookBar1
    btnSelect1.CommandParameter = Me.xamOutlookBar1.Groups("Group1")
 
    ' select group 2
    btnSelect2.Command = OutlookBarCommands.GroupMoveUpCommand
    btnSelect2.CommandTarget = Me.xamOutlookBar1
    btnSelect2.CommandParameter = Me.xamOutlookBar1.Groups("Group2")
 
    ' show more buttons
    btnMore.Command = OutlookBarCommands.ShowMoreButtonsCommand
    btnMore.CommandTarget = Me.xamOutlookBar1
 
    ' show fewer buttons
    btnFewer.Command = OutlookBarCommands.ShowFewerButtonsCommand
    btnFewer.CommandTarget = Me.xamOutlookBar1
 
    ' show options
    btnOptions.Command = OutlookBarCommands.ShowOptionsCommand
    btnOptions.CommandTarget = Me.xamOutlookBar1
 
    ' shou popup wheh xamOutlookBar1 is minimized
    btnPopup.Command = OutlookBarCommands.ShowPopupCommand
    btnPopup.CommandTarget = Me.xamOutlookBar1
End Sub
void WindowXOB_Loaded(object sender, RoutedEventArgs e)
{
    Binding binding;

    // move up
    btnDown.Command = OutlookBarCommands.GroupMoveDownCommand;
    binding = new Binding("SelectedGroup");
    binding.Source = this.xamOutlookBar1;
    btnDown.SetBinding(Button.CommandTargetProperty, binding);

    // move down
    btnUp.Command = OutlookBarCommands.GroupMoveUpCommand;
    binding = new Binding("SelectedGroup");
    binding.Source = this.xamOutlookBar1;
    btnUp.SetBinding(Button.CommandTargetProperty, binding);

    // select group 1
    btnSelect1.Command = OutlookBarCommands.GroupMoveUpCommand;
    btnSelect1.CommandTarget = this.xamOutlookBar1;
    btnSelect1.CommandParameter = this.xamOutlookBar1.Groups["Group1"];

    // select group 2
    btnSelect2.Command = OutlookBarCommands.GroupMoveUpCommand;
    btnSelect2.CommandTarget = this.xamOutlookBar1;
    btnSelect2.CommandParameter = this.xamOutlookBar1.Groups["Group2"];

    // show more buttons
    btnMore.Command = OutlookBarCommands.ShowMoreButtonsCommand;
    btnMore.CommandTarget = this.xamOutlookBar1;

    // show fewer buttons
    btnFewer.Command = OutlookBarCommands.ShowFewerButtonsCommand;
    btnFewer.CommandTarget = this.xamOutlookBar1;

    // show options
    btnOptions.Command = OutlookBarCommands.ShowOptionsCommand;
    btnOptions.CommandTarget = this.xamOutlookBar1;

    // shou popup wheh xamOutlookBar1 is minimized
    btnPopup.Command = OutlookBarCommands.ShowPopupCommand;
    btnPopup.CommandTarget = this.xamOutlookBar1;
}
参照