Skip to content

Commit 2348746

Browse files
jamesmcroftSergio0694
authored andcommitted
Updated wording for omission of IsInDesignMode properties
1 parent 7833398 commit 2348746

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/mvvm/MigratingFromMvvmLight.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ IMessenger messenger = this.Messenger;
295295

296296
There is no direct replacement for the `IsInDesignMode` property and any code using this should be altered or removed.
297297

298+
The reason for the omission from the MVVM Toolkit is that the `IsInDesignMode` property exposed platform-specific implementations. The MVVM Toolkit has been designed to be platform agnostic.
299+
298300
```csharp
299301
// MvvmLight
300302
var isInDesignMode = this.IsInDesignMode;
@@ -309,6 +311,8 @@ var isInDesignMode = this.IsInDesignMode;
309311

310312
There is no direct replacement for the `IsInDesignModeStatic` property and any code using this should be altered or removed.
311313

314+
The reason for the omission from the MVVM Toolkit is that the `IsInDesignMode` property exposed platform-specific implementations. The MVVM Toolkit has been designed to be platform agnostic.
315+
312316
```csharp
313317
// MvvmLight
314318
var isInDesignMode = ViewModelBase.IsInDesignModeStatic;

0 commit comments

Comments
 (0)