프로젝트

일반

사용자정보

개정판 4fcb686a

ID4fcb686a2d4740f5eee8d44f69429ab17bd7489f
상위 a7bee7cf
하위 5ba8f2d5

김태성이(가) 2년 이상 전에 추가함

issue #000 font가 적용 되지 않아 box size가 작게 출력되는 문제

Change-Id: Ie07531db96d56e8d5c2bbdbf0786d053ad39747c

차이점 보기:

KCOM/Resources/SimpleLIstViewStyle.xaml
1
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3
    <SolidColorBrush  x:Key="BlueRinseBrush" Color="#2A579A"/>
4
    <Style x:Key="GridViewColumnHeaderGripper"
5
         TargetType="Thumb">
6
      <Setter Property="Width" Value="18"/>
7
        <Setter Property="Background" Value="#FF6481AC"/>
8
      <Setter Property="Template">
9
          <Setter.Value>
10
              <ControlTemplate TargetType="{x:Type Thumb}">
11
                  <Border Padding="{TemplateBinding Padding}"
12
                          Background="Transparent">
13
                      <Rectangle HorizontalAlignment="Center"
14
                                 Width="3"
15
                          Fill="{TemplateBinding Background}"/>
16
                  </Border>
17
              </ControlTemplate>
18
          </Setter.Value>
19
      </Setter>
20
  </Style>
21
  <Style x:Key="GridViewColumnHeaderStyle"
22
         TargetType="GridViewColumnHeader">
23
        <Setter Property="Background" Value="Red"/>
24
        <Setter Property="HorizontalContentAlignment"
25
              Value="Center"/>
26
      <Setter Property="VerticalContentAlignment"
27
              Value="Center"/>
28
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
29
        <Setter Property="Background"
30
              Value="{StaticResource BlueRinseBrush}"/>
31
      <Setter Property="Foreground"
32
              Value="{DynamicResource
33
                  {x:Static SystemColors.ControlTextBrushKey}}"/>
34
      <Setter Property="Template">
35
          <Setter.Value>
36
           <ControlTemplate
37
              TargetType="GridViewColumnHeader">
38
                  <Grid>
1
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2
    <SolidColorBrush x:Key="BlueRinseBrush" Color="#2A579A" />
3
    <Style x:Key="GridViewColumnHeaderGripper" TargetType="Thumb">
4
        <Setter Property="Width" Value="18" />
5
        <Setter Property="Background" Value="#FF6481AC" />
6
        <Setter Property="Template">
7
            <Setter.Value>
8
                <ControlTemplate TargetType="{x:Type Thumb}">
9
                    <Border Padding="{TemplateBinding Padding}" Background="Transparent">
10
                        <Rectangle
11
                            Width="3"
12
                            HorizontalAlignment="Center"
13
                            Fill="{TemplateBinding Background}" />
14
                    </Border>
15
                </ControlTemplate>
16
            </Setter.Value>
17
        </Setter>
18
    </Style>
19
    <Style x:Key="GridViewColumnHeaderStyle" TargetType="GridViewColumnHeader">
20
        <Setter Property="Background" Value="Red" />
21
        <Setter Property="HorizontalContentAlignment" Value="Center" />
22
        <Setter Property="VerticalContentAlignment" Value="Center" />
23
        <Setter Property="HorizontalAlignment" Value="Stretch" />
24
        <Setter Property="Background" Value="{StaticResource BlueRinseBrush}" />
25
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
26
        <Setter Property="Template">
27
            <Setter.Value>
28
                <ControlTemplate TargetType="GridViewColumnHeader">
29
                    <Grid>
39 30
                        <Grid.ColumnDefinitions>
40
                            <ColumnDefinition/>
31
                            <ColumnDefinition />
41 32
                        </Grid.ColumnDefinitions>
42
                      <Border Name="HeaderBorder"
43
                              BorderThickness="0"
44
                              BorderBrush="{StaticResource BlueRinseBrush}"
45
                              Background="{StaticResource BlueRinseBrush}"
46
                              Padding="2,0,0,0">
47
                          <ContentPresenter Name="HeaderContent"
48
                          TextElement.Foreground="White"
49
                          Margin="0,0,0,1"
50
                          VerticalAlignment="{TemplateBinding
51
                          VerticalContentAlignment}"
52
                          HorizontalAlignment="{TemplateBinding
53
                          HorizontalContentAlignment}"
54
                          RecognizesAccessKey="True"
55
                          SnapsToDevicePixels=
56
                          "{TemplateBinding SnapsToDevicePixels}"/>
57
                      </Border>
58
                      <Thumb x:Name="PART_HeaderGripper"
59
                          HorizontalAlignment="Right"
60
                          Margin="0,0,-9,0"
61
                          Style="{StaticResource
62
                          GridViewColumnHeaderGripper}"/>
63
                  </Grid>
64
                  <ControlTemplate.Triggers>
65
                      <Trigger Property="IsMouseOver" Value="true">
66
                          <Setter TargetName="HeaderBorder"
67
                            Property="Background" Value="Yellow"/>
68
                          <Setter TargetName="HeaderContent"
69
                            Property="TextElement.Foreground"
70
                            Value="Black"/>
71
                      </Trigger>
72
                  </ControlTemplate.Triggers>
73
              </ControlTemplate>
74
          </Setter.Value>
75
      </Setter>
76
  </Style>
33
                        <Border
34
                            Name="HeaderBorder"
35
                            Padding="2,0,0,0"
36
                            Background="{StaticResource BlueRinseBrush}"
37
                            BorderBrush="{StaticResource BlueRinseBrush}"
38
                            BorderThickness="0">
39
                            <ContentPresenter
40
                                Name="HeaderContent"
41
                                Margin="0,0,0,1"
42
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
43
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
44
                                RecognizesAccessKey="True"
45
                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
46
                                TextElement.Foreground="White" />
47
                        </Border>
48
                        <Thumb
49
                            x:Name="PART_HeaderGripper"
50
                            Margin="0,0,-9,0"
51
                            HorizontalAlignment="Right"
52
                            Style="{StaticResource GridViewColumnHeaderGripper}" />
53
                    </Grid>
54
                    <ControlTemplate.Triggers>
55
                        <Trigger Property="IsMouseOver" Value="true">
56
                            <Setter TargetName="HeaderBorder" Property="Background" Value="Yellow" />
57
                            <Setter TargetName="HeaderContent" Property="TextElement.Foreground" Value="Black" />
58
                        </Trigger>
59
                    </ControlTemplate.Triggers>
60
                </ControlTemplate>
61
            </Setter.Value>
62
        </Setter>
63
    </Style>
77 64
    <Style x:Key="SimpleListViewStyle" TargetType="ListView">
78
        <Setter Property="GridView.ColumnHeaderContainerStyle" Value="{StaticResource GridViewColumnHeaderStyle}"/>
65
        <Setter Property="GridView.ColumnHeaderContainerStyle" Value="{StaticResource GridViewColumnHeaderStyle}" />
79 66
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
80 67
    </Style>
81 68
</ResourceDictionary>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)