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

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

            //// Normaler HyperlinkButton
            //HyperlinkButton hyperlinkButton1 = new HyperlinkButton();
            //hyperlinkButton1.Width = 444;
            //hyperlinkButton1.Height = 79;
            //hyperlinkButton1.Margin = new Thickness(24, 32, 0, 0);
            //hyperlinkButton1.HorizontalContentAlignment = HorizontalAlignment.Center;
            //hyperlinkButton1.VerticalAlignment = VerticalAlignment.Top;
            //hyperlinkButton1.Content = "HyperlinkButton";
            //hyperlinkButton1.Click += new RoutedEventHandler(hyperlinkButton1_Click);

            //// HyperlinkButton mit Internet URL als Ziel
            //HyperlinkButton hyperlinkButton2 = new HyperlinkButton();
            //hyperlinkButton2.Width = 444;
            //hyperlinkButton2.Height = 79;
            //hyperlinkButton2.Margin = new Thickness(24, 122, 0, 0);
            //hyperlinkButton2.HorizontalContentAlignment = HorizontalAlignment.Center;
            //hyperlinkButton2.VerticalAlignment = VerticalAlignment.Top;
            //hyperlinkButton2.Content = "HyperlinkButton zur Webseite bing.com";
            //hyperlinkButton2.NavigateUri = new Uri("http://www.bing.com");

            //// HyperlinkButton mit UriMapper als Ziel
            //HyperlinkButton hyperlinkButton3 = new HyperlinkButton();
            //hyperlinkButton3.Width = 444;
            //hyperlinkButton3.Height = 79;
            //hyperlinkButton3.Margin = new Thickness(24, 234, 0, 0);
            //hyperlinkButton3.HorizontalContentAlignment = HorizontalAlignment.Center;
            //hyperlinkButton3.VerticalAlignment = VerticalAlignment.Top;
            //hyperlinkButton3.Content = "HyperlinkButton mit UriMapper";
            //hyperlinkButton3.NavigateUri = new Uri("/MyUriMapper", UriKind.Relative);

            //// HyperlinkButton dem Grid hinzufügen
            //ContentGrid.Children.Add(hyperlinkButton1);
            //ContentGrid.Children.Add(hyperlinkButton2);
            //ContentGrid.Children.Add(hyperlinkButton3);
        }

        private void hyperlinkButton1_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("Der HyperlinkButton wurde geklickt!");
        }
    }
}