private async Task ShowEqualizer()
        {
            this.IsEqualizerOpen = true;
            var view = new EqualizerView()
            {
                ViewModel = new EqualizerViewModel(this.PlayerEngine.Equalizer)
            };

            view.ClosingFinished += (sender, args) => this.IsEqualizerOpen = false;
            await((MetroWindow)Application.Current.MainWindow).ShowChildWindowAsync(view);
        }
Ejemplo n.º 2
0
        public override void LoadView()
        {
            View = view = new EqualizerView(this);
            var style = View.GetStyle();

            if (NavigationController == null)
            {
                return;
            }
            NavigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes
            {
                ForegroundColor = style.AccentColor
            };

            menuButton = new UIBarButtonItem(Images.MenuImage, UIBarButtonItemStyle.Plain,
                                             (s, e) => { NotificationManager.Shared.ProcToggleMenu(); })
            {
                AccessibilityIdentifier = "menu",
            };
            NavigationItem.LeftBarButtonItem = BaseViewController.ShouldShowMenuButton(this) ? menuButton : null;
        }
 private async Task ShowEqualizer()
 {
     this.IsEqualizerOpen = true;
     var view = new EqualizerView() { ViewModel = new EqualizerViewModel(this.PlayerEngine.Equalizer) };
     view.ClosingFinished += (sender, args) => this.IsEqualizerOpen = false;
     await ((MetroWindow)Application.Current.MainWindow).ShowChildWindowAsync(view);
 }