프로젝트

일반

사용자정보

개정판 f65e6c02

IDf65e6c0217de89d4653173b2f16417acc26d5e0a
상위 a1142a6b
하위 b4b23404

김태성이(가) 약 5년 전에 추가함

debug_SNI 추가

Change-Id: I46d431ca15362882a9ab7e8dd7600371f47471de

차이점 보기:

KCOM/Controls/Symbol.xaml
2 2
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 3
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 4
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
5
             xmlns:common="clr-namespace:KCOM.Common"
5 6
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
6 7
             xmlns:WrapPanel ="clr-namespace:KCOM.WrapPanel"
7 8
             xmlns:local="clr-namespace:KCOM.Controls"
9
              xmlns:ZoomAndPan="clr-namespace:ZoomAndPan;assembly=ZoomAndPan"
10
      	     xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls"
11
             	 xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
8 12
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
9 13
             xmlns:converter="clr-namespace:KCOM.Common.Converter"
14
             xmlns:Behaviors="clr-namespace:KCOM.Behaviors"
10 15
             mc:Ignorable="d" Background="#f5f5f5"
11 16
             d:DesignHeight="900" d:DesignWidth="300">
12

  
13 17
    <UserControl.Resources>
14 18
        <converter:SvgImageConverter x:Key="SvgImageConverter"/>
19
        <Style x:Key="CustomDragVisualStyle2" TargetType="telerik:DragVisual" BasedOn="{StaticResource DragVisualStyle}">
20
            <Setter Property="Background" Value="Transparent" />
21
            <Setter Property="BorderThickness" Value="0" />
22
            <Setter Property="Margin"  Value="0" />
23
            <Setter Property="Padding"  Value="0" />
24
        </Style>
25
        <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
26
            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True"/>
27
            <!--<Setter Property="telerik:TouchManager.DragStartTrigger" Value="TapHoldAndMove"/>-->
28
        </Style>
15 29
        <DataTemplate x:Key="SymbolTemplate_Private">
16
            <StackPanel MouseLeftButtonDown="Move_Symbol" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}">
30
            <StackPanel MouseLeftButtonDown="Move_Symbol" AllowDrop="False" MouseLeave="StackPanel_MouseLeave" MouseUp="StackPanel_MouseUp" ToolTipService.ToolTip="{Binding Name}">
17 31
                <Grid>
18 32
                    <StackPanel>
19 33
                        <!--<Border Background="#FF1FA3EB">-->
......
32 46
                            Height="64"
33 47
                            Margin="3"
34 48
                            HorizontalAlignment="Center"
35
                            x:Name="symbolImage">
36
                            <!-- 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>
49
                               Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter},UpdateSourceTrigger=PropertyChanged}"
50
                            x:Name="symbolImage"/>
44 51
                    </StackPanel>
45 52
                    <Rectangle Opacity="0.7"
46 53
                            Stroke="#ff6c6d6d"
......
48 55
                </Grid>
49 56
            </StackPanel>
50 57
        </DataTemplate>
51
        <Style TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
52
            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" />
53
            <Setter Property="telerik:TouchManager.DragStartTrigger" Value="TapHoldAndMove"/>
54
        </Style>
55 58
    </UserControl.Resources>
56 59
    <Grid  Margin="10">
57 60
        <telerik:RadTabControl BorderThickness="0" x:Name="RadTab" telerik:StyleManager.Theme="Office2016"  HeaderBackground="#f5f5f5" FontSize="10" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"
......
88 91
                        </Grid>
89 92
                    </StackPanel>
90 93
                    <ScrollViewer x:Name="ScView" Grid.Row="2" >
91
                        <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" 
92
                                 MouseDown="lstSymbolPrivate_MouseDown"
94
                        <telerik:RadListBox x:Name="lstSymbolPrivate" Background="#f5f5f5" FontWeight="Normal"
95
                                 ItemTemplate="{StaticResource SymbolTemplate_Private}" 
96
                                 MouseDown="lstSymbolPrivate_MouseDown" 
93 97
                                 PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp"
94
                                 MouseLeave="lstSymbolPrivate_MouseLeave"
98
                                 MouseLeave="lstSymbolPrivate_MouseLeave" AllowDrop="False"
95 99
                                 PreviewMouseWheel ="lstSymbolPrivate_PreviewMouseWheel">
100
                            <telerik:RadListBox.DragDropBehavior>
101
                                <telerik:ListBoxDragDropBehavior AllowReorder="True" />
102
                            </telerik:RadListBox.DragDropBehavior>
96 103
                            <telerik:RadListBox.DragVisualProvider>
97
                                <telerik:ScreenshotDragVisualProvider />
104
                                <Behaviors:RadListBoxDragVisualProvider DragVisualStyle="{StaticResource CustomDragVisualStyle}">
105
                                    <Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
106
                                        <DataTemplate>
107
                                            <Grid Width="80">
108
                                                <Image
109
                                            Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter}}"
110
                                            HorizontalAlignment="Left"/>
111
                                            </Grid>
112
                                        </DataTemplate>
113
                                    </Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
114
                                </Behaviors:RadListBoxDragVisualProvider>
98 115
                            </telerik:RadListBox.DragVisualProvider>
99
                            <telerik:ListBoxDragDrop.Behavior>
100
                                <telerik:ListBoxDragDropBehavior AllowReorder="True" telerik:TouchManager.DragStartTrigger="TapHoldAndMove"/>
101
                            </telerik:ListBoxDragDrop.Behavior>
102 116
                        </telerik:RadListBox>
103 117
                    </ScrollViewer>
104 118
                </Grid>
......
144 158
                            <TextBlock Text="[Tip : Double Click]" Grid.Column="0" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Right"/>
145 159
                        </Grid>
146 160
                    </StackPanel>
147

  
148 161
                    <ScrollViewer x:Name="ScView_Public" Grid.Row="2" >
149
                        <ListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal" ItemTemplate="{StaticResource SymbolTemplate_Private}" 
162
                        <telerik:RadListBox x:Name="lstSymbolPublic" Background="#f5f5f5" FontWeight="Normal"
163
                                 ItemTemplate="{StaticResource SymbolTemplate_Private}"   AllowDrop="False"
150 164
                                 MouseDown="lstSymbolPrivate_MouseDown"
151 165
                                 PreviewMouseUp="lstSymbolPrivate_PreviewMouseUp"
152 166
                                 MouseLeave="lstSymbolPrivate_MouseLeave"
153 167
                                 PreviewMouseWheel ="lstSymbolPublic_PreviewMouseWheel">
154
                            <telerik:ListBoxDragDrop.Behavior>
168
                            <telerik:RadListBox.DragDropBehavior>
155 169
                                <telerik:ListBoxDragDropBehavior AllowReorder="True" />
156
                            </telerik:ListBoxDragDrop.Behavior>
157
                        </ListBox>
170
                            </telerik:RadListBox.DragDropBehavior>
171
                            <telerik:RadListBox.DragVisualProvider>
172
                                <Behaviors:RadListBoxDragVisualProvider>
173
                                    <Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
174
                                        <DataTemplate>
175
                                            <Grid>
176
                                                <Image Width="80" x:Name="SymbolImage" Source="{Binding ImageUri,Converter={StaticResource SvgImageConverter}}"/>
177
                                            </Grid>
178
                                        </DataTemplate>
179
                                    </Behaviors:RadListBoxDragVisualProvider.DraggedItemTemplate>
180
                                </Behaviors:RadListBoxDragVisualProvider>
181
                            </telerik:RadListBox.DragVisualProvider>
182
                        </telerik:RadListBox>
158 183
                    </ScrollViewer>
159 184
                </Grid>
160 185
            </telerik:RadTabItem>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)