private void hideWaitingDialog() { LayoutRoot.Children.Remove(_progress); _progress = null; ApplicationBar.IsVisible = true; }
private void showWaitingDialog(string message) { _progress = new ProgressOverlay(); _progress.Style = (Style)App.Current.Resources["ProgressBarStyle"]; ApplicationBar.IsVisible = false; _progress.Content = message; LayoutRoot.Children.Add(_progress); }
public TestSceneProgressOverlay() { AddRange(new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = Colour4.Gray }, overlay = new ProgressOverlay() }); var bar = overlay.AddItem("bar 1"); AddSliderStep("bar 1", 0, 1, 0.5, val => { if (!bar.IsAlive) { bar = overlay.AddItem("another bar"); } bar.Progress = val; }); }
private void load() { track.ValueChanged += ev => { ev.OldValue?.Stop(); ev.OldValue?.Dispose(); }; dependencies.Cache(backgroundVideo = new BackgroundVideo { Track = { BindTarget = track } }); QueueManager queue; dependencies.Cache(queue = new QueueManager { Track = { BindTarget = track }, Video = { BindTarget = video } }); ProgressOverlay progress; dependencies.Cache(progress = new ProgressOverlay()); PlaylistMenu menu; dependencies.Cache(menu = new PlaylistMenu { RelativeSizeAxes = Axes.Y }); InternalChildren = new Drawable[] { queue, new VisualizerContainer { RelativeSizeAxes = Axes.Both, Track = { BindTarget = track }, Children = new Drawable[] { backgroundVideo, new TriangleVisualizer { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre }, new BarVisualizer { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre }, new ProjectileVisualizer { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre }, progress, menu } }, new SongMenu(Direction.Vertical) { Anchor = Anchor.TopLeft, Origin = Anchor.TopLeft, PlayPause = queue.TogglePause, OpenPlaylist = menu.Show, ClosePlaylist = menu.Hide } }; }