Exemplo n.º 1
0
        public static StateSetterCollection GetSetters(FrameworkElement item)
        {
            var collection = (StateSetterCollection)item.GetValue(SettersProperty);

            if (collection == null)
            {
                collection = new StateSetterCollection();
                item.SetValue(SettersProperty, collection);
            }

            return(collection);
        }
Exemplo n.º 2
0
 public static void SetSetters(FrameworkElement item, StateSetterCollection value)
 {
     item.SetValue(SettersProperty, value);
 }