ComponentOne Gauges for WPF and Silverlight
Layout and Appearance / Templates
In This Topic
    Templates
    In This Topic

    One of the main advantages to using a WPF 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 applications, you can provide your own UI for data managed by Gauges for WPF and Silverlight. Extensible Application Markup Language (XAML; pronounced "Zammel"), an XML-based declarative language, offers a simple approach to designing your UI without having to write code.

    Accessing Templates

    You can access templates in Microsoft Expression Blend by selecting a gauge control and, in the menu, selecting Edit Control Parts (Templates) or Edit Other Templates. Choose a template and select Edit a Copy to create an editable copy of the current template or Create Empty, to create a new blank template. For example, in C1RadialGauge:

    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.

    Included Templates

    The following templates are included in Gauges for WPF and Silverlight:

    Template

    Description

    C1RadialGauge.PointerCapStyle

    Style bound to the PointerCap element.This element is not available in the C1LinearGauge control.

    C1Gauge.CoverTemplate

    DataTemplate used to generate the element placed on top of the C1Gauge. After the DataTemplate is loaded, the FrameworkElement can be accessed through the Top property.

    C1Gauge.DefaultBigMarkTemplate

    Default DataTemplate for the big Marks.

    C1Gauge.DefaultMiddleMarkTemplate

    Default DataTemplate for the middle Marks.

    C1Gauge.DefaultSmallMarkTemplate

    Default DataTemplate for the small Marks.

    C1Gauge.FaceTemplate

    DataTemplate used to generate the element placed over the C1Gauge background. After the DataTemplate is loaded, the FrameworkElement can be accessed through the Bottom property.

    Note that you can use the Template property to customize the templates.