I need to describe the triggers to change the appearance of my UserControl . I wrote the <Style TargetType="{x:Type Controls:PropertyField}"> style inside <UserControl.Style> . The problem is that, for example, the trigger
<Trigger Property="Error" Value=""> <Setter TargetName="Asterisk" Property="Visibility" Value="Collapsed"/> </Trigger> does not recognize the name Asterisk , although I have an element with that name defined inside the control.
isEnabled. Also, somewhere, the logic of user interaction with these elements must be processed. At first I hadCustomControl, but when I put his style in the dictionary, the handlers stopped working. Now handlers will work, but triggers do not work. - Puro