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

■ BulletDecorator 엘리먼트에서 Image 엘리먼트를 불릿으로 사용하는 방법을 보여준다.

 

▶ 예제 코드 (C#)

<BulletDecorator
    HorizontalAlignment="Center"
    VerticalAlignment="Center"
    Background="Yellow">
    <BulletDecorator.Bullet>
        <Image Height="50">
            <Image.Source>
                <BitmapImage
                    DecodePixelHeight="50"
                    UriSource="c:\pinkcherries.jpg" />
            </Image.Source>
        </Image>
    </BulletDecorator.Bullet>
    <TextBlock
        Width="100"
        TextWrapping="Wrap"
        HorizontalAlignment="Left"
        Foreground ="Purple">
        A Simple BulletDecorator
    </TextBlock>
</BulletDecorator>
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요