Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you are using blend, you can right click on the path in the objects and timeline section and "make into control"<br> Choose something simple like a radio button and you can add storyboards to the visual states for focused or checked, etc.<br> The code that it creates for your path will be something like the following, if you don't have blend.</p> <pre><code> &lt;Style x:Key="RadioButtonStyle1" TargetType="RadioButton"&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="RadioButton"&gt; &lt;Grid&gt; &lt;VisualStateManager.VisualStateGroups&gt; &lt;VisualStateGroup x:Name="CommonStates"&gt; &lt;VisualState x:Name="Pressed"/&gt; &lt;VisualState x:Name="Normal"/&gt; &lt;VisualState x:Name="MouseOver"/&gt; &lt;VisualState x:Name="Disabled"/&gt; &lt;/VisualStateGroup&gt; &lt;VisualStateGroup x:Name="FocusStates"&gt; &lt;VisualState x:Name="Focused"/&gt; &lt;VisualState x:Name="Unfocused"/&gt; &lt;/VisualStateGroup&gt; &lt;VisualStateGroup x:Name="ValidationStates"&gt; &lt;VisualState x:Name="Valid"/&gt; &lt;VisualState x:Name="InvalidFocused"/&gt; &lt;VisualState x:Name="InvalidUnfocused"/&gt; &lt;/VisualStateGroup&gt; &lt;VisualStateGroup x:Name="CheckStates"&gt; &lt;VisualState x:Name="Unchecked"/&gt; &lt;VisualState x:Name="Checked"/&gt; &lt;VisualState x:Name="Indeterminate"/&gt; &lt;/VisualStateGroup&gt; &lt;/VisualStateManager.VisualStateGroups&gt; &lt;Path /&gt; &lt;/Grid&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload