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

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

            //// Beschreibbare TextBox im Code Behind
            //TextBox textBox1 = new TextBox();
            //textBox1.Height = 72;
            //textBox1.Width = 444;
            //textBox1.Margin = new System.Windows.Thickness(24, 30, 0, 0);
            //textBox1.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //textBox1.VerticalAlignment = System.Windows.VerticalAlignment.Top;            
            //textBox1.Text = "Beschreibbare TextBox";

            //// Nur lesbare TextBox im Code Behind
            //TextBox textBox2 = new TextBox();           
            //textBox2.Height = 72;
            //textBox2.Width = 444;
            //textBox2.Margin = new System.Windows.Thickness(24, 108, 0, 0);
            //textBox2.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //textBox2.VerticalAlignment = System.Windows.VerticalAlignment.Top;            
            //textBox2.Text = "Nur lesbare TextBox";
            //textBox2.IsReadOnly = true;

            //// Beschreibbare, mehrzeilige TextBox mit Zeilenumbruch im Code Behind
            //TextBox textBox3 = new TextBox();           
            //textBox3.Height = 200;
            //textBox3.Width = 444;
            //textBox3.Margin = new System.Windows.Thickness(24, 186, 0, 0);
            //textBox3.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //textBox3.VerticalAlignment = System.Windows.VerticalAlignment.Top;            
            //textBox3.Text = "Dies ist eine beschreibbare TextBox mit mehreren Zeilen Text!";
            //textBox3.AcceptsReturn = true;
            //textBox3.TextWrapping = System.Windows.TextWrapping.Wrap;

            //// TextBox dem Grid hinzufügen
            //ContentGrid.Children.Add(textBox1);
            //ContentGrid.Children.Add(textBox2);
            //ContentGrid.Children.Add(textBox3);
        }
    }
}