첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
<Window.Resources>
    <DataTemplate x:Key="ItemDescriptionDataTemplateKey">
        <TextBlock
            Foreground="Gray"
            Text="{Binding}" />
    </DataTemplate>
</Window.Resources>
<Grid>
    <dxb:GalleryControl>
        <dxb:GalleryControl.Gallery>
            <dxb:Gallery
                IsGroupCaptionVisible="True"
                FilterCaption="(click to filter groups)"
                ColCount="2"
                ItemCheckMode="None"
                ItemDescriptionTemplate="{StaticResource ResourceKey=ItemDescriptionDataTemplateKey}"
                IsItemCaptionVisible="True"
                IsItemDescriptionVisible="True"
                ItemContentHorizontalAlignment="Left"
                ItemClick="gallery_ItemClick">
                <dxb:Gallery.Groups>
                    <dxb:GalleryItemGroup x:Name="galleryItemGroup1"
                        Caption="Misc Group">
                        <dxb:GalleryItemGroup.Items>
                            <dxb:GalleryItem
                                Caption="Schedule"
                                Description="Show schedule"
                                Glyph="pack://application:,,,/Image/address-16x16.png" />
                            <dxb:GalleryItem
                                Caption="Roles"
                                Description="Assign roles"
                                Glyph="pack://application:,,,/Image/role-16x16.png" />
                        </dxb:GalleryItemGroup.Items>
                    </dxb:GalleryItemGroup>
                    <dxb:GalleryItemGroup x:Name="galleryItemGroup2"
                        Caption="Persons">
                        <dxb:GalleryItemGroup.Items>
                            <dxb:GalleryItem
                                Caption="Employees"
                                Glyph="pack://application:,,,/Image/employee-16x16.png" />
                            <dxb:GalleryItem
                                Caption="Persons"
                                Glyph="pack://application:,,,/Image/person-16x16.png" />
                            <dxb:GalleryItem
                                Caption="Users"
                                Glyph="pack://application:,,,/Image/user-16x16.png" />
                        </dxb:GalleryItemGroup.Items>
                    </dxb:GalleryItemGroup>
                </dxb:Gallery.Groups>
            </dxb:Gallery>
        </dxb:GalleryControl.Gallery>
    </dxb:GalleryControl>
</Grid>

※ xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"

728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요