title: UWP saving toggle switch state on navigation view
body: <p>So I have a navigation view and a settingspage.xaml.
  My mainwindow.xaml looks like this:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;NavigationView 
              PaneDisplayMode=&quot;LeftCompact&quot;
              IsBackButtonVisible=&quot;Collapsed&quot;
              SelectionChanged=&quot;NavigationView_SelectionChanged&quot;
              Loaded=&quot;NavigationView_Loaded&quot;
              IsSettingsVisible=&quot;True&quot;&gt;
  
              &lt;NavigationView.MenuItems&gt;
  
                  &lt;NavigationViewItem Content=&quot;Player&quot; Icon=&quot;Microphone&quot; Tag=&quot;playerview&quot;/&gt;
                  &lt;NavigationViewItem Content=&quot;About&quot; Icon=&quot;Contact&quot; Tag=&quot;aboutview&quot;/&gt;
  
              &lt;/NavigationView.MenuItems&gt;
              &lt;ScrollViewer&gt;
                  &lt;Frame x:Name=&quot;ContentFrame&quot; /&gt;
              &lt;/ScrollViewer&gt;
  &lt;/NavigationView&gt;
  </code></pre>
  <p>And the cs file is just navigating between pages.</p>
  <p>Here is my SettingsPage.xaml</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Grid&gt;
          &lt;StackPanel Margin=&quot;40,40,20,40&quot;&gt;
              
              &lt;TextBlock Text=&quot;Settings&quot; FontSize=&quot;20&quot; /&gt;
              &lt;ToggleSwitch Margin=&quot;0,25,0,0&quot; x:Name=&quot;SwitchPresence&quot; Header=&quot;Discord Presence&quot; Toggled=&quot;ToggleSwitch_Toggled&quot;/&gt;
              
          &lt;/StackPanel&gt;
  &lt;/Grid&gt;
  </code></pre>
  <p>It works fine, but whenever I navigate to other pages and navigate back to the settings page, the current state is off even tho I on it.</p>