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