Interaction Triggers in Style in ResourceDictionary WPF
问题 I have a ComboBox which I need to use in several places in my application, so I set most of the properties of that ComboBox in ResourceDictionary and use that as a Style where ever I need it. Style for the ComboBox is: <Style TargetType="{x:Type ComboBox}" x:Key="ComboBoxBranch"> <Setter Property="ItemsSource" Value="{Binding Branches}"></Setter> <Setter Property="DisplayMemberPath" Value="BranchName"></Setter> <Setter Property="SelectedItem" Value="{Binding SelectedBranch}"></Setter> </Style