Skip to main content
A newer version of this page is available. .

MiniMap.ViewportTemplate Property

Gets or sets the template that defines the appearance of a mini map.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v19.1.dll

Declaration

public DataTemplate ViewportTemplate { get; set; }

Property Value

Type Description
DataTemplate

A ControlTemplate object that represents the template that displays a mini map.

Example

<dxm:MiniMap Name="miniMap"
             Alignment="{Binding ElementName=lbAlignments, Path=SelectedValue}"
             Behavior="{Binding ElementName=lbBehavior, Path=SelectedValue}">
    <dxm:MiniMap.ViewportTemplate>
        <DataTemplate>
            <Rectangle Fill="#80FF6600" Stroke="#ffFF6600"/>
        </DataTemplate>
    </dxm:MiniMap.ViewportTemplate>
    <dxm:MiniMapImageTilesLayer>
        <dxm:BingMapDataProvider BingKey="{StaticResource bingKey}"/>
    </dxm:MiniMapImageTilesLayer>
</dxm:MiniMap>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ViewportTemplate property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also