■ Binding 엘리먼트 : ElementName, Path 속성 사용하기

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

<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">
       <Label.Content>
           <Binding
               ElementName="scrollBar"
               Path="Value" />
       </Label.Content>
   </Label>
</
StackPanel>

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

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요