markus / KCOM / Controls / Symbol.xaml @ 508c3ac5
이력 | 보기 | 이력해설 | 다운로드 (10.4 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 | <DataTemplate x:Key="SymbolTemplate_Private"> |
||
16 | |||
17 | 089566c0 | humkyung | <StackPanel MouseLeftButtonDown="Move_Symbol" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}"> |
18 | 787a4489 | KangIngu | <Grid>
|
19 | <StackPanel>
|
||
20 | 5ce56a3a | KangIngu | <!--<Border Background="#FF1FA3EB">-->
|
21 | <Border Background="#FF2A579A"> |
||
22 | 53880c83 | ljiyeon | <TextBox MaxWidth="200" |
23 | Background="#FF2A579A" |
||
24 | 787a4489 | KangIngu | HorizontalAlignment="Center" |
25 | VerticalAlignment="Center" |
||
26 | Foreground="White" |
||
27 | 53880c83 | ljiyeon | Text="{Binding Name}" |
28 | x:Name="symbolName" |
||
29 | BorderBrush="#FF2A579A" |
||
30 | KeyDown="OnKeyDownHandler"/> |
||
31 | 787a4489 | KangIngu | </Border>
|
32 | 5ce56a3a | KangIngu | <Image Width="200" |
33 | 787a4489 | KangIngu | Height="64" |
34 | Margin="3" |
||
35 | HorizontalAlignment="Center" |
||
36 | 53880c83 | ljiyeon | 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>
|
||
45 | 787a4489 | KangIngu | </StackPanel>
|
46 | <Rectangle Opacity="0.7" |
||
47 | Stroke="#ff6c6d6d" |
||
48 | StrokeThickness="1" /> |
||
49 | </Grid>
|
||
50 | </StackPanel>
|
||
51 | </DataTemplate>
|
||
52 | 53880c83 | ljiyeon | <Style x:Key="DraggableListBox" TargetType="ListBox"> |
53 | 787a4489 | KangIngu | <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> |
54 | </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 | 5ce56a3a | KangIngu | <ListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
92 | MouseDown="lstSymbolPrivate_MouseDown" |
||
93 | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
||
94 | MouseLeave="lstSymbolPrivate_MouseLeave" |
||
95 | 089566c0 | humkyung | PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel"> |
96 | 5ce56a3a | KangIngu | <telerik:ListBoxDragDrop.Behavior>
|
97 | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
||
98 | 53880c83 | ljiyeon | </telerik:ListBoxDragDrop.Behavior>
|
99 | 5ce56a3a | KangIngu | </ListBox>
|
100 | </ScrollViewer>
|
||
101 | </Grid>
|
||
102 | </telerik:RadTabItem>
|
||
103 | ffcc8124 | ljiyeon | |
104 | <telerik:RadTabItem Header="Public" FontWeight="Bold" FontSize="10" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" > |
||
105 | 5ce56a3a | KangIngu | <Grid>
|
106 | <Grid.RowDefinitions>
|
||
107 | <RowDefinition Height="Auto"/> |
||
108 | <RowDefinition Height="*"/> |
||
109 | </Grid.RowDefinitions>
|
||
110 | |||
111 | <StackPanel Grid.Row="0" Orientation="Vertical"> |
||
112 | <Grid Margin="0,10"> |
||
113 | <Grid.ColumnDefinitions>
|
||
114 | <ColumnDefinition Width="1*"/> |
||
115 | <ColumnDefinition Width="3*"/> |
||
116 | </Grid.ColumnDefinitions>
|
||
117 | 53880c83 | ljiyeon | |
118 | ffcc8124 | ljiyeon | <TextBlock FontWeight="Normal" VerticalAlignment="Center">Department</TextBlock> |
119 | <telerik:RadComboBox FontWeight="Normal" EmptyText="ALL" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="deptlist" |
||
120 | 5ce56a3a | KangIngu | ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="deptlist_SelectionChanged"/> |
121 | |||
122 | </Grid>
|
||
123 | ffcc8124 | ljiyeon | |
124 | <Grid Margin="0,0"> |
||
125 | 702abd98 | humkyung | <Grid.ColumnDefinitions>
|
126 | <ColumnDefinition Width="3*"/> |
||
127 | ffcc8124 | ljiyeon | <ColumnDefinition Width="3*"/> |
128 | <ColumnDefinition Width="3*"/> |
||
129 | <ColumnDefinition Width="3*"/> |
||
130 | </Grid.ColumnDefinitions>
|
||
131 | 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"/> |
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"/>-->
|
||
135 | 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"/> |
136 | 29010418 | ljiyeon | </Grid>
|
137 | ffcc8124 | ljiyeon | <Grid Margin="0,10"> |
138 | <Grid.ColumnDefinitions>
|
||
139 | <ColumnDefinition Width="*"/> |
||
140 | 702abd98 | humkyung | </Grid.ColumnDefinitions>
|
141 | ffcc8124 | ljiyeon | <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
142 | 702abd98 | humkyung | </Grid>
|
143 | 5ce56a3a | KangIngu | </StackPanel>
|
144 | ffcc8124 | ljiyeon | |
145 | 53880c83 | ljiyeon | <ScrollViewer x:Name="ScView_Public" Grid.Row="2" > |
146 | ffcc8124 | ljiyeon | <ListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
147 | MouseDown="lstSymbolPrivate_MouseDown" |
||
148 | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
||
149 | MouseLeave="lstSymbolPrivate_MouseLeave" |
||
150 | PreviewMouseWheel ="lstSymbolPublic_PreviewMouseWheel"> |
||
151 | 5ce56a3a | KangIngu | <telerik:ListBoxDragDrop.Behavior>
|
152 | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
||
153 | </telerik:ListBoxDragDrop.Behavior>
|
||
154 | </ListBox>
|
||
155 | 53880c83 | ljiyeon | </ScrollViewer>
|
156 | 5ce56a3a | KangIngu | </Grid>
|
157 | </telerik:RadTabItem>
|
||
158 | </telerik:RadTabControl>
|
||
159 | 787a4489 | KangIngu | </Grid>
|
160 | </UserControl> |