Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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

MagnifierDialog.ShowDialog(IWin32Window, Single, Boolean, Boolean, ColorFormat, Boolean, Boolean) Method

Displays the MagnifierDialog with custom parameters.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public static MagnifierDialogResult ShowDialog(
    IWin32Window owner,
    float initialZoomFactor,
    bool closeOnMouseClick,
    bool pickColorToClipboard,
    ColorFormat colorFormat,
    bool showPixelGrid,
    bool showColors
)

#Parameters

Name Type Description
owner IWin32Window

A form that owns this dialog.

initialZoomFactor Single

The initial zoom ratio.

closeOnMouseClick Boolean

true if the dialog should close when a user clicks the left mouse button, false if left clicks should not close the dialog. In the latter case, a user should press Esc to hide the magnifier.

pickColorToClipboard Boolean

Specifies whether a color under the magnifier crosshair should be copied to the clipboard when a user clicks the left mouse button.

colorFormat DevExpress.Utils.ColorFormat

Specifies whether the magnifier should store clicked colors as Hexadecimal or ARGB values.

showPixelGrid Boolean

true to show a pixel grid inside the magnifier; otherwise, false.

showColors Boolean

Specifies whether the magnifier should display the previously clicked and currently hovered colors in its upper right corner.

#Returns

Type Description
MagnifierDialogResult

A structure that stores the last remembered magnifier zoom level and colors selected by a user.

See Also