wpf-devexpress-dot-xpf-dot-charts-dot-pointseries2d-e2061fb1.md
Gets or sets the model used to draw point markers of a 2D Point Series.
Namespace : DevExpress.Xpf.Charts
Assembly : DevExpress.Xpf.Charts.v25.2.dll
NuGet Package : DevExpress.Wpf.Charts
public Marker2DModel MarkerModel { get; set; }
Public Property MarkerModel As Marker2DModel
| Type | Description |
|---|---|
| Marker2DModel |
A Marker2DModel class descendant.
|
Refer to the following topic for more information about marker models: Series and Marker Models.
The following example demonstrates how to modify the PointSeries2D.MarkerModel property value in XAML.
<dxc:PointSeries2D.MarkerModel>
<dxc:RingMarker2DModel/>
</dxc:PointSeries2D.MarkerModel>
The following example shows how to create a custom marker model:
Assign a CustomMarker2DModel object to the MarkerModel property.
Create a ControlTemplate with visual elements.
Assign this template to the CustomMarker2DModel.PointTemplate property.
<Window.Resources>
<ResourceDictionary>
<dxc:BrushOverlayConverter x:Key="brushOverlayConverter" />
</ResourceDictionary>
</Window.Resources>
<!--...-->
<dxc:PointSeries2D ...
MarkerSize="20">
<dxc:PointSeries2D.MarkerModel>
<dxc:CustomMarker2DModel>
<dxc:CustomMarker2DModel.PointTemplate>
<ControlTemplate>
<Grid Background="Transparent" >
<Ellipse Fill="CornflowerBlue" Opacity="0.5" />
<Ellipse Stroke="{Binding Path=PointColor, ConverterParameter=Gray, Converter={StaticResource brushOverlayConverter}}"
StrokeThickness="2" />
<Ellipse Stroke="{Binding Path=PointColor, ConverterParameter=Gray, Converter={StaticResource brushOverlayConverter}}"
StrokeThickness="2" Margin="4" />
<Ellipse Fill="Red" Margin="8" />
</Grid>
</ControlTemplate>
</dxc:CustomMarker2DModel.PointTemplate>
</dxc:CustomMarker2DModel>
</dxc:PointSeries2D.MarkerModel>
</dxc:PointSeries2D>
See Also