■ List 엘리먼트의 MarkerStyle 속성을 사용하는 방법을 보여준다.
▶ MainWindow.xaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
<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="List 엘리먼트 : MarkerStyle 속성 사용하기" FontFamily="나눔고딕코딩" FontSize="16"> <Window.Resources> <Style TargetType="{x:Type FlowDocumentScrollViewer}"> <Setter Property="HorizontalScrollBarVisibility" Value="Hidden" /> <Setter Property="VerticalScrollBarVisibility" Value="Hidden" /> </Style> <Style TargetType="{x:Type List}"> <Setter Property="MarkerOffset" Value="25" /> </Style> </Window.Resources> <Grid Margin="10"> <FlowDocumentReader ViewingMode="Scroll"> <FlowDocument> <List MarkerStyle="Box"> <ListItem> <Paragraph>Box</Paragraph> </ListItem> </List> <List MarkerStyle="Box"> <ListItem> <Paragraph>Box</Paragraph> </ListItem> </List> <List MarkerStyle="Circle"> <ListItem> <Paragraph>Circle</Paragraph> </ListItem> </List> <List MarkerStyle="Decimal"> <ListItem> <Paragraph>Decimal</Paragraph> </ListItem> <ListItem> <Paragraph>Decimal</Paragraph> </ListItem> </List> <List MarkerStyle="Disc"> <ListItem> <Paragraph>Disc</Paragraph> </ListItem> </List> <List MarkerStyle="LowerLatin"> <ListItem> <Paragraph>LowerLatin</Paragraph> </ListItem> <ListItem> <Paragraph>LowerLatin</Paragraph> </ListItem> <ListItem> <Paragraph>LowerLatin</Paragraph> </ListItem> </List> <List MarkerStyle="LowerRoman"> <ListItem> <Paragraph>LowerRoman</Paragraph> </ListItem> <ListItem> <Paragraph>LowerRoman</Paragraph> </ListItem> <ListItem> <Paragraph>LowerRoman</Paragraph> </ListItem> </List> <List MarkerStyle="None"> <ListItem> <Paragraph>None</Paragraph> </ListItem> </List> <List MarkerStyle="Square"> <ListItem> <Paragraph>Square</Paragraph> </ListItem> </List> <List MarkerStyle="UpperLatin"> <ListItem> <Paragraph>UpperLatin</Paragraph> </ListItem> <ListItem> <Paragraph>UpperLatin</Paragraph> </ListItem> <ListItem> <Paragraph>UpperLatin</Paragraph> </ListItem> </List> <List MarkerStyle="UpperRoman"> <ListItem> <Paragraph>UpperRoman</Paragraph> </ListItem> <ListItem> <Paragraph>UpperRoman</Paragraph> </ListItem> <ListItem> <Paragraph>UpperRoman</Paragraph> </ListItem> </List> </FlowDocument> </FlowDocumentReader> </Grid> </Window> |