markus / KCOM / Controls / Symbol.xaml @ 3dbace4e
이력 | 보기 | 이력해설 | 다운로드 (12.9 KB)
1 | 787a4489 | KangIngu | <UserControl x:Class="KCOM.Controls.Symbol" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
5 | f65e6c02 | taeseongkim | xmlns:common="clr-namespace:KCOM.Common" |
6 | 787a4489 | KangIngu | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | 5ce56a3a | KangIngu | xmlns:WrapPanel ="clr-namespace:KCOM.WrapPanel" |
8 | 787a4489 | KangIngu | xmlns:local="clr-namespace:KCOM.Controls" |
9 | f65e6c02 | taeseongkim | xmlns:ZoomAndPan="clr-namespace:ZoomAndPan;assembly=ZoomAndPan" |
10 | xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls" |
||
11 | xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls" |
||
12 | 787a4489 | KangIngu | xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
13 | 53880c83 | ljiyeon | xmlns:converter="clr-namespace:KCOM.Common.Converter" |
14 | f65e6c02 | taeseongkim | xmlns:Behaviors="clr-namespace:KCOM.Behaviors" |
15 | 5ce56a3a | KangIngu | mc:Ignorable="d" Background="#f5f5f5" |
16 | 787a4489 | KangIngu | d:DesignHeight="900" d:DesignWidth="300"> |
17 | <UserControl.Resources>
|
||
18 | 53880c83 | ljiyeon | <converter:SvgImageConverter x:Key="SvgImageConverter"/> |
19 | f65e6c02 | taeseongkim | <Style x:Key="CustomDragVisualStyle2" TargetType="telerik:DragVisual" BasedOn="{StaticResource DragVisualStyle}"> |
20 | <Setter Property="Background" Value="Transparent" /> |
||
21 | <Setter Property="BorderThickness" Value="0" /> |
||
22 | <Setter Property="Margin" Value="0" /> |
||
23 | <Setter Property="Padding" Value="0" /> |
||
24 | </Style>
|
||
25 | <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}"> |
||
26 | <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/> |
||
27 | <!--<Setter Property="telerik:TouchManager.DragStartTrigger" Value="TapHoldAndMove"/>-->
|
||
28 | </Style>
|
||
29 | 8e5a4a6a | taeseongkim | <DataTemplate x:Key="SymbolTemplate_Private"> |
30 | f65e6c02 | taeseongkim | <StackPanel MouseLeftButtonDown="Move_Symbol" AllowDrop="False" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}"> |
31 | 787a4489 | KangIngu | <Grid>
|
32 | <StackPanel>
|
||
33 | 5ce56a3a | KangIngu | <!--<Border Background="#FF1FA3EB">-->
|
34 | <Border Background="#FF2A579A"> |
||
35 | 53880c83 | ljiyeon | <TextBox MaxWidth="200" |
36 | 8e5a4a6a | taeseongkim | Background="#FF2A579A" |
37 | HorizontalAlignment="Center" |
||
38 | VerticalAlignment="Center" |
||
39 | Foreground="White" |
||
40 | Text="{Binding Name}" |
||
41 | x:Name="symbolName" |
||
42 | BorderBrush="#FF2A579A" |
||
43 | KeyDown="OnKeyDownHandler"/> |
||
44 | 787a4489 | KangIngu | </Border>
|
45 | 5ce56a3a | KangIngu | <Image Width="200" |
46 | 8e5a4a6a | taeseongkim | Height="64" |
47 | Margin="3" |
||
48 | HorizontalAlignment="Center" |
||
49 | f65e6c02 | taeseongkim | Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter},UpdateSourceTrigger=PropertyChanged}" |
50 | x:Name="symbolImage"/> |
||
51 | 787a4489 | KangIngu | </StackPanel>
|
52 | <Rectangle Opacity="0.7" |
||
53 | 8e5a4a6a | taeseongkim | Stroke="#ff6c6d6d" |
54 | StrokeThickness="1" /> |
||
55 | 787a4489 | KangIngu | </Grid>
|
56 | </StackPanel>
|
||
57 | </DataTemplate>
|
||
58 | </UserControl.Resources>
|
||
59 | <Grid Margin="10"> |
||
60 | 5ce56a3a | KangIngu | <telerik:RadTabControl BorderThickness="0" x:Name="RadTab" telerik:StyleManager.Theme="Office2016" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" |
61 | ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" PreviewSelectionChanged="RadTabControl_PreviewSelectionChanged"> |
||
62 | 53880c83 | ljiyeon | |
63 | 5ce56a3a | KangIngu | <telerik:RadTabItem Header="Private" FontSize="10" FontWeight="Bold" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}"> |
64 | <Grid>
|
||
65 | <Grid.RowDefinitions>
|
||
66 | <RowDefinition Height="Auto"/> |
||
67 | 53880c83 | ljiyeon | <RowDefinition Height="Auto"/> |
68 | 5ce56a3a | KangIngu | <RowDefinition Height="*"/> |
69 | </Grid.RowDefinitions>
|
||
70 | 53880c83 | ljiyeon | |
71 | 5ce56a3a | KangIngu | <StackPanel Grid.Row="0" Orientation="Vertical"> |
72 | <Grid Margin="0,10"> |
||
73 | <Grid.ColumnDefinitions>
|
||
74 | <ColumnDefinition Width="3*"/> |
||
75 | <ColumnDefinition Width="3*"/> |
||
76 | <ColumnDefinition Width="3*"/> |
||
77 | <ColumnDefinition Width="3*"/> |
||
78 | </Grid.ColumnDefinitions>
|
||
79 | ffcc8124 | ljiyeon | <Button Content="Place" Grid.Column="0" Click="Place_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
80 | 53880c83 | ljiyeon | <Button Content="Capture" Grid.Column="1" Click="Image_Place_Register" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
81 | <Button Content="Register" Grid.Column="2" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
||
82 | <!-- <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> -->
|
||
83 | |||
84 | ffcc8124 | ljiyeon | <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
85 | 5ce56a3a | KangIngu | </Grid>
|
86 | 53880c83 | ljiyeon | <Grid Margin="0,0,0,10"> |
87 | 702abd98 | humkyung | <Grid.ColumnDefinitions>
|
88 | ffcc8124 | ljiyeon | <ColumnDefinition Width="*"/> |
89 | 53880c83 | ljiyeon | </Grid.ColumnDefinitions>
|
90 | ffcc8124 | ljiyeon | <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
91 | 702abd98 | humkyung | </Grid>
|
92 | 5ce56a3a | KangIngu | </StackPanel>
|
93 | 53880c83 | ljiyeon | <ScrollViewer x:Name="ScView" Grid.Row="2" > |
94 | f65e6c02 | taeseongkim | <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" |
95 | ItemTemplate="{StaticResource SymbolTemplate_Private}" |
||
96 | MouseDown="lstSymbolPrivate_MouseDown" |
||
97 | 5ce56a3a | KangIngu | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
98 | f65e6c02 | taeseongkim | MouseLeave="lstSymbolPrivate_MouseLeave" AllowDrop="False" |
99 | 089566c0 | humkyung | PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel"> |
100 | f65e6c02 | taeseongkim | <telerik:RadListBox.DragDropBehavior>
|
101 | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
||
102 | </telerik:RadListBox.DragDropBehavior>
|
||
103 | c7fde400 | taeseongkim | <telerik:RadListBox.DragVisualProvider>
|
104 | f65e6c02 | taeseongkim | <Behaviors:RadListBoxDragVisualProvider DragVisualStyle="{StaticResource CustomDragVisualStyle}"> |
105 | <Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
|
||
106 | <DataTemplate>
|
||
107 | <Grid Width="80"> |
||
108 | <Image
|
||
109 | Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter}}" |
||
110 | HorizontalAlignment="Left"/> |
||
111 | </Grid>
|
||
112 | </DataTemplate>
|
||
113 | </Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
|
||
114 | </Behaviors:RadListBoxDragVisualProvider>
|
||
115 | c7fde400 | taeseongkim | </telerik:RadListBox.DragVisualProvider>
|
116 | </telerik:RadListBox>
|
||
117 | 5ce56a3a | KangIngu | </ScrollViewer>
|
118 | </Grid>
|
||
119 | </telerik:RadTabItem>
|
||
120 | ffcc8124 | ljiyeon | |
121 | <telerik:RadTabItem Header="Public" FontWeight="Bold" FontSize="10" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" > |
||
122 | 5ce56a3a | KangIngu | <Grid>
|
123 | <Grid.RowDefinitions>
|
||
124 | <RowDefinition Height="Auto"/> |
||
125 | <RowDefinition Height="*"/> |
||
126 | </Grid.RowDefinitions>
|
||
127 | |||
128 | <StackPanel Grid.Row="0" Orientation="Vertical"> |
||
129 | <Grid Margin="0,10"> |
||
130 | <Grid.ColumnDefinitions>
|
||
131 | <ColumnDefinition Width="1*"/> |
||
132 | <ColumnDefinition Width="3*"/> |
||
133 | </Grid.ColumnDefinitions>
|
||
134 | 53880c83 | ljiyeon | |
135 | ffcc8124 | ljiyeon | <TextBlock FontWeight="Normal" VerticalAlignment="Center">Department</TextBlock> |
136 | <telerik:RadComboBox FontWeight="Normal" EmptyText="ALL" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="deptlist" |
||
137 | 5ce56a3a | KangIngu | ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="deptlist_SelectionChanged"/> |
138 | |||
139 | </Grid>
|
||
140 | ffcc8124 | ljiyeon | |
141 | <Grid Margin="0,0"> |
||
142 | 702abd98 | humkyung | <Grid.ColumnDefinitions>
|
143 | <ColumnDefinition Width="3*"/> |
||
144 | ffcc8124 | ljiyeon | <ColumnDefinition Width="3*"/> |
145 | <ColumnDefinition Width="3*"/> |
||
146 | <ColumnDefinition Width="3*"/> |
||
147 | </Grid.ColumnDefinitions>
|
||
148 | 53880c83 | ljiyeon | <Button Content="Place" Click="Place_Symbol_Public" Grid.Column="0" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
149 | <Button Content="Capture" Grid.Column="1" Click="Image_Place_Register" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
||
150 | <Button Content="Register" Grid.Column="2" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
||
151 | <!--<Button Content="Rename" Grid.Column="2" Click="Rename_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/>-->
|
||
152 | 498f0fc9 | ljiyeon | <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
153 | 29010418 | ljiyeon | </Grid>
|
154 | ffcc8124 | ljiyeon | <Grid Margin="0,10"> |
155 | <Grid.ColumnDefinitions>
|
||
156 | <ColumnDefinition Width="*"/> |
||
157 | 702abd98 | humkyung | </Grid.ColumnDefinitions>
|
158 | ffcc8124 | ljiyeon | <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
159 | 702abd98 | humkyung | </Grid>
|
160 | 5ce56a3a | KangIngu | </StackPanel>
|
161 | 53880c83 | ljiyeon | <ScrollViewer x:Name="ScView_Public" Grid.Row="2" > |
162 | f65e6c02 | taeseongkim | <telerik:RadListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" |
163 | ItemTemplate="{StaticResource SymbolTemplate_Private}" AllowDrop="False" |
||
164 | ffcc8124 | ljiyeon | MouseDown="lstSymbolPrivate_MouseDown" |
165 | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
||
166 | MouseLeave="lstSymbolPrivate_MouseLeave" |
||
167 | PreviewMouseWheel ="lstSymbolPublic_PreviewMouseWheel"> |
||
168 | f65e6c02 | taeseongkim | <telerik:RadListBox.DragDropBehavior>
|
169 | 5ce56a3a | KangIngu | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
170 | f65e6c02 | taeseongkim | </telerik:RadListBox.DragDropBehavior>
|
171 | <telerik:RadListBox.DragVisualProvider>
|
||
172 | <Behaviors:RadListBoxDragVisualProvider>
|
||
173 | <Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
|
||
174 | <DataTemplate>
|
||
175 | <Grid>
|
||
176 | <Image Width="80" x:Name="SymbolImage" Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter}}"/> |
||
177 | </Grid>
|
||
178 | </DataTemplate>
|
||
179 | </Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
|
||
180 | </Behaviors:RadListBoxDragVisualProvider>
|
||
181 | </telerik:RadListBox.DragVisualProvider>
|
||
182 | </telerik:RadListBox>
|
||
183 | 53880c83 | ljiyeon | </ScrollViewer>
|
184 | 5ce56a3a | KangIngu | </Grid>
|
185 | </telerik:RadTabItem>
|
||
186 | </telerik:RadTabControl>
|
||
187 | 787a4489 | KangIngu | </Grid>
|
188 | </UserControl> |