Skip to main content

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) Method

Initializes a new instance of the MagnifierDialog class with the specified settings.

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
)

#Parameters

Name Type Description
owner IWin32Window

An IWin32Window object that owns this Magnifier.

initialZoomFactor Single

A Single value that is the initial Magnifier zoom level. Users can zoom in and out using a mouse scroll wheel.

closeOnMouseClick Boolean

true if the Magnifier should automatically close immediately after a user clicks the left mouse button to select a color; false if the Magnifier closes only when user presses “Esc” or clicks the right mouse button.

pickColorToClipboard Boolean

true if the selected color should be copied to the clipboard; otherwise, false.

colorFormat DevExpress.Utils.ColorFormat

A ColorFormat that specifies whether the Magnifier displays remembered and hovered colors in RGB or HEX format.

#Returns

Type Description
MagnifierDialogResult

A MagnifierDialogResult object that stores the last remembered Magnifier zoom level and colors selected by a user.

See Also