WPF Change a property in a customcontrol after a button click
问题 I posted a question in this link. maybe I'm not well expressed. It's very simple, I want to change a property in a usercontrol or CustomControl after a click on a Boutton outside... The code of the customcontrol is as follows : <Style TargetType="{x:Type local:CustomControl1}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:CustomControl1}"> <Border x:Name="container" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}"