Telerik Forums
UI for WPF Forum
2 answers
301 views
Greetings,
   I am attempting to do some custom styling based on the Simple theme.  I looked over the example provided on this post (http://www.telerik.com/community/forums/thread/b311D-bkeeck.aspx) however it does not work with the latest builds of the WPF gridview control.

Specifically I am having trouble styling the GridViewHeaderRow (or GridViewHeaderCell) and the row selectors (I haven't found the object name for these yet).

The following is a small piece of code from the styling: (Note the dark blue is for testing purposes, end goal is a gradient brush)
<Window x:Class="radGridStyling.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:radGrid="http://schemas.telerik.com/2008/xaml/presentation" 
    xmlns:Simple="clr-namespace:Telerik.Windows.Controls.Simple;assembly=Telerik.Windows.Controls.Simple" 
    Title="Window1" Height="401" Width="654" > 
    <Window.Resources> 
        <Style TargetType="{x:Type radGrid:GridViewRow}" > 
            <Style.Triggers> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="False"> 
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#ABD5F3" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
                <DataTrigger Binding="{Binding IsAlternating}" Value="True"> 
                    <DataTrigger.Setters> 
                        <Setter Property="Background" Value="#CAEEFE" /> 
                    </DataTrigger.Setters> 
                </DataTrigger> 
            </Style.Triggers> 
        </Style> 
 
        <Style TargetType="{x:Type radGrid:GridViewHeaderRow}" > 
            <Setter Property="Background" Value="DarkBlue" /> 
        </Style> 
 
        <Style TargetType="{x:Type radGrid:GridViewHeaderCell}" > 
            <Setter Property="Background" Value="DarkBlue" /> 
        </Style> 
 
    </Window.Resources> 
     
    <Grid> 
        <radGrid:RadGridView Margin="26,22,79,43" Name="radGridView1" > 
            <radGrid:Theming.Theme> 
                <Simple:SimpleTheme/> 
            </radGrid:Theming.Theme> 
        </radGrid:RadGridView> 
    </Grid> 
</Window> 
 

In the example above, the GridViewRow style changes work as expected. However the GridViewHeaderRow and GridViewHeaderCell styles have no impact.

Any guidance would be greatly appreciated!

Thanks,
  Chris
Christopher
Top achievements
Rank 1
 answered on 16 Oct 2008
1 answer
122 views
When try in to use the DatePicker control I get the following error when trying to open the calender drop down.

'ContentControl' TargetType does not match type of element 'Control'.

I'm currently on 3.5 sp1 (but found and downloaded the SP1 commpiled dll's)

The DatePicker in the sample app works fine but if a add a new form with your control on it i get the same error, as I cannot see the see whats in the QuickStart code its difficult for me to see what is different

Can anyone help


Cheers
Miroslav
Telerik team
 answered on 16 Oct 2008
0 answers
128 views
ttt
good work
vijay
Top achievements
Rank 1
 asked on 15 Oct 2008
1 answer
96 views
Everytime I start the example program I get (after a variable amount of time) an error saying the application stopped and need to be closed.

I am on Vista with all the latest updates... Is this a know issue ?
Dimitar Dobrev
Telerik team
 answered on 14 Oct 2008
1 answer
143 views
Is there some place where we can download the wpf sample solution ?

Are there any Project we download and play with ?

I tried adding a grid on a xaml windows but I always get Object reference not set error...
Dimitar Dobrev
Telerik team
 answered on 14 Oct 2008
2 answers
137 views
Hello!
I wanna implement my own cell editor. Could you provide some example for me?
Alexander
Top achievements
Rank 1
 answered on 14 Oct 2008
6 answers
256 views
Hi all,
Please may any one knew how to set color to column's of child tables in radgridview (wpf) for hierarchy example . I was searching for long time but no luck.
I will be thankfull if any one may reply as soon as possible.
Dimitar Dobrev
Telerik team
 answered on 13 Oct 2008
3 answers
338 views
Hi,
I'm testing wpf controls, i would like to know if is there a way to customize the automatic filter with something like a textbox and a combo, or add a custom row where i can put some controls to create a custom filter. Sorry for my english.

Thanks

Marco
Hristo Deshev
Telerik team
 answered on 10 Oct 2008
1 answer
100 views
Hi all,
Please provide me data to set tooltip for radgridview column or field  (wpf)
Dimitar Dobrev
Telerik team
 answered on 10 Oct 2008
1 answer
128 views
Do you have any examples on how to hook up to IDataErrorInfo/ValidatesOnDataError rather than or ontop of the fieldvalidatingrouted event?
Dimitar Dobrev
Telerik team
 answered on 08 Oct 2008
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?