개정판 af177ca1
우측 상단 윈도우 아이콘 변경 및 app margin 조정
KCOM/MainWindow.xaml | ||
---|---|---|
8 | 8 |
xmlns:view="clr-namespace:KCOM.Views" |
9 | 9 |
mc:Ignorable="d" |
10 | 10 |
WindowStyle="None" WindowStartupLocation="CenterScreen" ResizeMode="CanResizeWithGrip" AllowsTransparency="True" |
11 |
Background="{DynamicResource KCOMColor_TopMenubackgroundBrush}" |
|
11 | 12 |
Title="MARKUS"> |
12 | 13 |
<Window.Resources> |
13 | 14 |
<Style x:Key="NoMarginGrid" TargetType="{x:Type Grid}"> |
14 |
<Setter Property="Margin" Value="0"/>
|
|
15 |
<Setter Property="Margin" Value="5,5,5,5"/>
|
|
15 | 16 |
</Style> |
16 | 17 |
</Window.Resources> |
17 | 18 |
<Grid Style="{StaticResource NoMarginGrid}"> |
... | ... | |
32 | 33 |
</StackPanel> |
33 | 34 |
<TextBlock Text="MARKUS" Foreground="White" Margin="5,0" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="TitleText"/> |
34 | 35 |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Stretch"> |
35 |
|
|
36 |
<!--강인구 수정--> |
|
37 |
<TextBlock Text="ㅡ" Foreground="White" Padding="5" VerticalAlignment="Center" MouseDown="WinState" FontWeight="ExtraBold" FontSize="12"/> |
|
38 |
<TextBlock Text="ㅁ" Foreground="White" Padding="5" VerticalAlignment="Center" MouseDown="WinState" FontWeight="ExtraBold" FontSize="12"/> |
|
39 |
<TextBlock Text="X" Foreground="White" Padding="5" VerticalAlignment="Center" MouseDown="WinState" FontWeight="ExtraBold" FontSize="12"/> |
|
40 |
|
|
41 |
<!--<telerik:RadButton CommandParameter="Min" Click="RadButton_Click"> |
|
42 |
<TextBlock Text="ㅡ" Foreground="White" Padding="5" VerticalAlignment="Center" FontWeight="ExtraBold" FontSize="12"/> |
|
43 |
</telerik:RadButton> |
|
44 |
<telerik:RadButton CommandParameter="Max" Click="RadButton_Click"> |
|
45 |
<TextBlock Text="ㅁ" Foreground="White" Padding="5" VerticalAlignment="Center" FontWeight="ExtraBold" FontSize="12"/> |
|
46 |
</telerik:RadButton> |
|
47 |
<telerik:RadButton CommandParameter="Exit" Click="RadButton_Click"> |
|
48 |
<TextBlock Text="X" Foreground="White" Padding="5" VerticalAlignment="Center" FontWeight="ExtraBold" FontSize="12"/> |
|
49 |
</telerik:RadButton>--> |
|
36 |
<Image Visibility="Visible" Source="/KCOM;component/Resources/Images/MenuImage_New/minimize-window.png" Width="24" Height="24" MouseDown="WinState" x:Name="Win_min"/> |
|
37 |
<Image Visibility="Visible" Source="/KCOM;component/Resources/Images/MenuImage_New/maximize-window.png" Width="24" Height="24" MouseDown="WinState" x:Name="Win_max"/> |
|
38 |
<Image Visibility="Visible" Source="/KCOM;component/Resources/Images/MenuImage_New/close-window.png" Width="24" Height="24" MouseDown="WinState" x:Name="Win_Close"/> |
|
50 | 39 |
</StackPanel> |
51 | 40 |
</Grid> |
52 | 41 |
</Border> |
KCOM/MainWindow.xaml.cs | ||
---|---|---|
217 | 217 |
} |
218 | 218 |
} |
219 | 219 |
|
220 |
//강인구 추가 |
|
221 | 220 |
private void WinState(object sender, MouseButtonEventArgs e) |
222 | 221 |
{ |
223 |
switch((e.Source as TextBlock).Text)
|
|
222 |
switch ((e.Source as Image).Name)
|
|
224 | 223 |
{ |
225 |
case ("ㅡ"):
|
|
224 |
case ("Win_min"):
|
|
226 | 225 |
{ |
227 | 226 |
WindowState = WindowState.Minimized; |
228 | 227 |
} |
229 | 228 |
break; |
230 |
case ("ㅁ"):
|
|
229 |
case ("Win_max"):
|
|
231 | 230 |
{ |
232 |
if(WindowState == WindowState.Maximized) |
|
231 |
if (WindowState == WindowState.Maximized) |
|
232 |
{ |
|
233 | 233 |
WindowState = WindowState.Normal; |
234 |
} |
|
234 | 235 |
else |
236 |
{ |
|
235 | 237 |
WindowState = WindowState.Maximized; |
238 |
} |
|
236 | 239 |
} |
237 | 240 |
break; |
238 |
case ("X"):
|
|
241 |
case ("Win_Close"):
|
|
239 | 242 |
{ |
240 | 243 |
if (ViewerDataModel.Instance.UndoDataList.Count > 0) |
241 | 244 |
{ |
내보내기 Unified diff