/*--- Method: Initialization ----------------------------------------------------------------------------------------------------------------------------------*/ /*--- Method: public ------------------------------------------------------------------------------------------------------------------------------------------*/ /*--- Method: private -----------------------------------------------------------------------------------------------------------------------------------------*/ /// <summary> OutlineTextData変更時のコールバック /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private static void OnOutlineTextDataChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { OutlineTextCustomView ctrl = obj as OutlineTextCustomView; if (ctrl != null) { } }
/// <summary> ShadowEditParam変更時のコールバック /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private static void OnShadowEditParamChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { OutlineTextCustomView ctrl = obj as OutlineTextCustomView; if (ctrl != null) { ctrl.ShadowColorEditButton.CommandParameter = e.NewValue; } }
/// <summary> EditCommand変更時のコールバック /// </summary> /// <param name="obj"></param> /// <param name="e"></param> private static void OnEditCommandChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e) { OutlineTextCustomView ctrl = obj as OutlineTextCustomView; if (ctrl != null) { ctrl.InnerColorEditButton.Command = (DelegateCommand <ColorEditTarget?>)e.NewValue; ctrl.OutlineColorEditButton.Command = (DelegateCommand <ColorEditTarget?>)e.NewValue; ctrl.ShadowColorEditButton.Command = (DelegateCommand <ColorEditTarget?>)e.NewValue; } }