/*--- Method: Initialization ----------------------------------------------------------------------------------------------------------------------------------*/ /*--- Method: public ------------------------------------------------------------------------------------------------------------------------------------------*/ /*--- Method: private -----------------------------------------------------------------------------------------------------------------------------------------*/ /// <summary> DefaultImage変更時のコールバック /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private static void OnDefaultImageChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { ImageTabItem ctrl = obj as ImageTabItem; ImageSource source = e.NewValue as ImageSource; if (ctrl != null) { if (ctrl.IsSelectedImage == null) { ctrl.IsSelectedImage = source; } if (ctrl.IsFocusedImage == null) { ctrl.IsFocusedImage = source; } if (ctrl.IsMouseOverImage == null) { ctrl.IsMouseOverImage = source; } if (ctrl.IsDisabledImage == null) { ctrl.IsDisabledImage = source; } } }
/// <summary> IsDisabledImage変更時のコールバック /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private static void OnIsDisabledImageChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { ImageTabItem ctrl = obj as ImageTabItem; if (ctrl != null) { } }