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
SyntaxC#
Copy Code
|
|---|
public class PercentConverter : IValueConverter |
Visual Basic
Copy Code
|
|---|
Public Class PercentConverter |
RemarksThe 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.
ExampleThe following sample code defines an Ellipse with StrokeThickness equal to 2% of its actual width:
XAML
Copy Code
|
|---|
<gauges:PercentConverter x:Key="PercentConverter" /> |
Inheritance HierarchySystem.Object![]()
MindFusion.Gauges.Wpf.PercentConverter
See Also