첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170

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>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요