Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with Xaml

  • Silverlight 2 - Creating a Play/Pause button using a ControlTemplate

    A Button is one of the most common elements used in an interactive application.  In Silverlight 2, it is possible to specify nearly any control’s appearance by using a ControlTemplate.  The control’s template can be defined within the control’s <ControlTemplate/> inner property, or it can be built as a resource at the page or application level.  We can reference these resources in the control's Style or ControlTemplate property (ControlTemplate can be a child of a Style, making it possible to add additional Setters to that Style).