Tenho várias textbox e preciso saber qual delas está com o foco atual, através de um binding com o ViewModel, preciso saber qual o nome do textbox com o foco. E também preciso ser notificado quando o foco mudar de textbox, para atualizar as informações no
ViewModel. Como posso fazer isto, pesquisei e não encontrei uma solução viável?
<TextBlock Text="{Binding Path=NomeInformativoDisplay}"></TextBlock>
<TextBox view:FocusExtension.IsFocused="{Binding Path=ElementoComFoco}" Text="{Binding Path=NomeInformativo}"></TextBox>
<TextBlock Text="{Binding Path=VersaoDisplay}"></TextBlock>
<TextBox view:FocusExtension.IsFocused="{Binding Path=ElementoComFoco}" Text="{Binding Path=Versao}"></TextBox>
Att,
Diego,
Bebedouro - SP.
Desenvolvedor .Net C# e WPF.