private void BackStage_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (_ribbon.BackStage.SelectedItem != null)
{
if ((_ribbon.BackStage.SelectedItem) is BackstageTabItem)
{
(_ribbon.BackStage.SelectedItem as BackstageTabItem).Loaded += MainWindow_Loaded;
Border bd = (_ribbon.BackStage.SelectedItem as BackstageTabItem).Template.FindName("selectedBorder", _ribbon.BackStage.SelectedItem as BackstageTabItem) as Border;
if (bd != null)
bd.Background = Brushes.Red;
}
}
}
|