- compositewpfapp_src.zip
- CompositeWpfApp
- Common
- CWA.Infrastructure
- CWA.ResourceLibrary
- CWA.UIControls
- Composite Application Library
- Microsoft.Practices.Composite.dll
- Microsoft.Practices.Composite.Presentation.dll
- Microsoft.Practices.Composite.UnityExtensions.dll
- Microsoft.Practices.ObjectBuilder2.dll
- Microsoft.Practices.ServiceLocation.dll
- Microsoft.Practices.Unity.dll
- CompositeWpfApp.gpState
- CompositeWpfApp.sln
- CompositeWpfApp.suo
- CompositeWpfApp
- Modules
- CWA.Module.DefaultModule
- CWA.Module.Documents
- CWA.Module.ModuleSelector
- CWA.Module.Security
- CWA.Module.ServerSelector
- CWA.Module.StatusArea
- CWA.Module.Users
|
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctl="clr-namespace:CWA.UIControls;assembly=CWA.UIControls">
<!--ImageRadioButton Style-->
<Style TargetType="{x:Type ctl:ImageRadioButton}">
<Setter Property="Focusable" Value="False" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ctl:ImageRadioButton}">
<Grid>
<Border Name="OuterBorder" BorderThickness="1" MinWidth="80"
BorderBrush="{DynamicResource ImageButtonOuterBorderBrush}"
Background="{DynamicResource ImageButtonBackgroundBrush}"
CornerRadius="3" Margin="1,3,1,3" SnapsToDevicePixels="True">
<Border Name="InnerBorder" BorderThickness="1" CornerRadius="2"
SnapsToDevicePixels="True" BorderBrush="{DynamicResource ImageButtonInnerBorderBrush}" >
<Grid Name="Glow" Background="Transparent">
<Border Padding="12,5,12,5">
<StackPanel Orientation="Horizontal">
<Image Name="Icon" RenderOptions.BitmapScalingMode="NearestNeighbor"
Source="{TemplateBinding Icon}" Stretch="None" Margin="0,0,4,0" />
<ContentPresenter
TextBlock.Foreground="{TemplateBinding Foreground}"
Content="{TemplateBinding ContentControl.Content}"
VerticalAlignment="Center" />
</StackPanel>
</Border>
</Grid>
</Border>
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Icon" Value="{x:Null}">
<Setter Property="Visibility" TargetName="Icon" Value="Collapsed"/>
</Trigger>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonOuterBorderBrushOver}" />
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ImageButtonBackgroundBrushOver}" />
<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonInnerBorderBrushOver}" />
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonOuterBorderBrushOver}" />
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ImageButtonBackgroundBrushOver}" />
<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonInnerBorderBrushOver}" />
<Setter TargetName="Glow" Property="Background" Value="{DynamicResource ImageButtonGlowBrushPressed}" />
</Trigger>
<Trigger Property="IsChecked" Value="True">
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonOuterBorderBrushPressed}" />
<Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource ImageButtonBackgroundBrushPressed}" />
<Setter TargetName="InnerBorder" Property="BorderBrush" Value="{DynamicResource ImageButtonInnerBorderBrushPressed}" />
<Setter TargetName="Glow" Property="Background" Value="{DynamicResource ImageButtonGlowBrushChecked}" />
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="TextBlock.Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
<Setter TargetName="Icon" Property="Opacity" Value="0.4" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</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.
Jevgenij lives in Riga, Latvia. He started his programmer's career in 1983 developing software for radio equipment CAD systems. Created computer graphics for TV. Developed Internet credit card processing systems for banks.
Now he is System Analyst in Accenture.