I have a ResourceDictionary xaml file that I use for centralized styling. In it I'm trying to use the style below but am getting an error:
Error 1 The type 'telerik:ThemeResourceKey' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Development\BestpassEM\WPFInfrastructure\Styles\ControlStyles.xaml 36 65 Miscellaneous Files
I have the namespace def at the top of my file (xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" ) what else would I need?
I did have this working but then had to switch my target framework from 4.0 Client Profile to the full verion of 4.0 (to support the telerik ReportViewer control). What could that have broken?
<
Style
TargetType
=
"{x:Type TextBox}"
BasedOn
=
"{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Windows7Theme, ElementType=TextBox}}"
x:Key
=
"EditTextStyle"
>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"Margin"
Value
=
"2"
/>
<
Setter
Property
=
"Foreground"
Value
=
"#333333"
/>
<!--<
Setter
Property
=
"Height"
Value
=
"22"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"{StaticResource ControlOuterBorder_Normal}"
/>-->
<
Setter
Property
=
"Validation.ErrorTemplate"
Value
=
"{StaticResource validationTemplate}"
/>
<
Style.Triggers
>
<
Trigger
Property
=
"Validation.HasError"
Value
=
"True"
>
<
Setter
Property
=
"ToolTip"
Value="{Binding RelativeSource={RelativeSource Self},
Path=(Validation.Errors).CurrentItem.ErrorContent}"/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>