Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

WPF Telerik RadGridView Disappeared when Global Style Applied

$
0
0

WPF Telerik RadGridView disappeared when i applied global style.

                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:fw="clr-namespace:SSMS.Framework;assembly=SSMS.Framework">
 
    <StyleTargetType="telerik:RadGridView">
        <SetterProperty="ShowGroupPanel"Value="False"/>
        <SetterProperty="AutoGenerateColumns"Value="False"/>
        <SetterProperty="RowIndicatorVisibility"Value="Collapsed"/>
        <SetterProperty="CanUserFreezeColumns"Value="False"/>
        <SetterProperty="IsReadOnly"Value="True"/>
        <SetterProperty="BorderThickness"Value="1,1,1,0"/>
    </Style>
 
    <Stylex:Key="BoldStyle"TargetType="telerik:GridViewRow"BasedOn="{StaticResource GridViewRowStyle}">
        <SetterProperty="FontWeight"Value="Bold"/>
    </Style>
 
...........................etc

If i remove the below part from GridViewStyle.xaml, the grid appearing fine, but i want to configure those settings globally.

<StyleTargetType="telerik:RadGridView">
            <SetterProperty="ShowGroupPanel"Value="False"/>
            <SetterProperty="AutoGenerateColumns"Value="False"/>
            <SetterProperty="RowIndicatorVisibility"Value="Collapsed"/>
            <SetterProperty="CanUserFreezeColumns"Value="False"/>
            <SetterProperty="IsReadOnly"Value="True"/>
            <SetterProperty="BorderThickness"Value="1,1,1,0"/>
</Style>
I am using Telerik WPF 2016.1.112.45
I am sure, before it was worked on the version 2015.3.1104.45.
Anything I missed?

Viewing all articles
Browse latest Browse all 78072

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>