Browse Source

Make ProgressBar compile.

And add to test app.
pull/63/head
Steven Kirk 11 years ago
parent
commit
ea62b109b7
  1. 5
      Perspex.Themes.Default/ProgressBarStyle.cs
  2. 4
      TestApplication/Program.cs

5
Perspex.Themes.Default/ProgressBarStyle.cs

@ -36,7 +36,7 @@
[~Border.BorderBrushProperty] = control[~ProgressBar.BorderBrushProperty], [~Border.BorderBrushProperty] = control[~ProgressBar.BorderBrushProperty],
[~Border.BorderThicknessProperty] = control[~ProgressBar.BorderThicknessProperty], [~Border.BorderThicknessProperty] = control[~ProgressBar.BorderThicknessProperty],
Content = new Grid Child = new Grid
{ {
MinHeight = 14, MinHeight = 14,
MinWidth = 200, MinWidth = 200,
@ -56,8 +56,7 @@
BorderThickness = 1, BorderThickness = 1,
HorizontalAlignment = HorizontalAlignment.Left, HorizontalAlignment = HorizontalAlignment.Left,
[~Border.BackgroundProperty] = control[~ProgressBar.ForegroundProperty], [~Border.BackgroundProperty] = control[~ProgressBar.ForegroundProperty],
Child = new Grid
Content = new Grid
{ {
Name = "Animation", Name = "Animation",
ClipToBounds = true, ClipToBounds = true,

4
TestApplication/Program.cs

@ -448,6 +448,10 @@ namespace TestApplication
[!Image.HeightProperty] = size[!ScrollBar.ValueProperty], [!Image.HeightProperty] = size[!ScrollBar.ValueProperty],
}, },
}, },
new ProgressBar
{
Value = 50
}
} }
}, },
}; };

Loading…
Cancel
Save