Class MaterialControl
Material control for Material theme.
Inheritance
Namespace: Telerik.Windows.Controls.MaterialControls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class MaterialControl : Control
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
System.Windows.DependencyProperty
|
CornerRadiusProperty
Identifies the CornerRadius dependency property. Default Value: CornerRadius(0).
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
System.Windows.DependencyProperty
|
IsHighlightedProperty
Identifies the IsHighlighted dependency property. Default value: false.
Declaration
public static readonly DependencyProperty IsHighlightedProperty
Field Value
System.Windows.DependencyProperty
|
IsPressedProperty
Identifies the IsPressed dependency property.
Declaration
public static readonly DependencyProperty IsPressedProperty
Field Value
System.Windows.DependencyProperty
|
IsRippleCenteredProperty
Identifies the key for the IsRippleCentered dependency property. Default value: false.
Declaration
public static readonly DependencyProperty IsRippleCenteredProperty
Field Value
System.Windows.DependencyProperty
|
IsRippleEnabledProperty
Identifies the key for the IsRippleEnabled dependency property. Default value: true.
Declaration
public static readonly DependencyProperty IsRippleEnabledProperty
Field Value
System.Windows.DependencyProperty
|
IsSmartClippedProperty
Identifies the IsSmartClipped dependency property. Default Value: false.
Declaration
public static readonly DependencyProperty IsSmartClippedProperty
Field Value
System.Windows.DependencyProperty
|
RippleBrushProperty
Identifies the RippleBrush dependency property.
Declaration
public static readonly DependencyProperty RippleBrushProperty
Field Value
System.Windows.DependencyProperty
|
RippleOpacityProperty
Identifies the RippleOpacity dependency property. Default Value: 1.0 .
Declaration
public static readonly DependencyProperty RippleOpacityProperty
Field Value
System.Windows.DependencyProperty
|
RippleSizeProperty
Identifies the RippleSize dependency property.
Declaration
public static readonly DependencyProperty RippleSizeProperty
Field Value
System.Windows.DependencyProperty
|
RippleXProperty
Identifies the RippleX dependency property.
Declaration
public static readonly DependencyProperty RippleXProperty
Field Value
System.Windows.DependencyProperty
|
RippleYProperty
Identifies the RippleY dependency property.
Declaration
public static readonly DependencyProperty RippleYProperty
Field Value
System.Windows.DependencyProperty
|
ShouldRespectInnerContentProperty
Identifies the ShouldIgnoreInnerContentPosition dependency property. Default value: false.
Declaration
public static readonly DependencyProperty ShouldRespectInnerContentProperty
Field Value
System.Windows.DependencyProperty
|
Properties
Content
Gets or sets the Content of the MaterialControl.
Declaration
public object Content { get; set; }
Property Value
System.Object
|
CornerRadius
Gets or sets the CornerRadius.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
System.Windows.CornerRadius
|
IsHighlighted
Gets or sets a value indicating whether the MaterialControl should be highlighted (imitating IsMouseOver). This property is intended for and works when the control is nested in a ButtonBase-inheriting class.
Declaration
public bool IsHighlighted { get; set; }
Property Value
System.Boolean
|
IsPressed
Gets or sets a value indicating whether the control is pressed.
Declaration
public bool IsPressed { get; set; }
Property Value
System.Boolean
|
IsRippleCentered
Gets or sets a value indicating whether the ripple effect originates from the center of the control.
Declaration
public bool IsRippleCentered { get; set; }
Property Value
System.Boolean
|
IsRippleEnabled
Gets or sets whether the Ripple is enabled.
Declaration
public bool IsRippleEnabled { get; set; }
Property Value
System.Boolean
|
IsSmartClipped
Gets or sets whether the control should be clipped with regard to its CornerRadius.
Declaration
public bool IsSmartClipped { get; set; }
Property Value
System.Boolean
|
RippleBrush
Gets or sets a Brush for the Ripple.
Declaration
public Brush RippleBrush { get; set; }
Property Value
System.Windows.Media.Brush
|
RippleOpacity
Gets or sets the opacity of the Ripple.
Declaration
public double RippleOpacity { get; set; }
Property Value
System.Double
|
RippleSize
Gets the calculated maximum size of the Ripple.
Declaration
public double RippleSize { get; }
Property Value
System.Double
|
RippleX
Gets the relative X position of the center of the Ripple.
Declaration
public double RippleX { get; }
Property Value
System.Double
|
RippleY
Gets the relative Y position of the center of the Ripple.
Declaration
public double RippleY { get; }
Property Value
System.Double
|
ShouldIgnoreInnerContentPosition
Gets or sets whether the the inner content position should be ignored when IsRippleCentered is true. This is meant to be used when the content is transformed and would result in inaccurate position of the ripple center.
Declaration
public bool ShouldIgnoreInnerContentPosition { get; set; }
Property Value
System.Boolean
|
Methods
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs
e
The System.Windows.RoutedEventArgs that contains the event data. |
OnKeyUp(KeyEventArgs)
Override for the Control OnKeyUp event handler.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
System.Windows.Input.KeyEventArgs
e
|
OnMouseEnter(MouseEventArgs)
Override for the Control OnMouseEnter event handler.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
|
OnMouseLeave(MouseEventArgs)
Override for the Control OnMouseLeave event handler.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
System.Windows.Input.MouseEventArgs
e
The System.Windows.Input.MouseEventArgs that contains the event data. |
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Override for the Control OnPreviewMouseLeftButtonDown event handler.
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs
e
|
OnRenderSizeChanged(SizeChangedInfo)
Override for the Control OnRenderSizeChanged event handler.
Declaration
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameters
System.Windows.SizeChangedInfo
sizeInfo
Details of the old and new size involved in the change. |