diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-21 19:30:51 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-21 19:30:51 +0300 |
| commit | 0a1e93f29fa612818a2eb6a05c2e73201134dbf4 (patch) | |
| tree | e07582b92b7c33b86bf579bb3f88996c40457e5a /Software/Visual_Studio/Tango.SharedUI/Controls | |
| parent | d07def6b162c94a67f4b9d4f72c0606152e30cbb (diff) | |
| download | Tango-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.cs | 16 |
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; + } } } } |
