Browse Source

Layout Rounding Design Time Property

Expression Blend sets this Property sometimes
pull/72/head
jkuehner 12 years ago
parent
commit
77bb8e480a
  1. 17
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/DesignTimeProperties.cs

17
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/DesignTimeProperties.cs

@ -112,5 +112,22 @@ namespace ICSharpCode.WpfDesign.XamlDom @@ -112,5 +112,22 @@ namespace ICSharpCode.WpfDesign.XamlDom
DependencyProperty.RegisterAttached("DesignHeight", typeof(double), typeof(DesignTimeProperties));
#endregion
#region LayoutRounding
public static bool GetLayoutRounding(DependencyObject obj)
{
return (bool)obj.GetValue(DesignHeightProperty);
}
public static void SetLayoutRounding(DependencyObject obj, bool value)
{
obj.SetValue(DesignHeightProperty, value);
}
public static readonly DependencyProperty DesignLayoutRounding =
DependencyProperty.RegisterAttached("LayoutRounding", typeof(bool), typeof(DesignTimeProperties));
#endregion
}
}

Loading…
Cancel
Save