XamlParseException when CommandButtonsVisibility is set in a ResourceDictionary

4 posts, 0 answers
  1. Benjamin
    Benjamin avatar
    2 posts
    Member since:
    Sep 2010

    Posted 10 Jun 2011 Link to this post

    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

        <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" />
  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 13 Jun 2011 Link to this post

    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. 

    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
  3. blaise
    blaise avatar
    12 posts
    Member since:
    Feb 2011

    Posted 11 Aug 2011 Link to this post

    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.
  4. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 11 Aug 2011 Link to this post

    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.

    Pavel Pavlov
    the Telerik team

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

Back to Top