New to Telerik UI for WPFStart a free 30-day trial

Material control for Material theme.

Definition

Namespace:Telerik.Windows.Controls.MaterialControls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class MaterialControl : Control

Inheritance: objectMaterialControl

Derived Classes: FluentControl

Constructors

Initializes a new instance of the MaterialControl class for Material theme.

C#
public MaterialControl()

Fields

ContentProperty

DependencyProperty

Identifies the Content dependency property. Default Value: null.

C#
public static readonly DependencyProperty ContentProperty

CornerRadiusProperty

DependencyProperty

Identifies the CornerRadius dependency property. Default Value: CornerRadius(0).

C#
public static readonly DependencyProperty CornerRadiusProperty

IsPressedProperty

DependencyProperty

Identifies the IsPressed dependency property.

C#
public static readonly DependencyProperty IsPressedProperty

IsRippleCenteredProperty

DependencyProperty

Identifies the key for the IsRippleCentered dependency property. Default value: false.

C#
public static readonly DependencyProperty IsRippleCenteredProperty

IsRippleEnabledProperty

DependencyProperty

Identifies the key for the IsRippleEnabled dependency property. Default value: true.

C#
public static readonly DependencyProperty IsRippleEnabledProperty

IsSmartClippedProperty

DependencyProperty

Identifies the IsSmartClipped dependency property. Default Value: false.

C#
public static readonly DependencyProperty IsSmartClippedProperty

RippleBrushProperty

DependencyProperty

Identifies the RippleBrush dependency property.

C#
public static readonly DependencyProperty RippleBrushProperty

RippleOpacityProperty

DependencyProperty

Identifies the RippleOpacity dependency property. Default Value: 1.0 .

C#
public static readonly DependencyProperty RippleOpacityProperty

RippleSizeProperty

DependencyProperty

Identifies the RippleSize dependency property.

C#
public static readonly DependencyProperty RippleSizeProperty

RippleXProperty

DependencyProperty

Identifies the RippleX dependency property.

C#
public static readonly DependencyProperty RippleXProperty

RippleYProperty

DependencyProperty

Identifies the RippleY dependency property.

C#
public static readonly DependencyProperty RippleYProperty

Properties

Gets or sets the Content of the MaterialControl.

C#
public object Content { get; set; }

CornerRadius

CornerRadius

Gets or sets the CornerRadius.

C#
public CornerRadius CornerRadius { get; set; }

Gets or sets a value indicating whether the control is pressed.

C#
public bool IsPressed { get; set; }

Gets or sets a value indicating whether the ripple effect originates from the center of the control.

C#
public bool IsRippleCentered { get; set; }

Gets or sets whether the Ripple is enabled.

C#
public bool IsRippleEnabled { get; set; }

Gets or sets whether the control should be clipped with regard to its CornerRadius.

C#
public bool IsSmartClipped { get; set; }

Gets or sets a Brush for the Ripple.

C#
public Brush RippleBrush { get; set; }

Gets or sets the opacity of the Ripple.

C#
public double RippleOpacity { get; set; }

Gets the calculated maximum size of the Ripple.

C#
public double RippleSize { get; }

Gets the relative X position of the center of the Ripple.

C#
public double RippleX { get; }

Gets the relative Y position of the center of the Ripple.

C#
public double RippleY { get; }

Methods

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Override for the Control OnKeyUp event handler.

C#
protected override void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs

Override for the Control OnMouseEnter event handler.

C#
protected override void OnMouseEnter(MouseEventArgs e)
Parameters:eMouseEventArgs

Override for the Control OnMouseLeave event handler.

C#
protected override void OnMouseLeave(MouseEventArgs e)
Parameters:eMouseEventArgs

The MouseEventArgs that contains the event data.

Override for the Control OnPreviewMouseLeftButtonDown event handler.

C#
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Override for the Control OnRenderSizeChanged event handler.

C#
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters:sizeInfoSizeChangedInfo

Details of the old and new size involved in the change.