aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Controls
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-21 19:30:51 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-21 19:30:51 +0300
commit0a1e93f29fa612818a2eb6a05c2e73201134dbf4 (patch)
treee07582b92b7c33b86bf579bb3f88996c40457e5a /Software/Visual_Studio/Tango.SharedUI/Controls
parentd07def6b162c94a67f4b9d4f72c0606152e30cbb (diff)
downloadTango-0a1e93f29fa612818a2eb6a05c2e73201134dbf4.tar.gz
Tango-0a1e93f29fa612818a2eb6a05c2e73201134dbf4.zip
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Controls')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Controls/TableGrid.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Controls/TableGrid.cs b/Software/Visual_Studio/Tango.SharedUI/Controls/TableGrid.cs
index 0987e2445..7a0f6de61 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Controls/TableGrid.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/Controls/TableGrid.cs
@@ -19,8 +19,6 @@ namespace Tango.SharedUI.Controls
public static readonly DependencyProperty RowHeightProperty =
DependencyProperty.Register("RowHeight", typeof(GridLength), typeof(TableGrid), new FrameworkPropertyMetadata(new GridLength(1, GridUnitType.Star), FrameworkPropertyMetadataOptions.AffectsRender));
-
-
public Thickness SecondRowMargin
{
get { return (Thickness)GetValue(SecondRowMarginProperty); }
@@ -31,6 +29,15 @@ namespace Tango.SharedUI.Controls
public static readonly DependencyProperty SecondRowMarginProperty =
DependencyProperty.Register("SecondRowMargin", typeof(Thickness), typeof(TableGrid), new PropertyMetadata(new Thickness(20, 0, 0, 0)));
+ public bool MakeFirstColumnVerticalAlignmentBottom
+ {
+ get { return (bool)GetValue(MakeFirstColumnVerticalAlignmentBottomProperty); }
+ set { SetValue(MakeFirstColumnVerticalAlignmentBottomProperty, value); }
+ }
+ public static readonly DependencyProperty MakeFirstColumnVerticalAlignmentBottomProperty =
+ DependencyProperty.Register("MakeFirstColumnVerticalAlignmentBottom", typeof(bool), typeof(TableGrid), new PropertyMetadata(true));
+
+
public TableGrid()
@@ -78,7 +85,10 @@ namespace Tango.SharedUI.Controls
RowDefinitions.Add(new RowDefinition() { Height = RowHeight });
}
- (Children[i] as FrameworkElement).VerticalAlignment = VerticalAlignment.Bottom;
+ if (MakeFirstColumnVerticalAlignmentBottom)
+ {
+ (Children[i] as FrameworkElement).VerticalAlignment = VerticalAlignment.Bottom;
+ }
}
}
}