How to add an event when I click on a TextBlock?
You can use an InputBinding
:
<TextBlock Text="{Binding SomeText}">
<TextBlock.InputBindings>
<MouseBinding Command="{Binding SomeCommand}" MouseAction="LeftClick" />
</TextBlock.InputBindings>
</TextBlock>
Source: https://docs.microsoft.com/en-us/dotnet/api/system.windows.input.inputbinding
Just use the "PreviewMouseDown" event. Good luck!