MaterialControl
Material control for Material theme.
Definition
Namespace:Telerik.Windows.Controls.MaterialControls
Assembly:Telerik.Windows.Controls.dll
Syntax:
public class MaterialControl : Control
Inheritance: objectMaterialControl
Derived Classes:
Constructors
Initializes a new instance of the MaterialControl class for Material theme.
public MaterialControl()
Fields
ContentProperty
DependencyProperty
Identifies the Content dependency property. Default Value: null.
public static readonly DependencyProperty ContentProperty
CornerRadiusProperty
DependencyProperty
Identifies the CornerRadius dependency property. Default Value: CornerRadius(0).
public static readonly DependencyProperty CornerRadiusProperty
IsPressedProperty
DependencyProperty
Identifies the IsPressed dependency property.
public static readonly DependencyProperty IsPressedProperty
IsRippleCenteredProperty
DependencyProperty
Identifies the key for the IsRippleCentered dependency property. Default value: false.
public static readonly DependencyProperty IsRippleCenteredProperty
IsRippleEnabledProperty
DependencyProperty
Identifies the key for the IsRippleEnabled dependency property. Default value: true.
public static readonly DependencyProperty IsRippleEnabledProperty
IsSmartClippedProperty
DependencyProperty
Identifies the IsSmartClipped dependency property. Default Value: false.
public static readonly DependencyProperty IsSmartClippedProperty
RippleBrushProperty
DependencyProperty
Identifies the RippleBrush dependency property.
public static readonly DependencyProperty RippleBrushProperty
RippleOpacityProperty
DependencyProperty
Identifies the RippleOpacity dependency property. Default Value: 1.0 .
public static readonly DependencyProperty RippleOpacityProperty
RippleSizeProperty
DependencyProperty
Identifies the RippleSize dependency property.
public static readonly DependencyProperty RippleSizeProperty
RippleXProperty
DependencyProperty
Identifies the RippleX dependency property.
public static readonly DependencyProperty RippleXProperty
RippleYProperty
DependencyProperty
Identifies the RippleY dependency property.
public static readonly DependencyProperty RippleYProperty
Properties
Gets or sets the Content of the MaterialControl.
public object Content { get; set; }
CornerRadius
CornerRadius
Gets or sets the CornerRadius.
public CornerRadius CornerRadius { get; set; }
Gets or sets a value indicating whether the control is pressed.
public bool IsPressed { get; set; }
Gets or sets a value indicating whether the ripple effect originates from the center of the control.
public bool IsRippleCentered { get; set; }
Gets or sets whether the Ripple is enabled.
public bool IsRippleEnabled { get; set; }
Gets or sets whether the control should be clipped with regard to its CornerRadius.
public bool IsSmartClipped { get; set; }
RippleBrush
Brush
Gets or sets a Brush for the Ripple.
public Brush RippleBrush { get; set; }
Gets or sets the opacity of the Ripple.
public double RippleOpacity { get; set; }
Gets the calculated maximum size of the Ripple.
public double RippleSize { get; }
Gets the relative X position of the center of the Ripple.
public double RippleX { get; }
Methods
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Override for the Control OnKeyUp event handler.
protected override void OnKeyUp(KeyEventArgs e)
Override for the Control OnMouseEnter event handler.
protected override void OnMouseEnter(MouseEventArgs e)
Override for the Control OnMouseLeave event handler.
protected override void OnMouseLeave(MouseEventArgs e)
The MouseEventArgs that contains the event data.
Override for the Control OnPreviewMouseLeftButtonDown event handler.
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Override for the Control OnRenderSizeChanged event handler.
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Details of the old and new size involved in the change.