Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    WindowResizeStartedEventArgs Class

    Contains data for the ResizeStarted event.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public class WindowResizeStartedEventArgs :
        EventArgs

    #Remarks

    When the AllowResize property is set to true, users can resize the Window. Handle the ResizeStarted event to be notified when a user starts resizing the window. The event argument’s Size parameter returns the initial 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
    WindowResizeStartedEventArgs
    See Also