Custom style for propertygridfield is not working

2 posts, 0 answers
  1. Sanaka
    Sanaka avatar
    1 posts
    Member since:
    May 2014

    Posted 10 Jun Link to this post

    Can you please look into this issue


    <Window x:Class="WpfApplication1.MainWindow"
            Title="MainWindow" Height="350" Width="525">
            <Style x:Key="fieldStyle" TargetType="telerik:PropertyGridField" BasedOn="{StaticResource PropertyGridFieldStyle}">
                <Setter Property="Background" Value="Red"/>
            <telerik:RadPropertyGrid x:Name="PropertyGrid1" FieldStyle="{StaticResource fieldStyle}"/>


    Iam getting XAML Parse Exception when i tried to define style PropertyGridFieldStyle 

  2. Dilyan Traykov
    Dilyan Traykov avatar
    337 posts

    Posted 13 Jun Link to this post

    Hello Sanaka,

    Could you please specify the inner exception of the XAML Parse Exception you're getting?

    I cannot be absolutely sure from the information you've provided so far, but one possible reason for this exception is that you're referencing the standard binaries instead of the NoXaml ones. Bear in mind that this is needed when using Implicit Styles.

    I'm attaching a sample project, where I've styled RadPropertyGrid's fields with the code you've provided in your previous reply. Please have a look at it and let me know if I'm missing something important.

    If referencing the NoXaml binaries does not solve your issue, feel free to provide more information about the exception and your exact setup and I will gladly assist you further.

    Dilyan Traykov
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top