Converts an amount of the specified converter parameter equal to the percentage specified by the source value.
Namespace: MindFusion.Gauges.Wpf
Assembly: MindFusion.Gauges.Wpf
C# Copy Code |
---|
public class PercentConverter : IValueConverter |
Visual Basic Copy Code |
---|
Public Class PercentConverter |
The PercentConverter can be very useful for specifying scalable values for standard properties. For example, you can define an ellipse with a StrokeThickness relative to the size of the ellipse.
The following sample code defines an Ellipse with StrokeThickness equal to 2% of its actual width:
XAML Copy Code |
---|
<gauges:PercentConverter x:Key="PercentConverter" /> |
System.Object
MindFusion.Gauges.Wpf.PercentConverter