Access Elements inside a DataTemplate… How to for more than 1 DataTemplate?

前端 未结 2 1299
盖世英雄少女心
盖世英雄少女心 2020-12-19 23:45

I\'ve got 2 DataTemplates defined for a Listbox Control. 1 Template is for the UnSelected State and the other one is for the Selected State(showing more detail than the UnSe

2条回答
  •  甜味超标
    2020-12-20 00:06

    Setting keyboard focus might be one reason you need to access the datatemplate elements. MVVM will not solve that issue and the FocusManager doesn't set keyboard focus.

提交回复
热议问题