첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
유용한 소스 코드가 있으면 icodebroker@naver.com으로 보내주시면 감사합니다.
블로그 자료는 자유롭게 사용하세요.

■ Slider 엘리먼트 사용하기

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


TestProject.zip


MainWindow.xaml

 

 

<Window x:Class="TestProject.MainWindow"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Width="800"

    Height="600"

    Title="Slider 엘리먼트 사용하기"

    FontFamily="나눔고딕코딩"

    FontSize="16">

    <Grid>

        <StackPanel

            HorizontalAlignment="Center"

            VerticalAlignment="Center">

            <Slider

                Margin="10"

                Width="300"

                Orientation="Horizontal"

                Minimum="1"

                Maximum="20"

                TickPlacement="Both"

                TickFrequency="2"

                AutoToolTipPlacement="BottomRight"

                IsSnapToTickEnabled="True" />

            <Slider

                Margin="10"

                Width="300"

                Orientation="Horizontal"

                Minimum="1"

                Maximum="10"

                TickPlacement="BottomRight"

                Ticks="0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5 9.5"

                AutoToolTipPrecision="2"

                AutoToolTipPlacement="BottomRight"

                IsDirectionReversed="True"

                IsMoveToPointEnabled="True"

                IsSelectionRangeEnabled="True"

                SelectionStart="2.5"

                SelectionEnd="7.5" />

        </StackPanel>

    </Grid>

</Window>

 

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

Posted by 사용자 icodebroker
TAG , ,

댓글을 달아 주세요