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