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