title: windows metro app timer example
body: <p>i am looking for timer in my window store app, but i got worried result</p>
  
  <p>what i have done is something like this :</p>
  
  <pre><code>public ItemsPage()
          {
              this.InitializeComponent();
              Loaded += ItemsPage_Loaded;
  }
  
  void ItemsPage_Loaded(object sender, RoutedEventArgs e)
          {
  
                      Updateloaction();
  
          }
  
  DispatcherTimer timer = new DispatcherTimer();
          public void Updateloaction()
          {
              timer.Interval = new TimeSpan(0, 0, 10);
              timer.Tick += timer_Tick;
          }
  </code></pre>
  
  <p>and call some method there </p>
  
  <pre><code>void timer_Tick(object sender, object e)
          {
              // do some changes every 10 seconds
          }
  </code></pre>
  
  <p>but my event </p>
  
  <blockquote>
    <p>timer_Tick</p>
  </blockquote>
  
  <p>is not firing at all :( ?</p>
  
  <p>why?</p>
  
  <p>what i am trying to do is, when i start my app, i need to also start to update gps location</p>
  
  <p>thanks</p>