diff options
-rwxr-xr-x | TVHome/TVHome/Views/MainPage.xaml.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs index f95992e..296928b 100755 --- a/TVHome/TVHome/Views/MainPage.xaml.cs +++ b/TVHome/TVHome/Views/MainPage.xaml.cs @@ -68,9 +68,11 @@ namespace TVHome.Views private async void Iconified() { #pragma warning disable CS4014 - SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, SizeUtils.GetWidthSize(100), 150); + SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, SizeUtils.GetHeightSize(100), 150); + SubPanelDictionary[SelectedMenuName]?.FadeTo(0,150); DimmedBgImage.FadeTo(0.0, 150); #pragma warning restore CS4014 + PageMainPanel.TranslateTo(0.0, 0.0, 150); await PageMainPanel.ScaleTo(0.0, 150); DependencyService.Get<IWindowAPIs>().SetIconified(true); } @@ -82,8 +84,10 @@ namespace TVHome.Views { #pragma warning disable CS4014 SubPanelDictionary[SelectedMenuName]?.TranslateTo(0.0, 0.0, 150); + SubPanelDictionary[SelectedMenuName]?.FadeTo(0.3, 150); DimmedBgImage.FadeTo(0.5, 150); #pragma warning restore CS4014 + PageMainPanel.TranslateTo(0.0, 0.0, 150); await PageMainPanel.ScaleTo(1.0, 150); DependencyService.Get<IWindowAPIs>().SetIconified(false); } |