.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Articles >> WPF >> Post New Resource Bookmark and Share   

 Subscribe to Articles

BulletDecorator in WPF Day-3

Posted By:Narayanan       Posted Date: August 27, 2012    Points: 200    Category: WPF    URL: http://www.dotnetspark.com  

Introduction: Last Two days, we talked about WPF Introduction, AccessText Control and Board. Today we will discuss about Button and BulletDecorator Control

·  Button Control:

                     Button is an intermediary between forms or controls.

  Create Button in XAML:


<Button Name="btn_can" Margin="88,118,102,120">Cancel</Button>

<Button  Height="33" Margin="88,0,99,59" Name="btn_Ok" VerticalAlignment="Bottom" Click="btn_OK_Click">OK</Button>

Create Border in Coding:


private void btnControl()


            btn_Exit = new Button();

            btn_Exit.Background = Brushes.Ivory ;

            btn_Exit.Content = "Exit";

            btn_Exit.Name = "ButtonExit";

            btn_Exit.Height = 30;

            btn_Exit.Width = 50;

            btn_Exit.Margin = new Thickness(10, 10, 20, 50);

            btn_Exit.Click += new RoutedEventHandler(btn_Exit_Click);

            this.Content = btn_Exit;


  private void btn_Exit_Click(object sender, RoutedEventArgs  e)


            string btnName = btn_Exit.Name;



   private void Window_Loaded(object sender, RoutedEventArgs e)





·  BulletDecorator Control:

      It starts from .Net Framework 4.5.

                Represents a layout control that aligns a bullet and another visual object.

Please refer this:



  I hope, you get some ideas about Button and BulletDecorator Control in WPF. Thanks for reading this article. We will talk about other controls in next Chapters.              


 Subscribe to Articles


Further Readings:


    No response found. Be the first to respond this post

    Post Comment

    You must Sign In To post reply
    Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

    Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend