프로젝트

일반

사용자정보

개정판 68302e9d

ID68302e9def9bd00b98ec63a09be4c70d776e4982
상위 67994a4d
하위 b643fcca

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

- main window 수정

Change-Id: I825e1cdfb1cdb1929cb5984eb848518eea111e43

차이점 보기:

KCOM/Resources/WindowStyle.xaml
1 1
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2 2
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3 3
                    x:Class="KCOM.Controls.CustomizedWindow.VS2012WindowStyle"
4
                    xmlns:cWin="clr-namespace:KCOM.Controls.CustomizedWindow"
4 5
                    xmlns:local="clr-namespace:KCOM.Controls">
5 6

  
6 7
    <SolidColorBrush x:Key="TitleBarBackgroundBrush" Color="#FF2A579A" />
......
38 39
        </Setter>
39 40
    </Style>
40 41

  
41
    <Style x:Key="VS2012WindowStyle" TargetType="{x:Type Window}">
42
    <Style x:Key="VS2012WindowStyle" TargetType="{x:Type cWin:CustomWindow}">
42 43
        <Setter Property="AllowsTransparency" Value="true" />
43 44
        <Setter Property="WindowStyle" Value="None" />
44 45
        <Setter Property="Background" Value="Transparent" />
......
46 47
        <Setter Property="Foreground" Value="White"/>
47 48
        <Setter Property="Template">
48 49
            <Setter.Value>
49
                <ControlTemplate TargetType="{x:Type Window}">
50
                <ControlTemplate TargetType="{x:Type cWin:CustomWindow}">
50 51
                    <!--
51 52
                    7 is a magic number. By default Windows fits a maximized window with Margin
52 53
                    7 7 7 7 to fill entire screen (WPF .Net 4.5). Larger numbers produce a gap
......
54 55
                    the window outside of the current monitor on multi-display computers.
55 56
                    -->
56 57
                    <Grid
57
                        Margin="7"
58
                        TextOptions.TextRenderingMode="ClearType"
59
                        TextOptions.TextFormattingMode="Display">
58
                        TextOptions.TextRenderingMode="Auto" TextOptions.TextFormattingMode="Ideal">
60 59
                        <Border
61 60
                            x:Name="PART_Border"
62 61
                            Width="Auto"
63 62
                            Height="Auto"
64
                            Background="#EFEFF2"
65
                            BorderBrush="{StaticResource VS2012WindowBorderBrush}"
63
                            Background="#1B1811"
64
                            BorderBrush="#FF1D2D44"
66 65
                            BorderThickness="1"
67 66
                            Padding="0">
68
                            <Border.Effect>
69
                                <DropShadowEffect
70
                                    Color="black"
71
                                    Opacity="0.5"
72
                                    BlurRadius="7"
73
                                    ShadowDepth="2"
74
                                    Direction="315"/>
75
                            </Border.Effect>
76
                            <DockPanel   
67
                            <Border BorderThickness="2" BorderBrush="#FF293C57">
68
                                <DockPanel   
77 69
                                HorizontalAlignment="Stretch"
78 70
                                Background="Transparent"
79 71
                                VerticalAlignment="Stretch"
......
178 170
                                </Border>
179 171
                                <ContentPresenter />
180 172
                            </DockPanel>
173
                            </Border>
181 174
                        </Border>
182 175
                        <Line
183 176
                            MouseDown="OnSizeNorth"
......
185 178
                            Stroke="Transparent"   
186 179
                            Cursor="SizeNS"
187 180
                            X1="1" X2="{TemplateBinding ActualWidth}" Y1="1" Y2="1"
188
                            StrokeThickness="3"
181
                            StrokeThickness="4"
189 182
                            />
190 183
                        <Line
191 184
                            MouseDown="OnSizeSouth"
......
194 187
                            VerticalAlignment="Bottom" 
195 188
                            Cursor="SizeNS"
196 189
                            X1="1" X2="{TemplateBinding ActualWidth}" Y1="{TemplateBinding ActualHeight}" Y2="{TemplateBinding ActualHeight}"
197
                            StrokeThickness="3"
190
                            StrokeThickness="4"
198 191
                            />
199 192
                        <Line
200 193
                            MouseDown="OnSizeWest"
......
202 195
                            Stroke="Transparent"
203 196
                            Cursor="SizeWE"
204 197
                            X1="1" X2="1" Y1="1" Y2="{TemplateBinding ActualHeight}"
205
                            StrokeThickness="3"
198
                            StrokeThickness="4"
206 199
                            />
207 200
                        <Line
208 201
                            MouseDown="OnSizeEast"
......
211 204
                            HorizontalAlignment="Right" 
212 205
                            Cursor="SizeWE" 
213 206
                            X1="{TemplateBinding ActualWidth}" X2="{TemplateBinding ActualWidth}" Y1="1" Y2="{TemplateBinding ActualHeight}"
214
                            StrokeThickness="3"
207
                            StrokeThickness="4"
215 208
                            />
216 209
                        <Rectangle MouseDown="OnSizeNorthWest" x:Name="rectSizeNorthWest" Cursor="SizeNWSE" Fill="Transparent" Width="5" Height="5" VerticalAlignment="Top" HorizontalAlignment="Left" />
217 210
                        <Rectangle MouseDown="OnSizeNorthEast" x:Name="rectSizeNorthEast" Cursor="SizeNESW" Fill="Transparent" Width="5" Height="5" VerticalAlignment="Top" HorizontalAlignment="Right" />
......
219 212
                        <Rectangle MouseDown="OnSizeSouthEast" x:Name="rectSizeSouthEast" Cursor="SizeNWSE" Fill="Transparent" Width="5" Height="5" VerticalAlignment="Bottom" HorizontalAlignment="Right" />
220 213
                    </Grid>
221 214
                    <ControlTemplate.Triggers>
222
                        <Trigger Property="WindowState" Value="Maximized">
215
                        <Trigger Property="CustomState"  Value="Maximized">
223 216
                            <Setter TargetName="PART_MaxButton_Path" Property="Data" Value="M0,3 H5 V8 H0 V3 M0,4 H5 M3,0 H8 V5 H7 M3,1 H8"/>
224
                            <Setter TargetName="lnSizeNorth" Property="Cursor" Value="None"/>
225
                            <Setter TargetName="lnSizeSouth" Property="Cursor" Value="None"/>
226
                            <Setter TargetName="lnSizeWest" Property="Cursor" Value="None"/>
227
                            <Setter TargetName="lnSizeEast" Property="Cursor" Value="None"/>
228
                            <Setter TargetName="rectSizeNorthWest" Property="Cursor" Value="None"/>
229
                            <Setter TargetName="rectSizeNorthEast" Property="Cursor" Value="None"/>
230
                            <Setter TargetName="rectSizeSouthWest" Property="Cursor" Value="None"/>
231
                            <Setter TargetName="rectSizeSouthEast" Property="Cursor" Value="None"/>
217
                            <Setter TargetName="lnSizeNorth" Property="Visibility" Value="Hidden"/>
218
                            <Setter TargetName="lnSizeSouth" Property="Visibility" Value="Hidden"/>
219
                            <Setter TargetName="lnSizeWest" Property="Visibility" Value="Hidden"/>
220
                            <Setter TargetName="lnSizeEast" Property="Visibility" Value="Hidden"/>
221
                            <Setter TargetName="rectSizeNorthWest" Property="Visibility" Value="Hidden"/>
222
                            <Setter TargetName="rectSizeNorthEast" Property="Visibility" Value="Hidden"/>
223
                            <Setter TargetName="rectSizeSouthWest" Property="Visibility" Value="Hidden"/>
224
                            <Setter TargetName="rectSizeSouthEast" Property="Visibility" Value="Hidden"/>
232 225
                        </Trigger>
233 226
                        <Trigger Property="IsActive" Value="False">
234
                            <Setter TargetName="PART_Border" Property="BorderBrush" Value="{StaticResource VS2012WindowBorderBrushInactive}"/>
227
                            <Setter TargetName="PART_Border" Property="BorderBrush" Value="#54626F"/>
235 228
                        </Trigger>
236 229
                    </ControlTemplate.Triggers>
237 230
                </ControlTemplate>

내보내기 Unified diff

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