How to set some value to a parent control template property by clicking on button inside this template?
I want to implement some custom Search TextBox with a loop icon and placeholder. So I created a custom Control Template where there is TextBlock for the loop icon (I used some symbols from specific fonts), ScrollViewer (it’s a default control from the default TextBox template which displays a text), TextBlock with some text “Search” as placeholder (which is invisible when my TextBox go focus or user writes something) and Button (which is invisible when TextBox is empty and visible when user writes something, should clear text of TextBox on click). Here is how it looks: