■ Binding 태그 확장 : ElementName, Path, Mode 속성 사용하기

----------------------------------------------------------------------------------------------------

<StackPanel
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
   <ScrollBar
       Name="scrollBar"
       Margin="24"
       Orientation="Horizontal"
       Maximum="100"
       SmallChange="1"
       LargeChange="10" />
   <Label
       HorizontalAlignment="Center"
       Content="{Binding ElementName=scrollBar, Path=Value, Mode=OneWay}" />
</
StackPanel>

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요