title: Write to Button.Tag as class and read from it
body: <p>I have problem with my code. I´m triing to insert class with variables to Button.Tag so I used </p>
  
  <pre><code>Button Btn = new Button();
  </code></pre>
  
  <p>and insert class reference by this:</p>
  
  <pre><code>Tlacitko.Tag = new Pozice(poradiradek, poradisloupec);
  </code></pre>
  
  <p>and I have class Pozice:</p>
  
  <pre><code>class Pozice
  {
      public int x;
      public int y;
      public bool zivotnost = false;
      public Pozice(int getX, int getY)
      {
          x = getX;
          y = getY;
      }
  }
  </code></pre>
  
  <p>Now I don´t know, how to write new value into <code>zivotnost</code> because I used constructor only to write value into <code>x</code> and <code>y</code>. Second problem is that I don´t know how to get these value out. So please help me.</p>