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

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

            //// Definition von Farben
            //SolidColorBrush mySilverBrush = new SolidColorBrush();
            //mySilverBrush.Color = Color.FromArgb(255, 192, 192, 192);
            //SolidColorBrush myBlueBrush = new SolidColorBrush(Colors.Blue);
            //SolidColorBrush myYellowBrush = new SolidColorBrush(Colors.Yellow);
            //SolidColorBrush myBlackBrush = new SolidColorBrush(Colors.Black);
            
            //// Einfacher, silberner Rand
            //Border border1 = new Border();
            //border1.Height = 120;
            //border1.Width = 422;
            //border1.Margin = new Thickness(12, 22, 0, 0);
            //border1.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            //border1.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            //border1.BorderBrush = mySilverBrush;
            //border1.BorderThickness = new Thickness(1);

            //// Dicker, blauer Rand mit 3 Textbloecken
            //Border border2 = new Border();
            //border2.Margin = new Thickness(85, 187, 121, 303);
            //border2.BorderBrush = myBlueBrush;
            //border2.BorderThickness = new Thickness(5);
            //// Textbloecke erzeugen
            //TextBlock textBlock1 = new TextBlock();
            //textBlock1.Text = "Textblock Eins";
            //TextBlock textBlock2 = new TextBlock();
            //textBlock2.Text = "Textblock Zwei";
            //TextBlock textBlock3 = new TextBlock();
            //textBlock3.Text = "Textblock Drei";
            //// Panel erstellen und Textbloecke hinzufuegen
            //StackPanel stackPabnel1 = new StackPanel();
            //stackPabnel1.Children.Add(textBlock1);
            //stackPabnel1.Children.Add(textBlock2);
            //stackPabnel1.Children.Add(textBlock3);
            //// Panel dem Rand hinzufuegen
            //border2.Child = stackPabnel1;

            //// Rand mit einem Textblock und abgerundeten Ecken
            //Border border3 = new Border();
            //border3.Margin = new Thickness(24,360,12,123);
            //border3.Padding = new Thickness(10);
            //border3.CornerRadius = new CornerRadius(45);
            //border3.Background = myYellowBrush;
            //// Textblock erstellen
            //TextBlock textBlock4 = new TextBlock();
            //textBlock4.Text = "Textblock mit abgerundetem Rand";
            //textBlock4.Foreground = myBlackBrush;
            //textBlock4.FontSize = 24;
            //// Textblock dem Rand hinzufuegen
            //border3.Child = textBlock4;

            //ContentPanel.Children.Add(border1);
            //ContentPanel.Children.Add(border2);
            //ContentPanel.Children.Add(border3);
        }
    }
}