1

Miscrosoft Blendでデザイン時にコントロールの視覚的状態を設定する方法はありますか?

(たとえば、TextBoxの状態を「Disabled」に設定して、無効になっているTextBoxをデザイン画面に表示できるようにします)

前もって感謝します :)

4

2 に答える 2

2

What I usaly does, using MVVM, is to bind the state I wish to control to a propertie in my ViewModel. I use MVVMLight as my MVVM framework, there you got a "IsInDesignMode" propertie which you can check agains, and set your desired design time properties.

Hope this helps.

于 2012-01-07T10:30:49.610 に答える