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

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

            //// Nicht selektierter RadioButton im Code Behind
            //RadioButton radioButton1 = new RadioButton();
            //radioButton1.Height = 72;
            //radioButton1.Width = 444;
            //radioButton1.Margin = new System.Windows.Thickness(24, 28, 0, 0);
            //radioButton1.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //radioButton1.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //radioButton1.Content = "Nicht selektierter RadioButton";
            //radioButton1.GroupName = "Gruppe1";

            //// Selektierter RadioButton im Code Behind
            //RadioButton radioButton2 = new RadioButton();            
            //radioButton2.Height = 72;
            //radioButton2.Width = 444;
            //radioButton2.Margin = new System.Windows.Thickness(24, 106, 0, 0);
            //radioButton2.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //radioButton2.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //radioButton2.Content = "Selektierter RadioButton";
            //radioButton2.GroupName = "Gruppe1";
            //radioButton2.IsChecked = true;

            //// Weiterer nicht selektierter RadioButton in Gruppe1 im Code Behind
            //RadioButton radioButton3 = new RadioButton();           
            //radioButton3.Height = 72;
            //radioButton3.Width = 444;
            //radioButton3.Margin = new System.Windows.Thickness(24, 184, 0, 0);
            //radioButton3.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //radioButton3.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //radioButton3.Content = "Weiterer nicht selektierter RadioBut.";
            //radioButton3.GroupName = "Gruppe1";

            //// RadioButton dem Grid hinzufügen
            //ContentGrid.Children.Add(radioButton1);
            //ContentGrid.Children.Add(radioButton2);
            //ContentGrid.Children.Add(radioButton3);
        }
    }
}