From 80fbea36e0cdeb06053c330def0963ea3972c110 Mon Sep 17 00:00:00 2001 From: jogibear9988 Date: Thu, 6 Nov 2014 20:16:07 +0100 Subject: [PATCH] Fix: Set Height niot width with DesignHeight --- .../WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs index 00004a069f..929d58b6b8 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs @@ -238,7 +238,7 @@ namespace ICSharpCode.WpfDesign.XamlDom if (propertyInfo.DependencyProperty == DesignTimeProperties.DesignHeightProperty) { var heightProperty = this.ParentObject.Properties.FirstOrDefault(x => x.DependencyProperty == FrameworkElement.HeightProperty); if (heightProperty == null || !heightProperty.IsSet) - ((FrameworkElement)this.ParentObject.Instance).Width = (double)ValueOnInstance; + ((FrameworkElement)this.ParentObject.Instance).Height = (double)ValueOnInstance; } } catch {