From 0de5ca4e296f012465e3be4e2dd74dc835b55bb3 Mon Sep 17 00:00:00 2001 From: Noah Taheij Date: Sun, 27 Sep 2020 10:38:13 +0000 Subject: [PATCH] Fixed Minimum Property --- PokemonGo-UWP/Controls/ArcProgressBar.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PokemonGo-UWP/Controls/ArcProgressBar.cs b/PokemonGo-UWP/Controls/ArcProgressBar.cs index af1fbbfa6..b0ed266b1 100644 --- a/PokemonGo-UWP/Controls/ArcProgressBar.cs +++ b/PokemonGo-UWP/Controls/ArcProgressBar.cs @@ -120,6 +120,14 @@ private static void OnMaximumPropertyChanged(DependencyObject d, DependencyPrope control.Draw(); } + private static void OnMinimumPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + + var control = d as ArcProgressBar; + control.SetControlSize(); + control.Draw(); + } + private void Draw() { Children.Clear();