topical media & game development

talk show tell print

professional-xml-26-Listing-26-3.txt / txt



  using System.Windows;
  using System.Windows.Controls;
  
  namespace XAML_Example
  {
  
<summary> Interaction logic for Window1.xaml </summary>

      public partial class Window1 : System.Windows.Window
      {
          int buttonValue = 1;
  
          public Window1()
          {
              InitializeComponent();
          }
  
          void button1_Click(object sender, RoutedEventArgs e)
          {
              buttonValue += 1;
              this.label1.Content = buttonValue.ToString();
          }
      }
  }
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.