Basic Library for WPF and Silverlight | ComponentOne
WPF and Silverlight Edition Basic Library / Drop Down / DropDown Features / DropDown Appearance / DropDown Templates
In This Topic
    DropDown Templates
    In This Topic

    One of the main advantages to using a WPF control or a Silverlight control is that controls are "lookless" with a fully customizable user interface. Just as you design your own user interface (UI), or look and feel, for WPF or Silverlight applications, you can provide your own UI for data managed by DropDown for WPF and Silverlight. Extensible Application Markup Language (XAML), an XML-based declarative language, offers a simple approach to designing your UI without having to write code.

    1. Access templates in Microsoft Expression Blend by selecting the C1DropDown control in the menu.
    2. Select Edit Template.
    3. Select Edit a Copy to create an editable copy of the current template.
    4. Select Create Empty, to create a new blank template.

    Once you've created a new template, the template will appear in the Objects and Timeline window. Note that you can use the Template property to customize the template.

    If you create a new template through the menu, the template will automatically be linked to that template's property. If you manually create a template in XAML you will have to link the appropriate template property to the template you've created.

     

    In addition to the default template, the C1DropDown control includes a few additional templates. These additional templates can also be accessed in Microsoft Expression Blend – in Blend select the C1DropDown control and, in the menu, select Edit Additional Templates. Choose a template, and select Create Empty: