|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="../SmartStoryboards/SmartStoryboardsRD.xaml" />
</ResourceDictionary.MergedDictionaries>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<!-- Smart Feedback Image Style -->
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<Style x:Key="SmartFeedbackImageStyle" TargetType="{x:Type Image}" BasedOn="{StaticResource {x:Type Image}}">
<Setter Property="Margin" Value="5" />
<Setter Property="Height" Value="20" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Opacity" Value="0.6" />
<Setter Property="RenderTransform">
<Setter.Value>
<ScaleTransform ScaleX="1" ScaleY="1" />
</Setter.Value>
</Setter>
<Setter Property="RenderTransformOrigin">
<Setter.Value>
<Point X="0.5" Y="0.5" />
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Opacity" Value="1" />
</Trigger>
<EventTrigger RoutedEvent="Image.MouseDown">
<BeginStoryboard Storyboard="{DynamicResource ShrinkUIElementTo80Percent}" />
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseUp">
<BeginStoryboard Storyboard="{DynamicResource RestoreOriginalUIElementDimensions}" />
</EventTrigger>
<EventTrigger RoutedEvent="UIElement.MouseLeave">
<BeginStoryboard Storyboard="{DynamicResource RestoreOriginalUIElementDimensions}" />
</EventTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Experience:
More than 20 years with software design, architecture and development. More than 9 years with the .NET Framework.
Preferences:
C#, .NET 2.0, .NET 3.5, .NET 4.0, .NET 4.5, WPF (3, 4 and 4.5), MVVM, XAML, Silverlight, Windows Phone, Windows 8 Apps, ASP.NET, WCF, T-SQL and especially GUI-Development and GUI-Design.
I would say I am a dotNet Developer with a keen affinity for developing and enriching user interfaces.