|
|
|
@ -151,7 +151,6 @@ namespace TestApplication |
|
|
|
TextTab(), |
|
|
|
ImagesTab(), |
|
|
|
ListsTab(), |
|
|
|
SlidersTab(), |
|
|
|
LayoutTab(), |
|
|
|
AnimationsTab(), |
|
|
|
}, |
|
|
|
@ -428,58 +427,6 @@ namespace TestApplication |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
private static TabItem SlidersTab() |
|
|
|
{ |
|
|
|
ScrollBar sb; |
|
|
|
|
|
|
|
return new TabItem |
|
|
|
{ |
|
|
|
Header = "Sliders", |
|
|
|
Content = new Grid |
|
|
|
{ |
|
|
|
ColumnDefinitions = new ColumnDefinitions |
|
|
|
{ |
|
|
|
new ColumnDefinition(GridLength.Auto), |
|
|
|
new ColumnDefinition(GridLength.Auto), |
|
|
|
}, |
|
|
|
RowDefinitions = new RowDefinitions |
|
|
|
{ |
|
|
|
new RowDefinition(GridLength.Auto), |
|
|
|
new RowDefinition(GridLength.Auto), |
|
|
|
}, |
|
|
|
HorizontalAlignment = HorizontalAlignment.Center, |
|
|
|
VerticalAlignment = VerticalAlignment.Center, |
|
|
|
Children = new Controls |
|
|
|
{ |
|
|
|
new ScrollBar |
|
|
|
{ |
|
|
|
Orientation = Orientation.Vertical, |
|
|
|
Value = 25, |
|
|
|
Height = 300, |
|
|
|
[Grid.ColumnProperty] = 0, |
|
|
|
[Grid.RowProperty] = 1, |
|
|
|
}, |
|
|
|
(sb = new ScrollBar |
|
|
|
{ |
|
|
|
Orientation = Orientation.Horizontal, |
|
|
|
ViewportSize = 25, |
|
|
|
Value = 25, |
|
|
|
Width = 300, |
|
|
|
[Grid.ColumnProperty] = 1, |
|
|
|
[Grid.RowProperty] = 0, |
|
|
|
}), |
|
|
|
new TextBlock |
|
|
|
{ |
|
|
|
HorizontalAlignment = HorizontalAlignment.Center, |
|
|
|
[!TextBlock.TextProperty] = sb[!ScrollBar.ValueProperty].Cast<double>().Select(x => x.ToString("0")), |
|
|
|
[Grid.ColumnProperty] = 1, |
|
|
|
[Grid.RowProperty] = 1, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
private static TabItem LayoutTab() |
|
|
|
{ |
|
|
|
return new TabItem |
|
|
|
|