Ejemplo n.º 1
0
 private static void Create()
 {
     Current = new AdsPanel()
     {
         Background          = new SolidColorBrush(Colors.Black),
         HorizontalAlignment = HorizontalAlignment.Stretch,
         VerticalAlignment   = VerticalAlignment.Bottom,
         Height = 50
     };
     Current.Children.Add(new TextBlock()
     {
         Text = "Advertisement", FontSize = 30, TextAlignment = TextAlignment.Center, VerticalAlignment = VerticalAlignment.Center
     });
 }
Ejemplo n.º 2
0
        public void ShowDialog(Grid innerGrid)
        {
            ControlPanel.Hide();
            innerGrid.VerticalAlignment   = VerticalAlignment.Center;
            innerGrid.HorizontalAlignment = HorizontalAlignment.Center;

            if (Dialog == null)
            {
                CreateDialog();
            }
            DialogTabs.Items.RemoveAt(0);
            DialogTabs.Items.Insert(0, new PivotItem()
            {
                Content = innerGrid, Margin = new Thickness(12, 0, 12, 12)
            });
            DialogTabs.SelectedIndex = 0;
            Animations.ShowDialogAnimation(Dialog);

            AdsPanel.Show();
        }
Ejemplo n.º 3
0
 public void HideDialog()
 {
     AdsPanel.Hide();
     Animations.HideDialogAnimation(Dialog);
 }