/// <summary> /// Adds a handler on the Form that enables the user to move the window around /// by clicking on a glass margin (or the title bar, as usual). /// </summary> /// <param name="form">The form that will be controlled.</param> /// <param name="margins">Margins of the glass sheet.</param> /// <remarks> /// Eventual UI elements on the glass sheet will prevent the handler from receiving events /// (except the ThemeText control, which manually redirects mouse events to the form). /// </remarks> public static void HandleFormMovementOnGlass(Form form, Margins margins) { HandleFormMovement tmpHandler = new HandleFormMovement(form, margins); }
/// <summary> /// Adds a handler on the Form that enables the user to move the window around /// by clicking on a glass margin (or the title bar, as usual). /// </summary> /// <param name="form">The form that will be controlled.</param> /// <param name="margins">Margins of the glass sheet.</param> /// <remarks> /// Eventual UI elements on the glass sheet will prevent the handler from receiving events /// (except the ThemeText control, which manually redirects mouse events to the form). /// </remarks> public static void HandleFormMovementOnGlass(Form form, Margins margins) { HandleFormMovement tmpHandler = new HandleFormMovement(form, margins); }