Class MudSwipeArea
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
An area which receives swipe events for devices where touch events are supported.
public class MudSwipeArea : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudSwipeArea
- Implements
- Inherited Members
- Extension Methods
Constructors
MudSwipeArea()
public MudSwipeArea()
Properties
ChildContent
The content within this swipe area.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
OnSwipeEnd
Occurs when a swipe has ended.
[Parameter]
[Category("Behavior")]
public EventCallback<SwipeEventArgs> OnSwipeEnd { get; set; }
Property Value
PreventDefault
Prevents the default behavior of the browser when swiping.
[Parameter]
[Category("Behavior")]
public bool PreventDefault { get; set; }
Property Value
Remarks
Defaults to false
. Typically true
when swiping up or down, which will prevent the whole page from scrolling.
Sensitivity
The amount of pixels which must be swiped to raise the OnSwipeEnd event.
[Parameter]
[Category("Behavior")]
public int Sensitivity { get; set; }
Property Value
Remarks
Defaults to 100
(100 pixels).
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
OnAfterRenderAsync(bool)
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
firstRender
bool
Returns
SetParametersAsync(ParameterView)
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
ParameterView