skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class MaterialControl

Material control for Material theme.

Inheritance
System.Object
MaterialControl
FluentControl
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.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.