PointSeries2D.MarkerModel Property
Gets or sets the model used to draw point markers of a 2D Point Series.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
Property Value
Type | Description |
---|---|
Marker2DModel | A Marker2DModel class descendant. |
Remarks
Refer to the following topic for more information about marker models: Series and Marker Models.
Examples
How to Specify the Marker Model
The following example demonstrates how to modify the PointSeries2D.MarkerModel
property value in XAML.
<dxc:PointSeries2D.MarkerModel>
<dxc:RingMarker2DModel/>
</dxc:PointSeries2D.MarkerModel>
How to Create a Custom Marker Model
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>
Implements
See Also