I'm getting the following exception when I set the CommandButtonsVisibility on a RadDataForm targeted Style:
{System.Windows.Markup.XamlParseException: [Line: 0 Position: 0]
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)}
I've been able to narrow the exception down to setting the CommandButtonsVisibility, but can't seem to find a reson why it's failing. It fails with any value I put in there (single or multiple values).
Any ideas?
Here's the code for the Resource file
{System.Windows.Markup.XamlParseException: [Line: 0 Position: 0]
at MS.Internal.XcpImports.CheckHResult(UInt32 hr)}
I've been able to narrow the exception down to setting the CommandButtonsVisibility, but can't seem to find a reson why it's failing. It fails with any value I put in there (single or multiple values).
Any ideas?
Here's the code for the Resource file
<
ResourceDictionary
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikData
=
"clr-namespace:Telerik.Windows.Controls.Data.DataForm;assembly=Telerik.Windows.Controls.Data"
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
>
<
Style
x:Key
=
"GridPageFormStyle"
TargetType
=
"telerik:RadDataForm"
>
<
Setter
Property
=
"CommandButtonsVisibility"
Value
=
"Commit,Cancel"
/> <!-- This is the problem line -->
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"VerticalAlignment"
Value
=
"Top"
/>
<
Setter
Property
=
"Width"
Value
=
"500"
/>
<
Setter
Property
=
"Margin"
Value
=
"0,75,0,0"
/>
<
Setter
Property
=
"Visibility"
Value
=
"Collapsed"
/>
</
Style
>
</
ResourceDictionary
>