Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();

            MedievalButton btn = new MedievalButton();

            btn.Text     = "Click this button";
            btn.FontSize = 24;
            btn.Padding  = new Thickness(5, 20, 5, 20);
            btn.HorizontalContentAlignment = HorizontalAlignment.Center;
            btn.VerticalContentAlignment   = VerticalAlignment.Center;
            btn.Knock += Btn_Knock;
            btn.Width  = 50;

            this.Title   = "Get Medival";
            this.Content = btn;
        }