PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Debugger/ILSpy.Debugger/ToolTips/PinControlsDictionary.xaml

http://github.com/icsharpcode/ILSpy
XAML | 362 lines | 345 code | 17 blank | 0 comment | 0 complexity | 3f09974c9bc316b58acdfabeda3a8d63 MD5 | raw file
  1<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3	xmlns:local="clr-namespace:ICSharpCode.ILSpy.Debugger.Tooltips"
  4>
  5	<LinearGradientBrush x:Key="OrangeBrushKey" EndPoint="0,1" StartPoint="0,0">
  6		<LinearGradientBrush.GradientStops>
  7			<GradientStop Offset="0" Color="White" />
  8			<GradientStop Offset="0.5" Color="Orange" />
  9			<GradientStop Offset="1" Color="Orange" />
 10		</LinearGradientBrush.GradientStops>
 11	</LinearGradientBrush>
 12	
 13	<LinearGradientBrush x:Key="OrangePressedBrushKey" EndPoint="0,1" StartPoint="0,0">
 14		<LinearGradientBrush.GradientStops>
 15			<GradientStop Offset="1" Color="White" />
 16			<GradientStop Offset="0.5" Color="Orange" />
 17			<GradientStop Offset="0" Color="Orange" />
 18		</LinearGradientBrush.GradientStops>
 19	</LinearGradientBrush>
 20	
 21	<LinearGradientBrush x:Key="SilverBrushKey" EndPoint="0,1" StartPoint="0,0">
 22		<LinearGradientBrush.GradientStops>
 23			<GradientStop Offset="0" Color="White" />
 24			<GradientStop Offset="0.5" Color="LightGray" />
 25			<GradientStop Offset="1" Color="LightGray" />
 26		</LinearGradientBrush.GradientStops>
 27	</LinearGradientBrush>
 28	
 29	<LinearGradientBrush x:Key="SilverPressedBrushKey" EndPoint="0,1" StartPoint="0,0">
 30		<LinearGradientBrush.GradientStops>
 31			<GradientStop Offset="1" Color="White" />
 32			<GradientStop Offset="0.5" Color="LightGray" />
 33			<GradientStop Offset="0" Color="LightGray" />
 34		</LinearGradientBrush.GradientStops>
 35	</LinearGradientBrush>
 36	
 37	<ControlTemplate x:Key="CloseButtonTemplate" TargetType="Button">
 38		<Border Width="16" Height="16" Name="TheBorder" CornerRadius="2,2,0,0" BorderThickness="1" BorderBrush="Black" Background="{StaticResource SilverPressedBrushKey}">
 39			<Canvas>
 40				<Line X1="3.5" X2="10.5" Y1="3.5" Y2="10.5" Stroke="Black" StrokeThickness="2"/>
 41				<Line X1="3.5" X2="10.5" Y1="10.5" Y2="3.5" Stroke="Black" StrokeThickness="2"/>
 42			</Canvas>
 43		</Border>
 44		<ControlTemplate.Triggers>
 45			<Trigger Property="UIElement.IsMouseOver" Value="true">
 46				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangeBrushKey}"/>
 47				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
 48			</Trigger>
 49			<Trigger Property="ButtonBase.IsPressed" Value="True">
 50				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangePressedBrushKey}"/>
 51				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
 52			</Trigger>
 53		</ControlTemplate.Triggers>
 54	</ControlTemplate>
 55	
 56	<TransformGroup x:Key="Rotate">
 57		<RotateTransform Angle="270" CenterX="7" CenterY="7"/>
 58	</TransformGroup>
 59	
 60	<TransformGroup x:Key="RotateUnpin">
 61		<RotateTransform Angle="270" CenterX="7" CenterY="7"/>
 62		<RotateTransform Angle="-90" CenterX="7" CenterY="7"/>
 63		<ScaleTransform ScaleY="-1" CenterX="7" CenterY="7"/>
 64	</TransformGroup>
 65	
 66	<TransformGroup x:Key="RotatePin">
 67		<RotateTransform Angle="-90" CenterX="7" CenterY="7"/>
 68	</TransformGroup>
 69	
 70	<TransformGroup x:Key="FlipComment">
 71		<ScaleTransform CenterX="7" CenterY="7" ScaleY="-1"/>
 72	</TransformGroup>
 73	
 74	<ControlTemplate x:Key="PinButtonTemplate" TargetType="ToggleButton">
 75		<Border Width="16" Height="16" Name="TheBorder" CornerRadius="0" BorderThickness="1" BorderBrush="Black" Background="{StaticResource SilverPressedBrushKey}">
 76			<Canvas Name="TheCanvas">
 77				<Line X1="4" X2="10" Y1="2" Y2="2" Stroke="Black" StrokeThickness="1"/>
 78				<Line X1="9" X2="9" Y1="2" Y2="8" Stroke="Black" StrokeThickness="1"/>
 79				<Line X1="2" X2="12" Y1="8" Y2="8" Stroke="Black" StrokeThickness="1"/>
 80				<Rectangle Fill="Black" Width="2" Height="5" Canvas.Left="4" Canvas.Top="3"/>
 81				<Line X1="7" X2="7" Y1="9" Y2="12" Stroke="Black" StrokeThickness="1"/>
 82			</Canvas>
 83		</Border>
 84		<ControlTemplate.Triggers>
 85			<Trigger Property="UIElement.IsMouseOver" Value="true">
 86				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangeBrushKey}"/>
 87				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
 88			</Trigger>
 89			<Trigger Property="ButtonBase.IsPressed" Value="True">
 90				<Setter TargetName="TheCanvas" Property="RenderTransform" Value="{StaticResource RotatePin}"/>
 91				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangePressedBrushKey}"/>
 92				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
 93			</Trigger>
 94			<Trigger Property="IsChecked" Value="true">
 95				<Setter TargetName="TheCanvas" Property="RenderTransform" Value="{StaticResource RotatePin}"/>
 96			</Trigger>
 97		</ControlTemplate.Triggers>
 98	</ControlTemplate>
 99	
100	<ControlTemplate x:Key="CommentButtonTemplate" TargetType="ToggleButton">
101		<Border Width="16" Height="16" Name="TheBorder" CornerRadius="0,0,2,2" BorderThickness="1" BorderBrush="Black" Background="{StaticResource SilverPressedBrushKey}">
102			<Canvas Name="TheCanvas">
103				<Line X1="3" Y1="3" X2="7" Y2="7.5" Stroke="Black" StrokeThickness="1"/>
104				<Line X1="7" Y1="7.4" X2="11" Y2="3" Stroke="Black" StrokeThickness="1"/>
105				<Line X1="3" Y1="7.5" X2="7" Y2="12" Stroke="Black" StrokeThickness="1"/>
106				<Line X1="7" Y1="12" X2="11" Y2="7.5" Stroke="Black" StrokeThickness="1"/>
107			</Canvas>
108		</Border>
109		<ControlTemplate.Triggers>
110			<Trigger Property="UIElement.IsMouseOver" Value="true">
111				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangeBrushKey}"/>
112				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
113			</Trigger>
114			<Trigger Property="ButtonBase.IsPressed" Value="True">
115				<Setter TargetName="TheBorder" Property="Background" Value="{StaticResource OrangePressedBrushKey}"/>
116				<Setter TargetName="TheBorder" Property="BorderBrush" Value="Silver"/>
117			</Trigger>
118			<Trigger Property="IsChecked" Value="True">
119				<Setter TargetName="TheCanvas" Property="RenderTransform" Value="{StaticResource FlipComment}"/>
120			</Trigger>
121		</ControlTemplate.Triggers>
122	</ControlTemplate>
123	
124	<SolidColorBrush x:Key="MouseOverPinBrush" Color="Black" />
125	
126	<ControlTemplate x:Key="PinTooltipButtonTemplate" TargetType="ToggleButton">
127		<Border Width="16" Height="16" Name="TheBorder" CornerRadius="2" BorderBrush="Transparent" BorderThickness="1" Background="Transparent">
128			<Canvas RenderTransform="{StaticResource Rotate}" Name="TheCanvas">
129				<Line X1="4" X2="10" Y1="2" Y2="2" Stroke="Silver" StrokeThickness="1" Name="Line1"/>
130				<Line X1="9" X2="9" Y1="2" Y2="8" Stroke="Silver" StrokeThickness="1" Name="Line2"/>
131				<Line X1="2" X2="12" Y1="8" Y2="8" Stroke="Silver" StrokeThickness="1" Name="Line3"/>
132				<Rectangle Fill="Silver" Width="2" Height="7" Canvas.Left="4" Canvas.Top="2" Name="Rectangle"/>
133				<Line X1="7" X2="7" Y1="9" Y2="12" Stroke="Silver" StrokeThickness="1" Name="Line4"/>
134			</Canvas>
135		</Border>
136		<ControlTemplate.Triggers>
137			<Trigger Property="ButtonBase.IsPressed" Value="True">
138				<Setter TargetName="TheCanvas" Property="RenderTransform" Value="{StaticResource RotateUnpin}"/>
139			</Trigger>
140			<Trigger Property="ButtonBase.IsMouseOver" Value="True">
141				<Setter TargetName="Line1" Property="Stroke" Value="{StaticResource MouseOverPinBrush}"/>
142				<Setter TargetName="Line2" Property="Stroke" Value="{StaticResource MouseOverPinBrush}"/>
143				<Setter TargetName="Line3" Property="Stroke" Value="{StaticResource MouseOverPinBrush}"/>
144				<Setter TargetName="Line4" Property="Stroke" Value="{StaticResource MouseOverPinBrush}"/>
145				<Setter TargetName="Rectangle" Property="Fill" Value="{StaticResource MouseOverPinBrush}"/>
146			</Trigger>
147			<Trigger Property="IsChecked" Value="True">
148				<Setter TargetName="TheCanvas" Property="RenderTransform" Value="{StaticResource RotateUnpin}"/>
149			</Trigger>
150		</ControlTemplate.Triggers>
151	</ControlTemplate>
152	
153	<Style
154		TargetType="{x:Type TextBox}"
155		x:Key="TextStyle">
156		<Setter
157			Property="OverridesDefaultStyle"
158			Value="True" />
159		<Setter
160			Property="VerticalAlignment"
161			Value="Center" />
162		<Setter
163			Property="FontFamily" Value="Khmer UI" />
164		<Setter Property="FontSize" Value="12" />
165		<Setter
166			Property="KeyboardNavigation.TabNavigation"
167			Value="None" />
168		<Setter
169			Property="FocusVisualStyle"
170			Value="{x:Null}" />
171		<Setter
172			Property="Template">
173			<Setter.Value>
174				<ControlTemplate
175					TargetType="{x:Type TextBoxBase}">
176					<Border
177						Name="Border"
178						Background="Transparent"
179						BorderBrush="Transparent"
180						BorderThickness="0">
181						<ScrollViewer
182							Margin="0"
183							Name="PART_ContentHost" />
184					</Border>
185				</ControlTemplate>
186			</Setter.Value>
187		</Setter>
188	</Style>
189	
190	<Style TargetType="TextBlock" x:Key="TextBlockStyle">
191		<Setter Property="Margin" Value="4 0" />
192		<Setter
193			Property="FontFamily" Value="Khmer UI" />
194		<Setter Property="FontSize" Value="12" />
195	</Style>
196	
197	<Style x:Key="PinThumbStyle" TargetType="Thumb">
198		<Setter Property="Template">
199			<Setter.Value>
200				<ControlTemplate TargetType="Thumb">
201					<StackPanel x:Name="Container"/>
202				</ControlTemplate>
203			</Setter.Value>
204		</Setter>
205	</Style>
206	
207	<Style
208		x:Key="ExpandCollapseToggleStyle"
209		TargetType="{x:Type ToggleButton}">
210		<Setter
211			Property="Focusable"
212			Value="False" />
213		<Setter
214			Property="Width"
215			Value="19" />
216		<Setter
217			Property="Height"
218			Value="13" />
219		<Setter
220			Property="Template">
221			<Setter.Value>
222				<ControlTemplate
223					TargetType="{x:Type ToggleButton}">
224					<Border
225						Width="19"
226						Height="13"
227						Background="Transparent">
228						<Border
229							Width="9"
230							Height="9"
231							BorderThickness="1"
232							BorderBrush="#FF7898B5"
233							CornerRadius="1"
234							SnapsToDevicePixels="true">
235							<Border.Background>
236								<LinearGradientBrush
237									StartPoint="0,0"
238									EndPoint="1,1">
239									<LinearGradientBrush.GradientStops>
240										<GradientStop
241											Color="White"
242											Offset=".2" />
243										<GradientStop
244											Color="#FFC0B7A6"
245											Offset="1" />
246									</LinearGradientBrush.GradientStops>
247								</LinearGradientBrush>
248							</Border.Background>
249							<Path
250								x:Name="ExpandPath"
251								Margin="1,1,1,1"
252								Fill="Black"
253								Data="M 0 2 L 0 3 L 2 3 L 2 5 L 3 5 L 3 3 L 5 3 L 5 2 L 3 2 L 3 0 L 2 0 L 2 2 Z" />
254						</Border>
255					</Border>
256					<ControlTemplate.Triggers>
257						<Trigger
258							Property="IsChecked"
259							Value="True">
260							<Setter
261								Property="Data"
262								TargetName="ExpandPath"
263								Value="M 0 2 L 0 3 L 5 3 L 5 2 Z" />
264						</Trigger>
265					</ControlTemplate.Triggers>
266				</ControlTemplate>
267			</Setter.Value>
268		</Setter>
269	</Style>
270	<Style
271		x:Key="upDownBorderStyle"
272		TargetType="{x:Type Border}">
273		<Setter
274			Property="BorderBrush"
275			Value="Gray" />
276		<Setter
277			Property="HorizontalAlignment"
278			Value="Stretch" />
279		<Setter
280			Property="Margin"
281			Value="0" />
282		<Setter
283			Property="Padding"
284			Value="0" />
285		<Setter
286			Property="Background"
287			Value="#FFECF7FC" />
288		<Setter
289			Property="Height"
290			Value="14" />
291		<Style.Triggers>
292			<DataTrigger
293				Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnabled}"
294				Value="False">
295				<Setter
296					Property="Background"
297					Value="#FFE0E0E0"></Setter>
298			</DataTrigger>
299		</Style.Triggers>
300	</Style>
301	<Style
302		x:Key="upButtonStyle"
303		TargetType="{x:Type RepeatButton}">
304		<Setter
305			Property="Template">
306			<Setter.Value>
307				<ControlTemplate
308					TargetType="{x:Type RepeatButton}">
309					<Border
310						Style="{StaticResource upDownBorderStyle}"
311						BorderThickness="1 1 1 0">
312						<ContentPresenter
313							HorizontalAlignment="Center"></ContentPresenter>
314					</Border>
315				</ControlTemplate>
316			</Setter.Value>
317		</Setter>
318	</Style>
319	<Style
320		x:Key="downButtonStyle"
321		TargetType="{x:Type RepeatButton}">
322		<Setter
323			Property="Template">
324			<Setter.Value>
325				<ControlTemplate
326					TargetType="{x:Type RepeatButton}">
327					<Border
328						Style="{StaticResource upDownBorderStyle}"
329						BorderThickness="1 0 1 1">
330						<ContentPresenter
331							HorizontalAlignment="Center"></ContentPresenter>
332					</Border>
333				</ControlTemplate>
334			</Setter.Value>
335		</Setter>
336	</Style>
337	
338	<ControlTemplate x:Key="RefreshButton" TargetType="Button">
339		<Border
340			Name="ImageBorder"
341			CornerRadius="7"
342			BorderBrush="Transparent"
343			BorderThickness="1"
344			Height="14"
345			Width="14">
346			<Image Width="9" Height="9" Margin="2 2"
347			       x:Name="RefreshContentImage"
348			       Tag="{Binding}"
349			       Source="pack://application:,,,/ILSpy;component/Images/Refresh.png"/>
350		</Border>
351		<ControlTemplate.Triggers>
352			<Trigger Property="UIElement.IsMouseOver" Value="true">
353				<Setter TargetName="ImageBorder" Property="Background" Value="{StaticResource SilverBrushKey}"/>
354				<Setter TargetName="ImageBorder" Property="BorderBrush" Value="Gray"/>
355			</Trigger>
356			<Trigger Property="ButtonBase.IsPressed" Value="True">
357				<Setter TargetName="ImageBorder" Property="Background" Value="{StaticResource SilverPressedBrushKey}"/>
358				<Setter TargetName="ImageBorder" Property="BorderBrush" Value="Gray"/>
359			</Trigger>
360		</ControlTemplate.Triggers>
361	</ControlTemplate>
362</ResourceDictionary>