markus / KCOM / Controls / Symbol.xaml @ 498f0fc9
이력 | 보기 | 이력해설 | 다운로드 (9.24 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 | 5ce56a3a | KangIngu | mc:Ignorable="d" Background="#f5f5f5" |
10 | 787a4489 | KangIngu | d:DesignHeight="900" d:DesignWidth="300"> |
11 | |||
12 | <UserControl.Resources>
|
||
13 | <DataTemplate x:Key="SymbolTemplate_Private"> |
||
14 | 089566c0 | humkyung | <StackPanel MouseLeftButtonDown="Move_Symbol" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}"> |
15 | 787a4489 | KangIngu | <Grid>
|
16 | <StackPanel>
|
||
17 | 5ce56a3a | KangIngu | <!--<Border Background="#FF1FA3EB">-->
|
18 | <Border Background="#FF2A579A"> |
||
19 | <TextBlock MaxWidth="200" |
||
20 | 787a4489 | KangIngu | HorizontalAlignment="Center" |
21 | VerticalAlignment="Center" |
||
22 | Foreground="White" |
||
23 | Text="{Binding Name}" /> |
||
24 | </Border>
|
||
25 | 5ce56a3a | KangIngu | <Image Width="200" |
26 | 787a4489 | KangIngu | Height="64" |
27 | Margin="3" |
||
28 | HorizontalAlignment="Center" |
||
29 | Source="{Binding ImageUri}" /> |
||
30 | </StackPanel>
|
||
31 | <Rectangle Opacity="0.7" |
||
32 | Stroke="#ff6c6d6d" |
||
33 | StrokeThickness="1" /> |
||
34 | </Grid>
|
||
35 | </StackPanel>
|
||
36 | </DataTemplate>
|
||
37 | <Style x:Key="DraggableListBox" TargetType="ListBox"> |
||
38 | <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> |
||
39 | </Style>
|
||
40 | </UserControl.Resources>
|
||
41 | <Grid Margin="10"> |
||
42 | 5ce56a3a | KangIngu | <telerik:RadTabControl BorderThickness="0" x:Name="RadTab" telerik:StyleManager.Theme="Office2016" HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" |
43 | ScrollViewer.HorizontalScrollBarVisibility ="Disabled" SelectedIndex="0" PreviewSelectionChanged="RadTabControl_PreviewSelectionChanged"> |
||
44 | |||
45 | <telerik:RadTabItem Header="Private" FontSize="10" FontWeight="Bold" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}"> |
||
46 | <Grid>
|
||
47 | <Grid.RowDefinitions>
|
||
48 | <RowDefinition Height="Auto"/> |
||
49 | <RowDefinition Height="*"/> |
||
50 | </Grid.RowDefinitions>
|
||
51 | |||
52 | <StackPanel Grid.Row="0" Orientation="Vertical"> |
||
53 | <Grid Margin="0,10"> |
||
54 | <Grid.ColumnDefinitions>
|
||
55 | <ColumnDefinition Width="3*"/> |
||
56 | <ColumnDefinition Width="3*"/> |
||
57 | <ColumnDefinition Width="3*"/> |
||
58 | <ColumnDefinition Width="3*"/> |
||
59 | </Grid.ColumnDefinitions>
|
||
60 | ffcc8124 | ljiyeon | <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"/> |
||
63 | <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
||
64 | 5ce56a3a | KangIngu | </Grid>
|
65 | 702abd98 | humkyung | <Grid Margin="0,10"> |
66 | <Grid.ColumnDefinitions>
|
||
67 | ffcc8124 | ljiyeon | <ColumnDefinition Width="*"/> |
68 | </Grid.ColumnDefinitions>
|
||
69 | <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
||
70 | 702abd98 | humkyung | </Grid>
|
71 | 5ce56a3a | KangIngu | </StackPanel>
|
72 | <ScrollViewer x:Name="ScView" Grid.Row="1" > |
||
73 | <ListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
||
74 | MouseDown="lstSymbolPrivate_MouseDown" |
||
75 | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
||
76 | MouseLeave="lstSymbolPrivate_MouseLeave" |
||
77 | 089566c0 | humkyung | PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel"> |
78 | 5ce56a3a | KangIngu | <telerik:ListBoxDragDrop.Behavior>
|
79 | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
||
80 | ffcc8124 | ljiyeon | </telerik:ListBoxDragDrop.Behavior>
|
81 | 5ce56a3a | KangIngu | </ListBox>
|
82 | </ScrollViewer>
|
||
83 | </Grid>
|
||
84 | </telerik:RadTabItem>
|
||
85 | ffcc8124 | ljiyeon | |
86 | <telerik:RadTabItem Header="Public" FontWeight="Bold" FontSize="10" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" > |
||
87 | 5ce56a3a | KangIngu | <Grid>
|
88 | <Grid.RowDefinitions>
|
||
89 | <RowDefinition Height="Auto"/> |
||
90 | <RowDefinition Height="*"/> |
||
91 | </Grid.RowDefinitions>
|
||
92 | |||
93 | <StackPanel Grid.Row="0" Orientation="Vertical"> |
||
94 | <Grid Margin="0,10"> |
||
95 | <Grid.ColumnDefinitions>
|
||
96 | <ColumnDefinition Width="1*"/> |
||
97 | <ColumnDefinition Width="3*"/> |
||
98 | </Grid.ColumnDefinitions>
|
||
99 | 702abd98 | humkyung | |
100 | ffcc8124 | ljiyeon | <TextBlock FontWeight="Normal" VerticalAlignment="Center">Department</TextBlock> |
101 | <telerik:RadComboBox FontWeight="Normal" EmptyText="ALL" Grid.Column="1" HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="deptlist" |
||
102 | 5ce56a3a | KangIngu | ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="deptlist_SelectionChanged"/> |
103 | |||
104 | </Grid>
|
||
105 | ffcc8124 | ljiyeon | |
106 | <Grid Margin="0,0"> |
||
107 | 702abd98 | humkyung | <Grid.ColumnDefinitions>
|
108 | <ColumnDefinition Width="3*"/> |
||
109 | ffcc8124 | ljiyeon | <ColumnDefinition Width="3*"/> |
110 | <ColumnDefinition Width="3*"/> |
||
111 | <ColumnDefinition Width="3*"/> |
||
112 | </Grid.ColumnDefinitions>
|
||
113 | 498f0fc9 | ljiyeon | <Button Content="Place" Click="Place_Symbol_Public" Grid.Column="0" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
114 | ffcc8124 | ljiyeon | <Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
115 | 498f0fc9 | ljiyeon | <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
116 | <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol_Public" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/> |
||
117 | ffcc8124 | ljiyeon | </Grid>
|
118 | <Grid Margin="0,10"> |
||
119 | <Grid.ColumnDefinitions>
|
||
120 | <ColumnDefinition Width="*"/> |
||
121 | 702abd98 | humkyung | </Grid.ColumnDefinitions>
|
122 | ffcc8124 | ljiyeon | <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/> |
123 | 702abd98 | humkyung | </Grid>
|
124 | 5ce56a3a | KangIngu | </StackPanel>
|
125 | ffcc8124 | ljiyeon | |
126 | 5ce56a3a | KangIngu | <ScrollViewer x:Name="ScView_Public" Grid.Row="1" > |
127 | ffcc8124 | ljiyeon | <ListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" |
128 | MouseDown="lstSymbolPrivate_MouseDown" |
||
129 | PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp" |
||
130 | MouseLeave="lstSymbolPrivate_MouseLeave" |
||
131 | PreviewMouseWheel ="lstSymbolPublic_PreviewMouseWheel"> |
||
132 | 5ce56a3a | KangIngu | <telerik:ListBoxDragDrop.Behavior>
|
133 | <telerik:ListBoxDragDropBehavior AllowReorder="True" /> |
||
134 | </telerik:ListBoxDragDrop.Behavior>
|
||
135 | </ListBox>
|
||
136 | ffcc8124 | ljiyeon | </ScrollViewer>
|
137 | 5ce56a3a | KangIngu | </Grid>
|
138 | </telerik:RadTabItem>
|
||
139 | </telerik:RadTabControl>
|
||
140 | 787a4489 | KangIngu | </Grid>
|
141 | </UserControl> |