This is a migrated thread and some comments may be shown as answers.

XamlParseException when CommandButtonsVisibility is set in a ResourceDictionary

3 Answers 91 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 10 Jun 2011, 08:57 PM
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

<ResourceDictionary
    xmlns:telerikData="clr-namespace:Telerik.Windows.Controls.Data.DataForm;assembly=Telerik.Windows.Controls.Data"
     
    <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>
 

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 13 Jun 2011, 08:17 AM
Hello Benjamin,

 

I have tried to reproduce such a behavior by my side however I was not able to. May you please try to isolate the problem in a small runnable project and send it to us in a new support ticket where we can see what might be wrong? Thus we would be able to provide you with an appropriate solution. Any additional information about the grid version you used will be highly appreciated as well. 



Regards,
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
blaise
Top achievements
Rank 1
answered on 11 Aug 2011, 12:38 PM
I confirm the problem.
In my case, styles are defined in an external assembly.
Everithing work fine except if a put this property (command buttons visibility setter) in my styles.
0
Pavel Pavlov
Telerik team
answered on 11 Aug 2011, 01:40 PM
Hi Guys,

I would recommend an upgrade to a later version (Ideally the latest internal build). I believe a similar bug was recently fixed. In case you still get the error with the latest binaries, please let me know and I will immediately take care.

Regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
DataForm
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
blaise
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or