From ba0fe0b4e5af47ba73b688d0331201e48e0b76f7 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sat, 2 May 2015 14:16:36 +0200 Subject: [PATCH] Removed sliders tab. ScrollBar is currently adequately demonstrated in Images tab. --- TestApplication/Program.cs | 53 -------------------------------------- 1 file changed, 53 deletions(-) diff --git a/TestApplication/Program.cs b/TestApplication/Program.cs index d8132fe260..c85160351b 100644 --- a/TestApplication/Program.cs +++ b/TestApplication/Program.cs @@ -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().Select(x => x.ToString("0")), - [Grid.ColumnProperty] = 1, - [Grid.RowProperty] = 1, - } - }, - } - }; - } - private static TabItem LayoutTab() { return new TabItem