Table of Contents

Class PdnBaseForm

Namespace
PaintDotNet
Assembly
PaintDotNet.Core.dll

This is the base class for all Forms in Paint.NET.

public class PdnBaseForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IContainerControl, IIsDisposed, IContainer, IDisposable
Inheritance
PdnBaseForm
Implements
Derived
Inherited Members

Constructors

PdnBaseForm()

Properties

AutoHandleGlassRelatedOptimizations

Gets or sets a flag indicating whether glass-related "optimizations" are automatically handled.

EnableInstanceOpacity
EnableOpacity

Gets or sets a flag that enables or disables opacity for all PdnBaseForm instances. If a particular form's EnableInstanceOpacity property is false, that will override this property being 'true'.

ExtendClientIntoFrame
ExtendedFramePadding
ForceActiveTitleBar

Gets or sets the titlebar rendering behavior for when the form is deactivated.

GlassCaptionDragInset
GlassInset
GlassInsetBottomRect
GlassInsetLeftRect
GlassInsetRightRect
GlassInsetTopRect
IsAppThemeDark

Gets a flag indicating whether the app is using a dark theme.

IsGlassDesired
IsGlassEffectivelyEnabled
IsGlassSupported
IsNonClientActive
IsShown
Opacity

Sets the opacity of the form.

UseAppThemeColors
UseSystemMenuFontInInitializeComponent

Methods

CheckAccess()
ClientBoundsToWindowBounds(Rectangle)
ClientSizeToWindowSize(Size)
CreateGlassInsetRegion()
Dispose(bool)
EnsureFormIsOnScreen()
Flash()
GetGlassWndProcFilter()
LoadResources()
OnActivated(EventArgs)
OnClosed(EventArgs)
OnClosing(CancelEventArgs)
OnDeactivate(EventArgs)
OnHandleCreated(EventArgs)
OnHandleDestroyed(EventArgs)
OnHelpRequested(HelpEventArgs)
OnIsCompositionEnabledChanged()
OnLayout(LayoutEventArgs)
OnLoad(EventArgs)
OnNonClientActivated()
OnNonClientDeactivate()
OnNonClientMouseEnter()
OnNonClientMouseLeave()
OnPaint(PaintEventArgs)
OnQueryEndSession(CancelEventArgs)
OnShown(EventArgs)
OnSizeChanged(EventArgs)
OnThemeConfigChanged()
OnUserPreferenceChanged(UserPreferenceChangedEventArgs)
OnWindowStateChanged(FormWindowState, FormWindowState)
ProcessCmdKey(ref Message, Keys)
RefreshGlass()
RefreshGlass(bool)
RelayProcessCmdKey(ref Message, Keys)
RestoreWindow()
VerifyAccess()
WindowBoundsToClientBounds(Rectangle)
WindowSizeToClientSize(Size)
WndProc(ref Message)

Events

NonClientActivated
NonClientDeactivate
QueryEndSession
WindowStateChanged