using Microsoft.Phone.Controls;
using System.Windows.Controls;

namespace Controls.Pages
{
    public partial class ButtonPage : PhoneApplicationPage
    {
        public ButtonPage()
        {
            InitializeComponent();

            //// Aktiver Button im Code Behind
            //Button button1 = new Button();
            //button1.Height = 72;
            //button1.Width = 444;
            //button1.Margin = new System.Windows.Thickness(24, 6, 0, 0);                     
            //button1.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //button1.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //button1.Content = "Aktiver Button";

            //// Inaktiver Button im Code Behind
            //Button button2 = new Button();                       
            //button2.Height = 72;
            //button2.Width = 444;
            //button2.Margin = new System.Windows.Thickness(24, 84, 0, 0);
            //button2.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //button2.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //button2.Content = "Inaktiver Button";
            //button2.IsEnabled = false;

            //// Button dem Grid hinzufügen
            //ContentGrid.Children.Add(button1);
            //ContentGrid.Children.Add(button2);
        }
    }
}