title: Navigation Bar Using WPF error (Cannot resolve all property references in the property path)
body: <p>i have worked in Windows form development &amp; new for WPF Development. i don't have any idea about Xaml development. i wrote some code but facing Error </p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll  Additional information: Cannot resolve all property references in the property path 'FrameworkElement.Width'.</p>
  </blockquote>
  
  <p>Below is my Xaml Code.</p>
  
  <pre><code>&lt;Window x:Class="MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="600" Width="1080" ResizeMode="NoResize" WindowStyle="None" Foreground="White"
      xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" &gt;
      &lt;Window.Resources&gt;
          &lt;Storyboard x:Key="MenuOpen"&gt;
              &lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FrameworkElement.Width" Storyboard.TargetName="GridMenu"&gt;
                  &lt;EasingDoubleKeyFrame KeyTime="0" Value="60"&gt;&lt;/EasingDoubleKeyFrame&gt;
                  &lt;EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="200"&gt;&lt;/EasingDoubleKeyFrame&gt;
              &lt;/DoubleAnimationUsingKeyFrames&gt;
          &lt;/Storyboard&gt;
          &lt;Storyboard x:Key="MenuClose"&gt;
              &lt;DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="FrameworkElement.Width" Storyboard.TargetName="GridMenu"&gt;
                  &lt;EasingDoubleKeyFrame KeyTime="0" Value="200"&gt;&lt;/EasingDoubleKeyFrame&gt;
                  &lt;EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="60"&gt;&lt;/EasingDoubleKeyFrame&gt;
              &lt;/DoubleAnimationUsingKeyFrames&gt;
          &lt;/Storyboard&gt;
      &lt;/Window.Resources&gt;
      &lt;Window.Triggers&gt;
          &lt;EventTrigger RoutedEvent="ButtonBase.Click" SourceName="ButtonOpenMenu"&gt;
              &lt;BeginStoryboard Storyboard="{StaticResource MenuOpen}"&gt;&lt;/BeginStoryboard&gt;
          &lt;/EventTrigger&gt;
          &lt;EventTrigger RoutedEvent="ButtonBase.Click" SourceName="ButtonCloseMenu"&gt;
              &lt;BeginStoryboard Storyboard="{StaticResource MenuClose}"&gt;&lt;/BeginStoryboard&gt;
          &lt;/EventTrigger&gt;
      &lt;/Window.Triggers&gt;
      &lt;Grid Background="LightGray"&gt;
          &lt;Grid Height="60" VerticalAlignment="Top" Background="#FF1368BD"&gt;
              &lt;TextBlock Text="Tuck Shop Management System" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22"&gt;&lt;/TextBlock&gt;
              &lt;StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Right"&gt; 
                  &lt;TextBlock Text="User Profile" VerticalAlignment="Center" FontSize="18"&gt;&lt;/TextBlock&gt;
                  &lt;materialDesign:PopupBox Margin="10" PlacementMode="BottomAndAlignRightEdges" StaysOpen="False"&gt;
                      &lt;StackPanel Width="150"&gt;
                          &lt;Button Content="Account"&gt;&lt;/Button&gt;
                          &lt;Button Content="Setting"&gt;&lt;/Button&gt;
                          &lt;Button Content="Help"&gt;&lt;/Button&gt;
                          &lt;Separator&gt;&lt;/Separator&gt;
                          &lt;Button x:Name="ButtonPopoutLogout" Content="Logout" Click="ButtonPopoutLogout_Click"&gt;&lt;/Button&gt;
                      &lt;/StackPanel&gt;
                  &lt;/materialDesign:PopupBox&gt;
              &lt;/StackPanel&gt; 
          &lt;/Grid&gt;
          &lt;Grid x:Name="GridMenu" Width="60" HorizontalAlignment="Left" Background="#FF1A3761"&gt; 
              &lt;StackPanel&gt;  
                  &lt;Grid Height="150" Background="White"&gt; 
                      &lt;Button x:Name="ButtonCloseMenu" VerticalAlignment="Top" HorizontalAlignment="Right" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" Click="ButtonCloseMenu_Click"&gt;
                          &lt;materialDesign:PackIcon Kind="ArrowLeft" Foreground="#FF1A3761" Width="25" Height="25" Visibility="Collapsed"&gt;&lt;/materialDesign:PackIcon&gt;
                      &lt;/Button&gt;
                      &lt;Button x:Name="ButtonOpenMenu" VerticalAlignment="Top" HorizontalAlignment="Right" Width="60" Height="60" Background="{x:Null}" BorderBrush="{x:Null}" Click="ButtonOpenMenu_Click"&gt;
                          &lt;materialDesign:PackIcon Kind="Menu" Foreground="#FF1A3761" Width="25" Height="25"&gt;&lt;/materialDesign:PackIcon&gt; 
                      &lt;/Button&gt;
                  &lt;/Grid&gt;
                  &lt;ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled" Foreground="#FF1368BD" MouseDown="ListView_MouseDown"&gt;
                      &lt;ListViewItem Height="60" x:Name="Home"&gt;  
                          &lt;StackPanel Orientation="Horizontal"&gt;
                              &lt;materialDesign:PackIcon Kind="ViewDashboard" Height="25" Width="25" Margin="10" VerticalAlignment="Center"&gt;&lt;/materialDesign:PackIcon&gt;
                              &lt;TextBlock Text="Home" VerticalAlignment="Center" Margin="20 10"&gt;&lt;/TextBlock&gt;
                          &lt;/StackPanel&gt;
                      &lt;/ListViewItem&gt;
                      &lt;ListViewItem Height="60"&gt;
                          &lt;StackPanel Orientation="Horizontal"&gt;
                              &lt;materialDesign:PackIcon Kind="Pencil" Height="25" Width="25" Margin="10" VerticalAlignment="Center"&gt;&lt;/materialDesign:PackIcon&gt;
                              &lt;TextBlock Text="Create" VerticalAlignment="Center" Margin="20 10"&gt;&lt;/TextBlock&gt;
                          &lt;/StackPanel&gt;
                      &lt;/ListViewItem&gt;
                      &lt;ListViewItem Height="60"&gt;
                          &lt;StackPanel Orientation="Horizontal"&gt;
                              &lt;materialDesign:PackIcon Kind="Ticket" Height="25" Width="25" Margin="10" VerticalAlignment="Center"&gt;&lt;/materialDesign:PackIcon&gt;
                              &lt;TextBlock Text="Ticket" VerticalAlignment="Center" Margin="20 10"&gt;&lt;/TextBlock&gt;
                          &lt;/StackPanel&gt;
                      &lt;/ListViewItem&gt;
                      &lt;ListViewItem Height="60"&gt;
                          &lt;StackPanel Orientation="Horizontal"&gt;
                              &lt;materialDesign:PackIcon Kind="Message" Height="25" Width="25" Margin="10" VerticalAlignment="Center"&gt;&lt;/materialDesign:PackIcon&gt;
                              &lt;TextBlock Text="Message" VerticalAlignment="Center" Margin="20 10"&gt;&lt;/TextBlock&gt;
  
  
          &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
                  &lt;ListViewItem Height="60"&gt;
                      &lt;StackPanel Orientation="Horizontal"&gt;
                          &lt;materialDesign:PackIcon Kind="GithubBox" Height="25" Width="25" Margin="10" VerticalAlignment="Center"&gt;&lt;/materialDesign:PackIcon&gt;
                          &lt;TextBlock Text="Git Hub" VerticalAlignment="Center" Margin="20 10"&gt;&lt;/TextBlock&gt;
                      &lt;/StackPanel&gt;
                  &lt;/ListViewItem&gt;
              &lt;/ListView&gt;
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>Also i have Code Behind Given Below.</p>
  
  <pre><code>Private Sub ButtonPopoutLogout_Click(sender As Object, e As RoutedEventArgs)
      Application.Current.Shutdown()
  End Sub
  
  Private Sub ButtonOpenMenu_Click(sender As Object, e As RoutedEventArgs)
      ButtonOpenMenu.Visibility = Windows.Visibility.Collapsed
      ButtonCloseMenu.Visibility = Windows.Visibility.Visible
  End Sub
  
  Private Sub ButtonCloseMenu_Click(sender As Object, e As RoutedEventArgs)
      ButtonOpenMenu.Visibility = Windows.Visibility.Visible
      ButtonCloseMenu.Visibility = Windows.Visibility.Collapsed
  End Sub
  </code></pre>
  
  <p>waiting for +ve response. i will be thankful to you guys in advance because i am stuck in the task.</p>