Skip to content

WinUIPlotMenu.OpenSaveImageDialog() is broken #4288

@vilgotf

Description

@vilgotf

Issue: This condition is no longer enabled after e44aee1 bumped the target framework, causing an exception.

#if NET6_0_WINDOWS10_0_18362 // https://github.com/microsoft/CsWinRT/blob/master/docs/interop.md#windows-sdk
// TODO: launch a pop-up window or otherwise inform if AppWindow is not set before using save-dialog
var hwnd = WinRT.Interop.WindowNative.GetWindowHandle(ThisControl.AppWindow);
WinRT.Interop.InitializeWithWindow.Initialize(dialog, hwnd);
#endif

Invalid window handle. (0x80070578)
Consider WindowNative, InitializeWithWindow
See https://aka.ms/cswinrt/interop#windows-sdk

ScottPlot Version: 5.0.39

Code Sample: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions