How can i specify a designer datacontext for a style, so Resharper finds my properties?

后端 未结 2 1586
半阙折子戏
半阙折子戏 2021-01-31 04:21

I often bind the IsExpanded and IsSelected properties of a TreeViewItem to my viewmodel. This for example makes it possible to make an item pre-expanded when the tree is loaded

2条回答
  •  眼角桃花
    2021-01-31 04:46

    Have you tried: