IPieSliceStyleSelector Interface
Provides the base requirements for a class that determines how a pie slice will be styled.
public interface IPieSliceStyleSelector
Methods
SelectChildPieSliceStyle(Int32, Int32, Color, Style)
Selects the child pie slice style.
The Style
must have TargetType
of PieSlice.
Style SelectChildPieSliceStyle(int pieSliceIndex, int pieSliceCount, Color parentFill, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
pieSliceIndex | System.Int32 | Index of the pie slice. |
pieSliceCount | System.Int32 | The pie slice count. |
parentFill | System.Windows.Media.Color | The parent fill color. |
defaultStyle | System.Windows.Style | The default style. |
Returns
- System.Windows.Style:
A
Style
for PieSlice.
SelectPieSliceStyle(Int32, Int32, Style)
Selects the pie slice style.
The Style
must have TargetType
of PieSlice.
Style SelectPieSliceStyle(int pieSliceIndex, int pieSliceCount, Style defaultStyle)
Parameter | Type | Description |
---|---|---|
pieSliceIndex | System.Int32 | Index of the pie slice. |
pieSliceCount | System.Int32 | The pie slice count. |
defaultStyle | System.Windows.Style | The default style. |
Returns
- System.Windows.Style:
A
Style
for PieSlice.