Posted By

qrist0ph on 08/26/08


Tagged

WPF studentWest xaml


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


WPF Databinding


 / Published in: XML
 

  1. <Window x:Class="WpfApplication1.Window1"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.  
  5. Title="Window1" Height="279" Width="613" Loaded="Window_Loaded" >
  6. <Window.Resources>
  7.  
  8. </Window.Resources>
  9. <StackPanel >
  10. <ScrollBar x:Name="Sb1"
  11. Minimum="18"
  12. Maximum="170"
  13. Width="{Binding RelativeSource={RelativeSource self},Path=Value}"
  14. Height="240"
  15. Canvas.Top="44" Canvas.Bottom="181"
  16. >
  17.  
  18. </ScrollBar>
  19. <TextBox Height="35"
  20. Text="{Binding ElementName=Sb1, Path=Value, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
  21. Width="182" Canvas.Top="294" Canvas.Bottom="100" />
  22. </StackPanel>
  23.  
  24. </Window>

Report this snippet  

You need to login to post a comment.