Class MediaBreakpoint
A class that used to define break point and media query for SfMediaQuery component.
The MediaBreakpoint class has two main properties: Breakpoint and MediaQuery.
The Breakpoint property is a string that specifies the name of the breakpoint and
the MediaQuery property is a string that specifies the media query associated with the breakpoint, which determines when the responsive layout changes associated with the breakpoint should be applied.
Inheritance
System.Object
MediaBreakpoint
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public class MediaBreakpoint : Object
Constructors
MediaBreakpoint()
Declaration
public MediaBreakpoint()
Properties
Breakpoint
Gets or sets the name of the break point.
Declaration
public string Breakpoint { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A string value that represents the name of the break point. |
MediaQuery
Gets or sets the media query.
Declaration
public string MediaQuery { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A string value that represents the media query. |
Examples
MediaQuery = "(max-width: 768px)"
MediaQuery = "(min-width: 768px)"
MediaQuery = "(min-width: 1024px)"