Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 3  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CheckBox on Windows Phone Page
  2. _wp = new WrapPanel
  3.             {
  4.                 Orientation = System.Windows.Controls.Orientation.Horizontal,
  5.                 Height = 80,
  6.             };
  7.             _tb = new TextBlock
  8.             {
  9.                 Text = gameText,
  10.                 Width = 250
  11.             };
  12.             _wp.Children.Add(_tb);
  13.  
  14.             _cb = new CheckBox();
  15.  
  16.             _wp.Children.Add(_cb);
  17.  
  18.             this.Items.Add(_wp);
  19.        
  20. _cb = new CheckBox { CheckedChanged += my_handler }
  21.        
  22. _cb = new CheckBox ();
  23. _cb.Checked = true;
  24.     _cb. CheckedChanged += my_handler ;
  25.        
  26. _wp.Children.OfType<CheckBox>().Any();