title: How to find the selected Flipview control index on selection changed
body: <p>I'm developing an application in that,Flipview control it is having two flipview itemtemplates on selection changed(flipview) i need to get the selected index of the flipview is that possible.Which i have tried like this</p>
  
  <pre><code>private void _fvDashboard_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
          int index=_fvDashboard.SelectedIndex;
          if (index != -1)
          {
              if (_fvDashboard.SelectedIndex == 1)
              {
                  btnScrBoard.Background = new SolidColorBrush(ColorHelper.FromArgb(255, 54, 54, 54));
                  btnItem2.Foreground = new SolidColorBrush(ColorHelper.FromArgb(255, 255, 255, 255));
  
                  btnItem1.Background = new SolidColorBrush(ColorHelper.FromArgb(255, 210, 222, 235));
                  btnItem1.Foreground = new SolidColorBrush(ColorHelper.FromArgb(255, 0, 0, 0));
  
                  _fvDashboard.SelectedIndex = 1;
              }
              else
              {
                  btnItem1.Background = new SolidColorBrush(ColorHelper.FromArgb(255, 54, 54, 54));
                  btnItem1.Foreground = new SolidColorBrush(ColorHelper.FromArgb(255, 255, 255, 255));
  
                  btnItem2.Background = new SolidColorBrush(ColorHelper.FromArgb(255, 210, 222, 235));
                  btnItem2.Foreground = new SolidColorBrush(ColorHelper.FromArgb(255, 0, 0, 0));
  
                  _fvDashboard.SelectedIndex = 0;
              }
          }
      }
  </code></pre>