internal static VisualStateManager GetVisualStateManager(IFrameworkElement obj) { var value = (VisualStateManager)obj.GetValue(VisualStateManagerProperty); if (value == null) { obj.SetValue(VisualStateManagerProperty, value = new VisualStateManager()); } return(value); }
internal static void SetVisualStateManager(IFrameworkElement obj, VisualStateManager value) { obj.SetValue(VisualStateManagerProperty, value); }
public static void SetVisualStateGroups(IFrameworkElement obj, IList <VisualStateGroup> value) { obj.SetValue(VisualStateGroupsProperty, value); }