How to set a value to display for bound properties in WPF design mode?

前端 未结 4 2137
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 11:59

My bound contents are showed as empty string in the UI design-mode. I want to display some faked value for those contents but I don\'t know how to.

Plea

4条回答
  •  没有蜡笔的小新
    2020-12-15 12:42

    You can use FallbackValue property to display something in design time as well. But this will also be the value at runtime if your binding fails.

    
    

提交回复
热议问题