Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Window {
  2.   Title: "Perspex Test Application"
  3.  
  4.   Grid {
  5.     ColumnDefinitions: "*,*"
  6.     RowDefinitions: "1*,Auto"
  7.  
  8.     TabControls {
  9.       Grid.ColumnSpan: 2
  10.  
  11.       TabItem {
  12.         Header: "Buttons"
  13.         StackPanel {
  14.           Orientation: Vertical
  15.           HorizontalAlignment: Center
  16.           VerticalAlignment: Center
  17.           Gap: 8
  18.           MinWidth: 120
  19.  
  20.           Button {
  21.             Content: "Button"
  22.           }
  23.           Button {
  24.             Content: "Button"
  25.             Background: 0xcc119eda
  26.           }
  27.           Button {
  28.             Content: "Disabled"
  29.             IsEnabled: false
  30.           }
  31.           Button {
  32.             Content: "Disabled"
  33.             IsEnabled: false
  34.             Background: 0xcc119eda
  35.           }
  36.           ToggleButton {
  37.               Content: "Toggle"
  38.           }
  39.           ToggleButton {
  40.               Content: "Disabled"
  41.               IsEnabled: false
  42.           }
  43.           CheckBox {
  44.               Content: "Checkbox"
  45.           }
  46.           RadioButton
  47.           {
  48.               Content: "RadioButton 1"
  49.               IsChecked: true
  50.           },
  51.           RadioButton
  52.           {
  53.               Content: "RadioButton 2"
  54.           },
  55.         }
  56.       }
  57.  
  58.       TextBlock {
  59.         Id: "fps"
  60.         HorizontalAlignment: Left
  61.         Grid.Row: 1
  62.       }
  63.  
  64.       TextBlock {
  65.         Text: "Press F12 for Dev Tools"
  66.         HorizontalAlignment: Right
  67.         Margin: 2
  68.         Grid.ColumnProperty: 1
  69.         Grid.RowProperty: 1
  70.       }
  71.     }
  72.   }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement