private void App_NavigateToGuildHandler(object sender, App.GuildNavigationArgs e) { if (e.GuildId == guildid && ChannelGrid.Visibility != Visibility.Collapsed) { HideChannel.Begin(); } else if (ChannelGrid.Visibility == Visibility.Collapsed) { ShowChannel.Begin(); } }
private void OnPropertyChanged(DependencyObject d, DependencyProperty prop) { if (prop == FullscreenProperty) { MainGrid.HorizontalAlignment = HorizontalAlignment.Stretch; MainGrid.VerticalAlignment = VerticalAlignment.Stretch; MainGrid.Background = (App.Current.Resources["AcrylicUserBackgroundDarker"] as Brush); ShowChannel.Begin(); if (App.ShowAds) { FullScreenAdBanner.Visibility = Visibility.Visible; } } }