Back to Devexpress

WindowResizeCompletedEventArgs Class

blazor-devexpress-dot-blazor-4261a861.md

latest2.2 KB
Original Source

WindowResizeCompletedEventArgs Class

Contains data for the ResizeCompleted event.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class WindowResizeCompletedEventArgs :
    EventArgs

WindowResizeCompletedEventArgs is the data class for the following events:

Remarks

When the AllowResize property is set to true, users can resize the Window. Handle the ResizeCompleted event to be notified when a user resizes the window. The event argument’s Size parameter returns the new window size.

razor
<DxButton RenderStyle="ButtonRenderStyle.Secondary" 
          Click="() => windowVisible = !windowVisible">SHOW A WINDOW</DxButton>
<DxWindow @bind-Visible=windowVisible
          AllowResize=true
          ResizeCompleted="OnWindowResizeCompleted"
          HeaderText="Header"
          BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel
             nisi blandit tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor,
             imperdiet mauris. Fusce id purus magna."
          Width="@width"
          Height="@height">
</DxWindow>

@code {
    string width = "200px", height = "100px";
    bool windowVisible;
    void OnWindowResizeCompleted(WindowResizeCompletedEventArgs args) {
        (width, height) = ($"{args.Size.Width}px", $"{args.Size.Height}px");
    }
}

Run Demo: Window - Resizing

Inheritance

Object EventArgs WindowResizeCompletedEventArgs

See Also

WindowResizeCompletedEventArgs Members

DevExpress.Blazor Namespace