Skip to content

WpfViewForMixins.GetIsDesignMode(TView) method

Defined in

Type: WpfViewForMixins Namespace: ReactiveUI Assembly: ReactiveUI.Wpf.dll

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net462, net481

public static bool GetIsDesignMode<TView>(this TView item) where TView : FrameworkElement, IActivatableView

View source

Summary: Gets a value indicating whether the WPF view is currently being loaded by a designer surface.

Type parameters

NameDescription
TViewThe view type.

Parameters

NameTypeDescription
itemTViewThe view being activated.

Returns: bool -- true when the WPF designer is loading the view; otherwise, false.