|
@@ -23,7 +23,15 @@ namespace InABox.DynamicGrid
|
|
|
|
|
|
protected override FrameworkElement CreateEditor()
|
|
|
{
|
|
|
- MinHeight = 50;
|
|
|
+
|
|
|
+ if (!EditorDefinition.Height.IsEffectivelyEqual(0.00))
|
|
|
+ {
|
|
|
+ MinHeight = EditorDefinition.Height;
|
|
|
+ MaxHeight = EditorDefinition.Height;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ MinHeight = 50;
|
|
|
+
|
|
|
Editor = new TextBox
|
|
|
{
|
|
|
VerticalAlignment = VerticalAlignment.Stretch,
|
|
@@ -31,7 +39,8 @@ namespace InABox.DynamicGrid
|
|
|
HorizontalAlignment = HorizontalAlignment.Stretch,
|
|
|
VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
|
|
|
TextWrapping = TextWrapping.Wrap,
|
|
|
- AcceptsReturn = true
|
|
|
+ AcceptsReturn = true,
|
|
|
+
|
|
|
};
|
|
|
Editor.TextChanged += (o, e) =>
|
|
|
{
|