Ejemplo n.º 1
0
 public static void SetFlowDirection(Control container, FlowDirection value)
 {
     if (!ClientUtils.IsEnumValid(value, (int)value, 0, 3))
     {
         throw new InvalidEnumArgumentException("value", (int)value, typeof(FlowDirection));
     }
     container.Properties.SetInteger(_flowDirectionProperty, (int)value);
     LayoutTransaction.DoLayout(container, container, PropertyNames.FlowDirection);
 }
Ejemplo n.º 2
0
 public static void SetWrapContents(Control container, bool value)
 {
     container.Properties.SetInteger(_wrapContentsProperty, value ? 0 : 1);
     LayoutTransaction.DoLayout(container, container, PropertyNames.WrapContents);
 }