Browse Source

Added Commands tab

Wiesław Šoltés 9 years ago
parent
commit
b25125108a
1 changed files with 9 additions and 0 deletions
  1. 9 0
      samples/BindingTest/MainWindow.xaml

+ 9 - 0
samples/BindingTest/MainWindow.xaml

@@ -68,5 +68,14 @@
         </ContentControl>
       </StackPanel>
     </TabItem>
+    <TabItem Header="Commands">
+      <StackPanel Margin="18" Gap="4" Width="200">
+        <Button Content="Button" Command="{Binding StringValueCommand}" CommandParameter="Button"/>
+        <ToggleButton Content="ToggleButton" Command="{Binding StringValueCommand}" CommandParameter="ToggleButton"/>
+        <CheckBox Content="CheckBox" Command="{Binding StringValueCommand}" CommandParameter="CheckBox"/>
+        <RadioButton Content="RadionButton" Command="{Binding StringValueCommand}" CommandParameter="RadioButton"/>
+        <TextBox Text="{Binding Path=StringValue}"/>
+      </StackPanel>
+    </TabItem>
   </TabControl>
 </Window>