Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <StackPanel>
  2. <TextBox>
  3. <TextBox.Style>
  4. <Style TargetType="{x:Type TextBox}">
  5. <Setter Property="Height" Value="200" />
  6. </Style>
  7. </TextBox.Style>
  8. </TextBox>
  9. <ToolBarPanel Orientation="Horizontal">
  10. <Button Content="Funky stuff" Command="{Binding Query}" CommandParameter="{what to type in here?}" />
  11. </ToolBarPanel>
  12. </StackPanel>
  13.  
  14. <StackPanel>
  15. <TextBox x:Name="myText">
  16. <TextBox.Style>
  17. <Style TargetType="{x:Type TextBox}">
  18. <Setter Property="Height" Value="200" />
  19. </Style>
  20. </TextBox.Style>
  21. </TextBox>
  22. <ToolBarPanel Orientation="Horizontal">
  23. <Button Content="Funky stuff"
  24. Command="{Binding Query}"
  25. CommandParameter="{Binding Text, ElementName=myText}" />
  26. </ToolBarPanel>
  27. </StackPanel>
  28.  
  29. CommanParameter="{Binding Text, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement