Browse Source

Fix: Set Height niot width with DesignHeight

pull/592/head
jogibear9988 12 years ago
parent
commit
80fbea36e0
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

@ -238,7 +238,7 @@ namespace ICSharpCode.WpfDesign.XamlDom
if (propertyInfo.DependencyProperty == DesignTimeProperties.DesignHeightProperty) { if (propertyInfo.DependencyProperty == DesignTimeProperties.DesignHeightProperty) {
var heightProperty = this.ParentObject.Properties.FirstOrDefault(x => x.DependencyProperty == FrameworkElement.HeightProperty); var heightProperty = this.ParentObject.Properties.FirstOrDefault(x => x.DependencyProperty == FrameworkElement.HeightProperty);
if (heightProperty == null || !heightProperty.IsSet) if (heightProperty == null || !heightProperty.IsSet)
((FrameworkElement)this.ParentObject.Instance).Width = (double)ValueOnInstance; ((FrameworkElement)this.ParentObject.Instance).Height = (double)ValueOnInstance;
} }
} }
catch { catch {

Loading…
Cancel
Save