Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF - VisualStateManager - How do I?
    primarykey
    data
    text
    <p>I have two states within my VisualStateManagerGroup: "VisualStateLogin".<br> How do I go from the Base state to another when my Window is loaded?</p> <p>I Have tried it:</p> <pre><code>public MainWindow() { this.InitializeComponent(); //Initializes the mainwindow in a user loogedoff state this.Loaded += new RoutedEventHandler(MainWindow_Loaded); } void MainWindow_Loaded(object sender, RoutedEventArgs e) { VisualStateManager.GoToState(this, "LoggedOff", true); } </code></pre> <p>This is my XAML Code:</p> <pre><code> &lt;VisualStateManager.CustomVisualStateManager&gt; &lt;ic:ExtendedVisualStateManager/&gt; &lt;/VisualStateManager.CustomVisualStateManager&gt; &lt;VisualStateManager.VisualStateGroups&gt; &lt;VisualStateGroup x:Name="VisualStateLogin"&gt; &lt;VisualStateGroup.Transitions&gt; &lt;VisualTransition GeneratedDuration="00:00:00.6000000"/&gt; &lt;/VisualStateGroup.Transitions&gt; &lt;VisualState x:Name="LoggedOn"/&gt; &lt;VisualState x:Name="LoggedOff"&gt; &lt;Storyboard&gt; &lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="brdContent" Storyboard.TargetProperty="(UIElement.Opacity)"&gt; &lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.1"/&gt; &lt;/DoubleAnimationUsingKeyFrames&gt; &lt;DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="brdTab" Storyboard.TargetProperty="(UIElement.Opacity)"&gt; &lt;SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.4"/&gt; &lt;/DoubleAnimationUsingKeyFrames&gt; &lt;BooleanAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="brdContent" Storyboard.TargetProperty="(UIElement.IsHitTestVisible)"&gt; &lt;DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="True"/&gt; &lt;/BooleanAnimationUsingKeyFrames&gt; &lt;BooleanAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="brdTab" Storyboard.TargetProperty="(UIElement.IsEnabled)"&gt; &lt;DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="False"/&gt; &lt;/BooleanAnimationUsingKeyFrames&gt; &lt;BooleanAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="brdContent" Storyboard.TargetProperty="(UIElement.IsEnabled)"&gt; &lt;DiscreteBooleanKeyFrame KeyTime="00:00:00" Value="False"/&gt; &lt;/BooleanAnimationUsingKeyFrames&gt; &lt;/Storyboard&gt; &lt;/VisualState&gt; &lt;/VisualStateGroup&gt; &lt;/VisualStateManager.VisualStateGroups&gt; </code></pre> <p>Thank You</p>
    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.
 

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