Example #1
0
        public static VisualStateBindingCollection GetBindings(UIElement element)
        {
            var bindingCollection = element.GetValue(BindingsProperty) as VisualStateBindingCollection;

            if (bindingCollection == null)
            {
                bindingCollection = new VisualStateBindingCollection();
                element.SetValue(BindingsProperty, bindingCollection);
            }

            return bindingCollection;
        }
Example #2
0
 public static void SetBindings(UIElement element, VisualStateBindingCollection value)
 {
     element.SetValue(BindingsProperty, value);
 }