適切な ViewModel にバインドされたユーザー コントロールがあります。ViewModel.Graph プロパティにバインドされたこのコントロールにGraphLayout ( Graph#を使用) があります。
<graph:ProductGraphLayout Graph="{Binding Path=Graph}" />
ProductVertex を含む多数の VertexControl がこのレイアウトに配置されます。コンテンツは DataTemplate で表され、Style を使用してテーマが適用されます。
<DataTemplate x:Key="VertexTemplate" DataType="{x:Type graph:ProductVertex}">
<TextBlock Text="{Binding Path=ID, Mode=OneWay}" />
</DataTemplate>
<Style TargetType="{x:Type graphsharp:VertexControl}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type graphsharp:VertexControl}">
<Border>
<Border.Style>
<Style TargetType="{x:Type Border}">
<Setter Property="BorderBrush" Value="#6695C4" />
<Setter Property="BorderThickness" Value="2" />
</Style>
</Border.Style>
<ContentPresenter Content="{TemplateBinding Vertex}" ContentTemplate="{StaticResource VertexTemplate}" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
IsCurrent など、ProductVertex プロパティに基づいてコンテナー (VertexControl) のスタイルを変更するにはどうすればよいですか?