Dreamine.Hybrid.Wpf 1.0.3
`AddDreamineHybridWpf()` 내부에서 `AddWpfBlazorWebView()` 호출 및
로딩중...
검색중...
일치하는것 없음
Dreamine.Hybrid.Wpf.Utility.DesignTimeGuard 클래스 참조

더 자세히 ...

속성

static bool IsInDesignMode [get]

정적 Private 멤버 함수

static bool DetectDesignMode ()

정적 Private 속성

static readonly bool _isInDesignMode = DetectDesignMode()

상세한 설명

캐시된 WPF 디자인 타임 감지 기능을 제공합니다.

DesignTimeGuard.cs 파일의 15 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ DetectDesignMode()

bool Dreamine.Hybrid.Wpf.Utility.DesignTimeGuard.DetectDesignMode ( )
inlinestaticprivate

Dispatcher 스레드 안전성을 지키면서 WPF 디자인 모드를 감지합니다.

반환값
디자인 모드이면 true, 감지할 수 없거나 런타임이면 false입니다.

DesignTimeGuard.cs 파일의 53 번째 라인에서 정의되었습니다.

54 {
55 try
56 {
57 if (Application.Current?.Dispatcher is { } dispatcher &&
58 !dispatcher.CheckAccess())
59 {
60 return false;
61 }
62
63 return DesignerProperties.GetIsInDesignMode(new DependencyObject());
64 }
65 catch (InvalidOperationException)
66 {
67 return false;
68 }
69 }

멤버 데이터 문서화

◆ _isInDesignMode

readonly bool Dreamine.Hybrid.Wpf.Utility.DesignTimeGuard._isInDesignMode = DetectDesignMode()
staticprivate

is In Design Mode 값을 보관합니다.

DesignTimeGuard.cs 파일의 25 번째 라인에서 정의되었습니다.

속성 문서화

◆ IsInDesignMode

bool Dreamine.Hybrid.Wpf.Utility.DesignTimeGuard.IsInDesignMode
staticget

현재 프로세스가 WPF 디자이너에서 실행 중인지 여부를 가져옵니다.

DesignTimeGuard.cs 파일의 35 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: