Example #1
0
        internal static VisualStateManager GetVisualStateManager(IFrameworkElement obj)
        {
            var value = (VisualStateManager)obj.GetValue(VisualStateManagerProperty);

            if (value == null)
            {
                obj.SetValue(VisualStateManagerProperty, value = new VisualStateManager());
            }

            return(value);
        }
Example #2
0
 internal static void SetVisualStateManager(IFrameworkElement obj, VisualStateManager value)
 {
     obj.SetValue(VisualStateManagerProperty, value);
 }
Example #3
0
 public static void SetVisualStateGroups(IFrameworkElement obj, IList <VisualStateGroup> value)
 {
     obj.SetValue(VisualStateGroupsProperty, value);
 }