markus / KCOM / Resources / DragAndDropListBoxStyle.xaml @ 90d1dee0
이력 | 보기 | 이력해설 | 다운로드 (12.1 KB)
1 | 4fcb686a | taeseongkim | <ResourceDictionary
|
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
5 | xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls" |
||
6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
7 | xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
||
8 | xmlns:telerik1="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" |
||
9 | xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.DragDrop;assembly=Telerik.Windows.Controls" |
||
10 | mc:Ignorable="d"> |
||
11 | f65e6c02 | taeseongkim | <SolidColorBrush x:Key="DragVisualForeground" Color="Black" /> |
12 | <SolidColorBrush x:Key="DragVisualBorder" Color="#19848484" /> |
||
13 | 4fcb686a | taeseongkim | <Style x:Key="CustomDragVisualStyle2" TargetType="{x:Type telerikDragDrop:DragVisual}"> |
14 | <Setter Property="Foreground" Value="{StaticResource DragVisualForeground}" /> |
||
15 | f65e6c02 | taeseongkim | <Setter Property="BorderBrush" Value="{StaticResource DragVisualBorder}" /> |
16 | <Setter Property="Background" Value="#7AFFFF82" /> |
||
17 | <Setter Property="BorderThickness" Value="0" /> |
||
18 | <Setter Property="Margin" Value="0" /> |
||
19 | 4fcb686a | taeseongkim | <Setter Property="Padding" Value="0,0,0,0" /> |
20 | f65e6c02 | taeseongkim | <Setter Property="HorizontalContentAlignment" Value="Center" /> |
21 | <Setter Property="VerticalContentAlignment" Value="Center" /> |
||
22 | <Setter Property="SnapsToDevicePixels" Value="True" /> |
||
23 | 8e5a4a6a | taeseongkim | </Style>
|
24 | f65e6c02 | taeseongkim | <Style x:Key="CustomDragVisualStyle" TargetType="{x:Type telerikDragDrop:DragVisual}"> |
25 | 4fcb686a | taeseongkim | <Setter Property="Foreground" Value="{telerik1:VisualStudio2013Resource ResourceKey=MarkerBrush}" /> |
26 | <Setter Property="Background" Value="{telerik1:VisualStudio2013Resource ResourceKey=PrimaryBrush}" /> |
||
27 | <Setter Property="BorderBrush" Value="{telerik1:VisualStudio2013Resource ResourceKey=BasicBrush}" /> |
||
28 | <Setter Property="BorderThickness" Value="0" /> |
||
29 | <Setter Property="Margin" Value="0" /> |
||
30 | <Setter Property="Padding" Value="0" /> |
||
31 | <Setter Property="MinHeight" Value="10" /> |
||
32 | <Setter Property="MinWidth" Value="10" /> |
||
33 | <Setter Property="HorizontalContentAlignment" Value="Center" /> |
||
34 | <Setter Property="VerticalContentAlignment" Value="Center" /> |
||
35 | <Setter Property="SnapsToDevicePixels" Value="True" /> |
||
36 | f65e6c02 | taeseongkim | <Setter Property="Template"> |
37 | <Setter.Value>
|
||
38 | <ControlTemplate TargetType="{x:Type telerikDragDrop:DragVisual}"> |
||
39 | <Grid>
|
||
40 | 4fcb686a | taeseongkim | <Border
|
41 | x:Name="SecondItemVisual" |
||
42 | Background="{telerik1:VisualStudio2013Resource ResourceKey=PrimaryBrush}" |
||
43 | BorderBrush="{telerik1:VisualStudio2013Resource ResourceKey=BasicBrush}" |
||
44 | Visibility="{Binding IsDraggingMultipleItems, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Mode=TemplatedParent}}" /> |
||
45 | <!--<Border x:Name="ThirdthItemVisual"
|
||
46 | Visibility="{Binding IsDraggingMultipleItems, Converter={StaticResource BooleanToVisibilityConverter}, RelativeSource={RelativeSource Mode=TemplatedParent}}"
|
||
47 | Margin="2 2 2 2"
|
||
48 | BorderThickness="1"
|
||
49 | BorderBrush="{telerik1:VisualStudio2013Resource ResourceKey=BasicBrush}"
|
||
50 | Background="{telerik1:VisualStudio2013Resource ResourceKey=PrimaryBrush}"/>-->
|
||
51 | <!--<Border x:Name="ThirdthItemVisual"
|
||
52 | Visibility="Collapsed"
|
||
53 | Margin="0"/>
|
||
54 | <Border x:Name="DragBackgroundVisual"
|
||
55 | Opacity="0.9"
|
||
56 | Margin="0" Background="#33E6E6E6" BorderBrush="#B2F5BCBC" BorderThickness="1" CornerRadius="2" Padding="0"/>-->
|
||
57 | <Border>
|
||
58 | <Grid>
|
||
59 | <Grid.ColumnDefinitions>
|
||
60 | <ColumnDefinition Width="*" /> |
||
61 | </Grid.ColumnDefinitions>
|
||
62 | <Grid VerticalAlignment="Top"> |
||
63 | <Path
|
||
64 | x:Name="NoneEffect" |
||
65 | Width="20" |
||
66 | Height="20" |
||
67 | HorizontalAlignment="Left" |
||
68 | VerticalAlignment="Top" |
||
69 | Data="M2,8 L8,2 M9,5 C9,7.2 7.2,9 5,9 C2.7,9 1,7 1,5 C1,2.8 2.8,1 5,1 C7.2,1 9,2.8 9,5 z" |
||
70 | Stroke="{telerik1:VisualStudio2013Resource ResourceKey=ValidationBrush}" |
||
71 | StrokeThickness="2" |
||
72 | Visibility="Collapsed" /> |
||
73 | <Path
|
||
74 | x:Name="MoveEffect" |
||
75 | Width="20" |
||
76 | Height="20" |
||
77 | HorizontalAlignment="Left" |
||
78 | VerticalAlignment="Top" |
||
79 | Data="M0,5 L8,5 M4,1 L8,5 4,9" |
||
80 | Stroke="{telerik1:VisualStudio2013Resource ResourceKey=AccentDarkBrush}" |
||
81 | StrokeThickness="2" |
||
82 | Visibility="Collapsed" /> |
||
83 | <Path
|
||
84 | x:Name="CopyEffect" |
||
85 | Width="20" |
||
86 | Height="20" |
||
87 | Data="M5,1 L5,9 M1,5 L9,5" |
||
88 | Stroke="{telerik1:VisualStudio2013Resource ResourceKey=AccentDarkBrush}" |
||
89 | StrokeThickness="2" |
||
90 | Visibility="Collapsed" /> |
||
91 | <Path
|
||
92 | x:Name="LinkEffect" |
||
93 | Width="22" |
||
94 | Height="12" |
||
95 | Data="M8,0.5 C9.4,0.5 10.5,1.6 10.5,3 C10.5,4.4 9.4,5.5 8,5.5 C6.6,5.5 5.5,4.4 5.5,3 C5.5,1.6 6.6,0.5 8,0.5 z M3,0.5 C4.4,0.5 5.5,1.6 5.5,3 C5.5,4.4 4.4,5.5 3,5.5 C1.6,5.5 0.5,4.4 0.5,3 C0.5,1.6 1.6,0.5 3,0.5 z" |
||
96 | Stroke="{telerik1:VisualStudio2013Resource ResourceKey=AccentDarkBrush}" |
||
97 | StrokeThickness="1" |
||
98 | Visibility="Collapsed" /> |
||
99 | <Path
|
||
100 | x:Name="ScrollEffect" |
||
101 | Width="20" |
||
102 | Height="24" |
||
103 | Data="M0,5 L5,0 10,5Z M0,7 L5,12 10,7Z" |
||
104 | Stroke="{telerik1:VisualStudio2013Resource ResourceKey=AccentDarkBrush}" |
||
105 | Visibility="Collapsed" /> |
||
106 | </Grid>
|
||
107 | <ContentPresenter
|
||
108 | x:Name="Content" |
||
109 | HorizontalAlignment="Center" |
||
110 | VerticalAlignment="Center" |
||
111 | Content="{TemplateBinding Content}" |
||
112 | ContentTemplate="{TemplateBinding ContentTemplate}" /> |
||
113 | </Grid>
|
||
114 | </Border>
|
||
115 | f65e6c02 | taeseongkim | <VisualStateManager.VisualStateGroups>
|
116 | <VisualStateGroup x:Name="EffectStates"> |
||
117 | <VisualState x:Name="None"> |
||
118 | <Storyboard>
|
||
119 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="NoneEffect" Storyboard.TargetProperty="Visibility"> |
||
120 | <DiscreteObjectKeyFrame KeyTime="0:0:0"> |
||
121 | <DiscreteObjectKeyFrame.Value>
|
||
122 | <Visibility>Visible</Visibility> |
||
123 | </DiscreteObjectKeyFrame.Value>
|
||
124 | </DiscreteObjectKeyFrame>
|
||
125 | </ObjectAnimationUsingKeyFrames>
|
||
126 | </Storyboard>
|
||
127 | </VisualState>
|
||
128 | <VisualState x:Name="Move"> |
||
129 | <Storyboard>
|
||
130 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="MoveEffect" Storyboard.TargetProperty="Visibility"> |
||
131 | <DiscreteObjectKeyFrame KeyTime="0:0:0"> |
||
132 | <DiscreteObjectKeyFrame.Value>
|
||
133 | <Visibility>Visible</Visibility> |
||
134 | </DiscreteObjectKeyFrame.Value>
|
||
135 | </DiscreteObjectKeyFrame>
|
||
136 | </ObjectAnimationUsingKeyFrames>
|
||
137 | </Storyboard>
|
||
138 | </VisualState>
|
||
139 | <VisualState x:Name="Copy"> |
||
140 | <Storyboard>
|
||
141 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="CopyEffect" Storyboard.TargetProperty="Visibility"> |
||
142 | <DiscreteObjectKeyFrame KeyTime="0:0:0"> |
||
143 | <DiscreteObjectKeyFrame.Value>
|
||
144 | <Visibility>Visible</Visibility> |
||
145 | </DiscreteObjectKeyFrame.Value>
|
||
146 | </DiscreteObjectKeyFrame>
|
||
147 | </ObjectAnimationUsingKeyFrames>
|
||
148 | </Storyboard>
|
||
149 | </VisualState>
|
||
150 | <VisualState x:Name="Link"> |
||
151 | <Storyboard>
|
||
152 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="LinkEffect" Storyboard.TargetProperty="Visibility"> |
||
153 | <DiscreteObjectKeyFrame KeyTime="0:0:0"> |
||
154 | <DiscreteObjectKeyFrame.Value>
|
||
155 | <Visibility>Visible</Visibility> |
||
156 | </DiscreteObjectKeyFrame.Value>
|
||
157 | </DiscreteObjectKeyFrame>
|
||
158 | </ObjectAnimationUsingKeyFrames>
|
||
159 | </Storyboard>
|
||
160 | </VisualState>
|
||
161 | <VisualState x:Name="Scroll"> |
||
162 | <Storyboard>
|
||
163 | <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollEffect" Storyboard.TargetProperty="Visibility"> |
||
164 | <DiscreteObjectKeyFrame KeyTime="0:0:0"> |
||
165 | <DiscreteObjectKeyFrame.Value>
|
||
166 | <Visibility>Visible</Visibility> |
||
167 | </DiscreteObjectKeyFrame.Value>
|
||
168 | </DiscreteObjectKeyFrame>
|
||
169 | </ObjectAnimationUsingKeyFrames>
|
||
170 | </Storyboard>
|
||
171 | </VisualState>
|
||
172 | </VisualStateGroup>
|
||
173 | </VisualStateManager.VisualStateGroups>
|
||
174 | </Grid>
|
||
175 | </ControlTemplate>
|
||
176 | </Setter.Value>
|
||
177 | </Setter>
|
||
178 | 8e5a4a6a | taeseongkim | </Style>
|
179 | </ResourceDictionary> |