Class
MaterialControl

Material control for Material theme.

Definition

Namespace:Telerik.Windows.Controls.MaterialControls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces")]
public class MaterialControl : Control

Inheritance: objectMaterialControl

Derived Classes: FluentControl

Constructors

MaterialControl()

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

Declaration

cs-api-definition
public MaterialControl()

Fields

ContentProperty

Identifies the Content dependency property. Default Value: null.

Declaration

cs-api-definition
public static readonly DependencyProperty ContentProperty

Field Value

DependencyProperty

CornerRadiusProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty CornerRadiusProperty

Field Value

DependencyProperty

IsPressedProperty

Identifies the IsPressed dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsPressedProperty

Field Value

DependencyProperty

IsRippleCenteredProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty IsRippleCenteredProperty

Field Value

DependencyProperty

IsRippleEnabledProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty IsRippleEnabledProperty

Field Value

DependencyProperty

IsSmartClippedProperty

Identifies the IsSmartClipped dependency property. Default Value: false.

Declaration

cs-api-definition
public static readonly DependencyProperty IsSmartClippedProperty

Field Value

DependencyProperty

RippleBrushProperty

Identifies the RippleBrush dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RippleBrushProperty

Field Value

DependencyProperty

RippleOpacityProperty

Identifies the RippleOpacity dependency property. Default Value: 1.0 .

Declaration

cs-api-definition
public static readonly DependencyProperty RippleOpacityProperty

Field Value

DependencyProperty

RippleSizeProperty

Identifies the RippleSize dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RippleSizeProperty

Field Value

DependencyProperty

RippleXProperty

Identifies the RippleX dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RippleXProperty

Field Value

DependencyProperty

RippleYProperty

Identifies the RippleY dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RippleYProperty

Field Value

DependencyProperty

Properties

Content

Gets or sets the Content of the MaterialControl.

Declaration

cs-api-definition
public object Content { get; set; }

Property Value

object

CornerRadius

Gets or sets the CornerRadius.

Declaration

cs-api-definition
public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

IsPressed

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

Declaration

cs-api-definition
public bool IsPressed { get; set; }

Property Value

bool

IsRippleCentered

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

Declaration

cs-api-definition
public bool IsRippleCentered { get; set; }

Property Value

bool

IsRippleEnabled

Gets or sets whether the Ripple is enabled.

Declaration

cs-api-definition
public bool IsRippleEnabled { get; set; }

Property Value

bool

IsSmartClipped

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

Declaration

cs-api-definition
public bool IsSmartClipped { get; set; }

Property Value

bool

RippleBrush

Gets or sets a Brush for the Ripple.

Declaration

cs-api-definition
public Brush RippleBrush { get; set; }

Property Value

Brush

RippleOpacity

Gets or sets the opacity of the Ripple.

Declaration

cs-api-definition
public double RippleOpacity { get; set; }

Property Value

double

RippleSize

Gets the calculated maximum size of the Ripple.

Declaration

cs-api-definition
public double RippleSize { get; }

Property Value

double

RippleX

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

Declaration

cs-api-definition
public double RippleX { get; }

Property Value

double

RippleY

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

Declaration

cs-api-definition
public double RippleY { get; }

Property Value

double

Methods

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnKeyUp(KeyEventArgs)

Override for the Control OnKeyUp event handler.

Declaration

cs-api-definition
protected override void OnKeyUp(KeyEventArgs e)

Parameters

e

KeyEventArgs

OnMouseEnter(MouseEventArgs)

Override for the Control OnMouseEnter event handler.

Declaration

cs-api-definition
protected override void OnMouseEnter(MouseEventArgs e)

Parameters

e

MouseEventArgs

OnMouseLeave(MouseEventArgs)

Override for the Control OnMouseLeave event handler.

Declaration

cs-api-definition
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

cs-api-definition
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnRenderSizeChanged(SizeChangedInfo)

Override for the Control OnRenderSizeChanged event handler.

Declaration

cs-api-definition
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)

Parameters

sizeInfo

SizeChangedInfo

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