프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Controls / Symbol.xaml @ 670a4be2

이력 | 보기 | 이력해설 | 다운로드 (9.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:WrapPanel ="clr-namespace:KCOM.WrapPanel"
7
             xmlns:local="clr-namespace:KCOM.Controls"
8
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
9
             mc:Ignorable="d" Background="#f5f5f5"
10
             d:DesignHeight="900" d:DesignWidth="300">
11

    
12
    <UserControl.Resources>
13
        <DataTemplate x:Key="SymbolTemplate_Private">
14
            <StackPanel MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}">
15
                <Grid>
16
                    <StackPanel>
17
                        <!--<Border Background="#FF1FA3EB">-->
18
                        <Border Background="#FF2A579A">
19
                            <TextBlock MaxWidth="200"
20
                                       HorizontalAlignment="Center"
21
                                       VerticalAlignment="Center"
22
                                       Foreground="White"
23
                                       Text="{Binding Name}" />
24
                        </Border>
25
                        <Image Width="200"
26
                               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
        <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
                        <!--<TextBlock Text="Symbol" FontSize="15"/>-->
54
                        <Grid Margin="0,10">
55
                            <Grid.ColumnDefinitions>
56
                                <ColumnDefinition Width="3*"/>
57
                                <ColumnDefinition Width="3*"/>
58
                                <ColumnDefinition Width="3*"/>
59
                                <ColumnDefinition Width="3*"/>
60
                            </Grid.ColumnDefinitions>
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

    
65
                            <!--<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/>
66
                            <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/>
67
                            <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" Padding="5"  Background="#3d3d3d" Foreground="White"/>-->
68
                        </Grid>
69
                        <TextBlock Text="[Tip : Double Click]" FontSize="10" HorizontalAlignment="Right"/>
70
                    </StackPanel>
71
                    <ScrollViewer x:Name="ScView" Grid.Row="1" >
72
                        <ListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" 
73
                                 MouseDown="lstSymbolPrivate_MouseDown"
74
                                 PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp"
75
                                 MouseLeave="lstSymbolPrivate_MouseLeave"
76
                                 PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel"
77
                                 PreviewMouseLeftButtonDown="lstSymbolPrivate_PreviewMouseLeftButtonDown"
78
                                 >
79
                            <telerik:ListBoxDragDrop.Behavior>
80
                                <telerik:ListBoxDragDropBehavior AllowReorder="True" />
81
                            </telerik:ListBoxDragDrop.Behavior>
82
                            
83
                            <!--<ListBox.ItemsPanel>
84
                    <ItemsPanelTemplate>
85
                        <WrapPanel:WrapPanel />
86
                    </ItemsPanelTemplate>
87
                </ListBox.ItemsPanel>-->
88
                            <!--<telerik:ListBoxDragDrop></telerik:ListBoxDragDrop>-->
89
                        </ListBox>
90
                    </ScrollViewer>
91
                </Grid>
92
            </telerik:RadTabItem>
93
            
94
            <telerik:RadTabItem Header="Public" FontSize="10" FontWeight="Normal" HeaderForeground="{DynamicResource KCOMColor_MarkerBrush}" >
95
                <Grid>
96
                    <Grid.RowDefinitions>
97
                        <RowDefinition Height="Auto"/>
98
                        <RowDefinition Height="*"/>
99
                    </Grid.RowDefinitions>
100

    
101
                    <StackPanel Grid.Row="0" Orientation="Vertical">
102
                        <!--<TextBlock Text="Symbol" FontSize="15"/>-->
103
                        <Grid Margin="0,10">
104
                            <Grid.ColumnDefinitions>
105
                                <ColumnDefinition Width="1*"/>
106
                                <ColumnDefinition Width="3*"/>
107
                            </Grid.ColumnDefinitions>
108
                            <!--<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/>
109
                            <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5" Background="#3d3d3d" Foreground="White"/>
110
                            <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" FontWeight="Normal" Padding="5"  Background="#3d3d3d" Foreground="White"/>-->
111

    
112
                            <!--<Button Content="Register" Grid.Column="1" Click="Create_Symbol" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/>
113
                            <Button Content="Rename" Grid.Column="2" Click="Rename_Symbol" Margin="5,0,0,0" Padding="5" Background="#3d3d3d" Foreground="White"/>
114
                            <Button Content="Remove" Grid.Column="3" Click="Remove_Symbol" Margin="5,0,0,0" Padding="5"  Background="#3d3d3d" Foreground="White"/>-->
115
                            <TextBlock VerticalAlignment="Center">Department</TextBlock>
116
                            <telerik:RadComboBox EmptyText="ALL" Grid.Column="1"  HorizontalAlignment="Stretch" Margin="5" DropDownWidth="*" Background="White" BorderBrush="#d6d6d6" x:Name="deptlist"
117
                                                  ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Show All" SelectionChanged="deptlist_SelectionChanged"/>
118

    
119
                        </Grid>
120
                        <TextBlock Text="[Tip : Double Click]" FontSize="10" HorizontalAlignment="Right"/>
121
                    </StackPanel>
122
                    <ScrollViewer x:Name="ScView_Public" Grid.Row="1" >
123
                        <ListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" MouseDoubleClick="Move_Symbol" PreviewMouseWheel ="lstSymbolPublic_PreviewMouseWheel">
124
                            <telerik:ListBoxDragDrop.Behavior>
125
                                <telerik:ListBoxDragDropBehavior AllowReorder="True" />
126
                            </telerik:ListBoxDragDrop.Behavior>
127
                            <!--<ListBox.ItemsPanel>
128
                    <ItemsPanelTemplate>
129
                        <WrapPanel:WrapPanel />
130
                    </ItemsPanelTemplate>
131
                </ListBox.ItemsPanel>-->
132
                            <!--<telerik:ListBoxDragDrop></telerik:ListBoxDragDrop>-->
133
                        </ListBox>
134
                    </ScrollViewer>
135
                </Grid>
136
            </telerik:RadTabItem>
137
        </telerik:RadTabControl>
138
    </Grid>
139
</UserControl>
클립보드 이미지 추가 (최대 크기: 500 MB)