개정판 53880c83
issue #886: Symbol legend 생성 작업 중....
KCOM/Controls/Symbol.xaml | ||
---|---|---|
6 | 6 |
xmlns:WrapPanel ="clr-namespace:KCOM.WrapPanel" |
7 | 7 |
xmlns:local="clr-namespace:KCOM.Controls" |
8 | 8 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
9 |
xmlns:converter="clr-namespace:KCOM.Common.Converter" |
|
9 | 10 |
mc:Ignorable="d" Background="#f5f5f5" |
10 | 11 |
d:DesignHeight="900" d:DesignWidth="300"> |
11 | 12 | |
12 | 13 |
<UserControl.Resources> |
13 |
<DataTemplate x:Key="SymbolTemplate_Private"> |
|
14 |
<converter:SvgImageConverter x:Key="SvgImageConverter"/> |
|
15 |
<DataTemplate x:Key="SymbolTemplate_Private"> |
|
16 |
|
|
14 | 17 |
<StackPanel MouseLeftButtonDown="Move_Symbol" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}"> |
15 | 18 |
<Grid> |
16 | 19 |
<StackPanel> |
17 | 20 |
<!--<Border Background="#FF1FA3EB">--> |
18 | 21 |
<Border Background="#FF2A579A"> |
19 |
<TextBlock MaxWidth="200" |
|
22 |
<TextBox MaxWidth="200" |
|
23 |
Background="#FF2A579A" |
|
20 | 24 |
HorizontalAlignment="Center" |
21 | 25 |
VerticalAlignment="Center" |
22 | 26 |
Foreground="White" |
23 |
Text="{Binding Name}" /> |
|
27 |
Text="{Binding Name}" |
|
28 |
x:Name="symbolName" |
|
29 |
BorderBrush="#FF2A579A" |
|
30 |
KeyDown="OnKeyDownHandler"/> |
|
24 | 31 |
</Border> |
25 | 32 |
<Image Width="200" |
26 | 33 |
Height="64" |
27 | 34 |
Margin="3" |
28 | 35 |
HorizontalAlignment="Center" |
29 |
Source="{Binding ImageUri}" /> |
|
36 |
x:Name="symbolImage"> |
|
37 |
<!-- Source="{Binding ImageUri}" --> |
|
38 |
<Image.Source> |
|
39 |
<MultiBinding Converter="{StaticResource SvgImageConverter}" UpdateSourceTrigger="PropertyChanged"> |
|
40 |
<Binding Path="ImageUri"/> |
|
41 |
</MultiBinding> |
|
42 |
</Image.Source> |
|
43 | ||
44 |
</Image> |
|
30 | 45 |
</StackPanel> |
31 | 46 |
<Rectangle Opacity="0.7" |
32 | 47 |
Stroke="#ff6c6d6d" |
... | ... | |
34 | 49 |
</Grid> |
35 | 50 |
</StackPanel> |
36 | 51 |
</DataTemplate> |
37 |
<Style x:Key="DraggableListBox" TargetType="ListBox"> |
|
52 |
<Style x:Key="DraggableListBox" TargetType="ListBox">
|
|
38 | 53 |
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> |
39 | 54 |
</Style> |
40 | 55 |
</UserControl.Resources> |
41 | 56 |
<Grid Margin="10"> |
42 | 57 |
<telerik:RadTabControl BorderThickness="0" x:Name="RadTab" telerik:StyleManager.Theme="Office2016" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" |
43 | 58 |
ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" PreviewSelectionChanged="RadTabControl_PreviewSelectionChanged"> |
44 |
|
|
59 | ||
45 | 60 |
<telerik:RadTabItem Header="Private" FontSize="10" FontWeight="Bold" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}"> |
46 | 61 |
<Grid> |
47 | 62 |
<Grid.RowDefinitions> |
48 | 63 |
<RowDefinition Height="Auto"/> |
64 |
<RowDefinition Height="Auto"/> |
|
49 | 65 |
<RowDefinition Height="*"/> |
50 | 66 |
</Grid.RowDefinitions> |
51 |
|
|
67 | ||
52 | 68 |
<StackPanel Grid.Row="0" Orientation="Vertical"> |
53 | 69 |
<Grid Margin="0,10"> |
54 | 70 |
<Grid.ColumnDefinitions> |
... | ... | |
58 | 74 |
<ColumnDefinition Width="3*"/> |
59 | 75 |
</Grid.ColumnDefinitions> |
60 | 76 |
<Button Content="Place" Grid.Column="0" Click="Place_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
61 |
<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
62 |
<Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
77 |
<Button Content="Capture" Grid.Column="1" Click="Image_Place_Register" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
78 |
<Button Content="Register" Grid.Column="2" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
79 |
<!-- <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> --> |
|
80 |
|
|
63 | 81 |
<Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
64 | 82 |
</Grid> |
65 |
<Grid Margin="0,10"> |
|
83 |
<Grid Margin="0,0,0,10">
|
|
66 | 84 |
<Grid.ColumnDefinitions> |
67 | 85 |
<ColumnDefinition Width="*"/> |
68 |
</Grid.ColumnDefinitions>
|
|
86 |
</Grid.ColumnDefinitions> |
|
69 | 87 |
<TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
70 | 88 |
</Grid> |
71 | 89 |
</StackPanel> |
72 |
<ScrollViewer x:Name="ScView" Grid.Row="1" >
|
|
90 |
<ScrollViewer x:Name="ScView" Grid.Row="2" >
|
|
73 | 91 |
<ListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
74 | 92 |
MouseDown="lstSymbolPrivate_MouseDown" |
75 | 93 |
PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
... | ... | |
77 | 95 |
PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel"> |
78 | 96 |
<telerik:ListBoxDragDrop.Behavior> |
79 | 97 |
<telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
80 |
</telerik:ListBoxDragDrop.Behavior>
|
|
98 |
</telerik:ListBoxDragDrop.Behavior> |
|
81 | 99 |
</ListBox> |
82 | 100 |
</ScrollViewer> |
83 | 101 |
</Grid> |
... | ... | |
96 | 114 |
<ColumnDefinition Width="1*"/> |
97 | 115 |
<ColumnDefinition Width="3*"/> |
98 | 116 |
</Grid.ColumnDefinitions> |
99 |
|
|
117 | ||
100 | 118 |
<TextBlock FontWeight="Normal" VerticalAlignment="Center">Department</TextBlock> |
101 | 119 |
<telerik:RadComboBox FontWeight="Normal" EmptyText="ALL" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="deptlist" |
102 | 120 |
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="deptlist_SelectionChanged"/> |
... | ... | |
110 | 128 |
<ColumnDefinition Width="3*"/> |
111 | 129 |
<ColumnDefinition Width="3*"/> |
112 | 130 |
</Grid.ColumnDefinitions> |
113 |
<Button Content="Place" Click="Place_Symbol_Public" Grid.Column="0" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
114 |
<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
115 |
<Button Content="Rename" Grid.Column="2" Click="Rename_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
131 |
<Button Content="Place" Click="Place_Symbol_Public" Grid.Column="0" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
132 |
<Button Content="Capture" Grid.Column="1" Click="Image_Place_Register" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
133 |
<Button Content="Register" Grid.Column="2" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
|
134 |
<!--<Button Content="Rename" Grid.Column="2" Click="Rename_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/>--> |
|
116 | 135 |
<Button Content="Remove" Grid.Column="3" Click="Remove_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
117 |
</Grid> |
|
136 |
</Grid>
|
|
118 | 137 |
<Grid Margin="0,10"> |
119 | 138 |
<Grid.ColumnDefinitions> |
120 | 139 |
<ColumnDefinition Width="*"/> |
... | ... | |
123 | 142 |
</Grid> |
124 | 143 |
</StackPanel> |
125 | 144 | |
126 |
<ScrollViewer x:Name="ScView_Public" Grid.Row="1" >
|
|
145 |
<ScrollViewer x:Name="ScView_Public" Grid.Row="2" >
|
|
127 | 146 |
<ListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
128 | 147 |
MouseDown="lstSymbolPrivate_MouseDown" |
129 | 148 |
PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
... | ... | |
133 | 152 |
<telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
134 | 153 |
</telerik:ListBoxDragDrop.Behavior> |
135 | 154 |
</ListBox> |
136 |
</ScrollViewer>
|
|
155 |
</ScrollViewer> |
|
137 | 156 |
</Grid> |
138 | 157 |
</telerik:RadTabItem> |
139 | 158 |
</telerik:RadTabControl> |
내보내기 Unified diff