MiniMap.ViewportTemplate Property
Gets or sets the template that defines the appearance of a mini map.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v24.2.dll
NuGet Package: DevExpress.Wpf.Map
#Declaration
public DataTemplate ViewportTemplate { get; set; }
#Property Value
Type | Description |
---|---|
Data |
A Control |
#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>