Exemple #1
0
        // Handles IsChecked changed
        private static void OnIsCheckedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StatusBarItem item = d as StatusBarItem;

            item.CoerceValue(VisibilityProperty);
            if ((bool)e.NewValue)
            {
                item.RaiseChecked();
            }
            else
            {
                item.RaiseUnchecked();
            }
        }
Exemple #2
0
        static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StatusBarItem item = (StatusBarItem)d;

            item.CoerceValue(ContentProperty);
        }