Esempio n. 1
0
        private static ColumnWidthBehavior GetOrSetBehavior(DependencyObject sender)
        {
            var behavior = GetColumnWidthBehavior(sender);

            if (behavior == null)
            {
                behavior = new ColumnWidthBehavior();
                SetColumnWidthBehavior(sender, behavior);
            }
            return(behavior);
        }
 private static ColumnWidthBehavior GetOrSetBehavior(DependencyObject sender)
 {
     var behavior = GetColumnWidthBehavior(sender);
     if (behavior == null)
     {
         behavior = new ColumnWidthBehavior();
         SetColumnWidthBehavior(sender, behavior);
     }
     return behavior;
 }
 private static void SetColumnWidthBehavior(DependencyObject obj, ColumnWidthBehavior value)
 {
     obj.SetValue(ColumnWidthBehaviorProperty, value);
 }
Esempio n. 4
0
 private static void SetColumnWidthBehavior(DependencyObject obj, ColumnWidthBehavior value)
 {
     obj.SetValue(ColumnWidthBehaviorProperty, value);
 }