markus / KCOM / Controls / Symbol.xaml @ 787a4489
이력 | 보기 | 이력해설 | 다운로드 (3.31 KB)
1 |
<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 |
xmlns:local="clr-namespace:KCOM.Controls" |
7 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
8 |
mc:Ignorable="d" Background="White" |
9 |
d:DesignHeight="900" d:DesignWidth="300"> |
10 |
|
11 |
<UserControl.Resources>
|
12 |
<DataTemplate x:Key="SymbolTemplate_Private"> |
13 |
<StackPanel MouseLeftButtonDown="lsySymbolPrivate_MouseLeftButtonDown" ToolTipService.ToolTip="{Binding Name}"> |
14 |
<Grid>
|
15 |
<StackPanel>
|
16 |
<Border Background="#FF1FA3EB"> |
17 |
<TextBlock MaxWidth="60" |
18 |
HorizontalAlignment="Center" |
19 |
VerticalAlignment="Center" |
20 |
Foreground="White" |
21 |
Text="{Binding Name}" /> |
22 |
</Border>
|
23 |
<Image Width="64" |
24 |
Height="64" |
25 |
Margin="3" |
26 |
HorizontalAlignment="Center" |
27 |
Source="{Binding ImageUri}" /> |
28 |
</StackPanel>
|
29 |
<Rectangle Opacity="0.7" |
30 |
Stroke="#ff6c6d6d" |
31 |
StrokeThickness="1" /> |
32 |
</Grid>
|
33 |
</StackPanel>
|
34 |
</DataTemplate>
|
35 |
<Style x:Key="DraggableListBox" TargetType="ListBox"> |
36 |
<Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> |
37 |
</Style>
|
38 |
</UserControl.Resources>
|
39 |
<Grid Margin="10"> |
40 |
<Grid.RowDefinitions>
|
41 |
<RowDefinition Height="Auto"/> |
42 |
<RowDefinition Height="*"/> |
43 |
</Grid.RowDefinitions>
|
44 |
<StackPanel Grid.Row="0" Orientation="Vertical"> |
45 |
<TextBlock Text="Symbol" FontSize="15"/> |
46 |
<Grid Margin="0,10"> |
47 |
<Grid.ColumnDefinitions>
|
48 |
<ColumnDefinition Width="3*"/> |
49 |
<ColumnDefinition Width="3*"/> |
50 |
<ColumnDefinition Width="3*"/> |
51 |
<ColumnDefinition Width="3*"/> |
52 |
</Grid.ColumnDefinitions>
|
53 |
<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/> |
54 |
<Button Content="Rename" Grid.Column="2" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/> |
55 |
<Button Content="Remove" Grid.Column="3" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/> |
56 |
</Grid>
|
57 |
<TextBlock Text="[Tip : Double Click, Drag]" FontSize="10" HorizontalAlignment="Right"/> |
58 |
</StackPanel>
|
59 |
<StackPanel Grid.Row="1"> |
60 |
<ListBox x:Name="lstSymbolPrivate" ItemTemplate="{StaticResource SymbolTemplate_Private}"> |
61 |
<!--<telerik:ListBoxDragDrop></telerik:ListBoxDragDrop>-->
|
62 |
</ListBox>
|
63 |
</StackPanel>
|
64 |
</Grid>
|
65 |
</UserControl>
|