Hi,
I'm trying to figure out how to have individual RadPanelBarItems have their background colors changed when a user tabs through the RadPanelBar. Currently when a user selects (left mouse click) a specific RadPanelBarItem, the color changes to orange (the default color); I want to be able to do the same if the user tabs to the item as well. The usage of IsTabStop and TabStop does not seem to work; I could perhaps be setting it incorrectly. The following is a code snippet of xaml implementation:
<telerikNavigation:RadPanelBar IsTabStop="True" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" VerticalAlignment="Stretch" x:Name="SummaryMenu" HorizontalAlignment="Stretch" Margin="0,-1,0,-1">
<telerikNavigation:RadPanelBar.Background>
<ImageBrush ImageSource="pack://application:,,,/Resources/Images/Left-Menu-Back.png" />
</telerikNavigation:RadPanelBar.Background>
<telerikNavigation:RadPanelBarItem IsExpanded="True" IsTabStop="True" BorderThickness="0">
<telerikNavigation:RadPanelBarItem.Header>
<TextBlock Text="VIEWS" Style="{StaticResource SmallMenuHeaderIconLabel}" />
</telerikNavigation:RadPanelBarItem.Header>
<telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="1" MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="MainViewLogicalConfiguration" IsSelected="True">
<telerikNavigation:RadPanelBarItem.Header>
<StackPanel Orientation="Vertical">
<Image Source="/Resources/Images/MenuIcons/MainView.png" ToolTip="Main" Style="{StaticResource SmallMenuIcon}"/>
<TextBlock Text="Main" Style="{StaticResource SmallMenuIconLabel}" />
</StackPanel>
</telerikNavigation:RadPanelBarItem.Header>
</telerikNavigation:RadPanelBarItem>
<telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="2" MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="PhysicalLayout" >
<telerikNavigation:RadPanelBarItem.Header>
<StackPanel Orientation="Vertical">
<Image Source="/Resources/Images/MenuIcons/Physical-Configuration.png" ToolTip="Physical Configuration" Style="{StaticResource SmallMenuIcon}"/>
<TextBlock Text="Physical Configuration" Style="{StaticResource SmallMenuIconLabel}" />
</StackPanel>
</telerikNavigation:RadPanelBarItem.Header>
</telerikNavigation:RadPanelBarItem>
......
......
</<telerikNavigation:RadPanelBar>
Thanks for the help,
Robert Quan
I'm trying to figure out how to have individual RadPanelBarItems have their background colors changed when a user tabs through the RadPanelBar. Currently when a user selects (left mouse click) a specific RadPanelBarItem, the color changes to orange (the default color); I want to be able to do the same if the user tabs to the item as well. The usage of IsTabStop and TabStop does not seem to work; I could perhaps be setting it incorrectly. The following is a code snippet of xaml implementation:
<telerikNavigation:RadPanelBar IsTabStop="True" Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" VerticalAlignment="Stretch" x:Name="SummaryMenu" HorizontalAlignment="Stretch" Margin="0,-1,0,-1">
<telerikNavigation:RadPanelBar.Background>
<ImageBrush ImageSource="pack://application:,,,/Resources/Images/Left-Menu-Back.png" />
</telerikNavigation:RadPanelBar.Background>
<telerikNavigation:RadPanelBarItem IsExpanded="True" IsTabStop="True" BorderThickness="0">
<telerikNavigation:RadPanelBarItem.Header>
<TextBlock Text="VIEWS" Style="{StaticResource SmallMenuHeaderIconLabel}" />
</telerikNavigation:RadPanelBarItem.Header>
<telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="1" MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="MainViewLogicalConfiguration" IsSelected="True">
<telerikNavigation:RadPanelBarItem.Header>
<StackPanel Orientation="Vertical">
<Image Source="/Resources/Images/MenuIcons/MainView.png" ToolTip="Main" Style="{StaticResource SmallMenuIcon}"/>
<TextBlock Text="Main" Style="{StaticResource SmallMenuIconLabel}" />
</StackPanel>
</telerikNavigation:RadPanelBarItem.Header>
</telerikNavigation:RadPanelBarItem>
<telerikNavigation:RadPanelBarItem IsTabStop="True" TabIndex="2" MouseLeftButtonDown="SummaryMenuDockingItemLeftButtonDownClick" MouseLeftButtonUp="SummaryMenuDockingItemLeftButtonUpClick" Keyboard.KeyUp="OnKeyPressEnterViewsMenuItem" Tag="PhysicalLayout" >
<telerikNavigation:RadPanelBarItem.Header>
<StackPanel Orientation="Vertical">
<Image Source="/Resources/Images/MenuIcons/Physical-Configuration.png" ToolTip="Physical Configuration" Style="{StaticResource SmallMenuIcon}"/>
<TextBlock Text="Physical Configuration" Style="{StaticResource SmallMenuIconLabel}" />
</StackPanel>
</telerikNavigation:RadPanelBarItem.Header>
</telerikNavigation:RadPanelBarItem>
......
......
</<telerikNavigation:RadPanelBar>
Thanks for the help,
Robert Quan