SizeToCornerRadiusConverter Class

Summary

This Converter converts a given height or width of an control to a CornerRadius
Namespace
MahApps.Metro.Converters
Interfaces
  • IValueConverter
Base Types
graph BT Type-->Base0["MarkupConverter"] click Base0 "/api/MahApps.Metro.Converters/MarkupConverter" Base0-->Base1["MarkupExtension"] Type-.->Interface0["IValueConverter"] Type["SizeToCornerRadiusConverter"] class Type type-node

Syntax

[ValueConversion(typeof(double), typeof(CornerRadius))]
[MarkupExtensionReturnType(typeof(SizeToCornerRadiusConverter))]
public class SizeToCornerRadiusConverter : MarkupConverter, IValueConverter

Attributes

Type Description
ValueConversion
MarkupExtensionReturnType

Methods