개정판 41e3c8ac
Header Change : Alert -> Symbol
SymbolPrompt : Cancel Button 추가
Change-Id: Ic657b3f70b6fd512f73be6fab560a1c8f055b5f8
KCOM/Controls/SymbolPrompt.xaml | ||
---|---|---|
24 | 24 |
<Image Height="40" Source="/KCOM;component/Resources/Images/MenuImage_New/selectInk.png"/> |
25 | 25 |
</StackPanel> |
26 | 26 |
<StackPanel Grid.Column="1"> |
27 |
<DockPanel Grid.Row="0" Margin="0,10,0,0" HorizontalAlignment="Left"> |
|
27 |
<DockPanel Grid.Row="0" Margin="0,10,0,0" HorizontalAlignment="Left" Width="350">
|
|
28 | 28 |
<Label>Name :</Label> |
29 |
<TextBox Margin="5" Width="300" x:Name="symbolName" />
|
|
29 |
<TextBox Margin="5" x:Name="symbolName" /> |
|
30 | 30 |
</DockPanel> |
31 | 31 |
<DockPanel Grid.Row="1" Margin="0,0,0,0" HorizontalAlignment="Left" > |
32 | 32 |
<RadioButton Content="SVG" Name="svgRadioBox" IsChecked="True" Margin="5"/> |
... | ... | |
35 | 35 |
</DockPanel> |
36 | 36 |
<StackPanel Grid.Row="2" Background="#FFCCCEDB"></StackPanel> |
37 | 37 |
<StackPanel Grid.Row="3" Margin="0,0,10,0" HorizontalAlignment="Right" VerticalAlignment="Center"> |
38 |
<Button Width="70" x:Name="BtnOK" PreviewKeyDown="BtnOK_PreviewKeyDown" PreviewMouseLeftButtonDown="BtnOK_MouseLeftButtonDown">OK</Button> |
|
38 |
<DockPanel> |
|
39 |
<Button Width="70" x:Name="BtnOK" Margin="0,0,10,0" PreviewKeyDown="BtnOK_PreviewKeyDown" PreviewMouseLeftButtonDown="BtnOK_MouseLeftButtonDown">OK</Button> |
|
40 |
<Button Width="70" x:Name="BtnCancel" Click="BtnCancel_Click">Cancel</Button> |
|
41 |
</DockPanel> |
|
39 | 42 |
</StackPanel> |
40 | 43 |
|
41 | 44 |
</StackPanel> |
KCOM/Controls/SymbolPrompt.xaml.cs | ||
---|---|---|
43 | 43 |
Window window = Window.GetWindow(this); |
44 | 44 |
window.Close(); |
45 | 45 |
} |
46 |
|
|
47 |
private void BtnCancel_Click(object sender, RoutedEventArgs e) |
|
48 |
{ |
|
49 |
Window window = Window.GetWindow(this); |
|
50 |
window.Close(); |
|
51 |
} |
|
46 | 52 |
} |
47 | 53 |
} |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
5908 | 5908 |
MinWidth = 400, |
5909 | 5909 |
MinHeight = 100, |
5910 | 5910 |
// Closed = (obj, args) => this.SymbolMarkupNamePromptClose(imageBytes, "", args), |
5911 |
Header = "Alert", |
|
5911 |
//Header = "Alert", |
|
5912 |
Header = "Symbol", |
|
5912 | 5913 |
Content = symbolPrompt, |
5913 | 5914 |
//DialogResult = |
5914 | 5915 |
ResizeMode = System.Windows.ResizeMode.NoResize, |
내보내기 Unified diff