Beispiel #1
0
        private static void SeletedIndexOnChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TabButton Con = (TabButton)sender;

            int NewValue = (int)e.NewValue;

            if (NewValue == Con.TabIndex)
            {
                Con.Button.Foreground = Con.Resources["SeletedForeground"] as SolidColorBrush;
            }
            else
            {
                Con.Button.Foreground = Con.UsualForeground;
            }
        }
Beispiel #2
0
        private static void TextOnChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TabButton Con = (TabButton)sender;

            Con.TextControl.Text = e.NewValue as string;
        }
Beispiel #3
0
        private static void IconOnChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            TabButton Con = (TabButton)sender;

            Con.IconControl.Content = e.NewValue;
        }