Own Theme (XamDataGrid For WPF)

This post has 5 Replies | 3 Followers

Hardikj
Points 120
Replied On: Tue, Jan 29 2008 2:01 AM

 Hi,All

How do i Create my Own Custom Theme for XamDataGrid For wpf. 

  • Post Points: 20
granth_ig
Points 555
Infragistics Employee
Microsoft MVP
Replied On: Tue, Jan 29 2008 9:45 AM

I am assuming you want to create your own ThemePack assembly that will work like the external ThemePacks included with NA for WPF (i.e. ForestGreen). If you simply want to restyle the Grid, you can do so using the standard Styling infrastructure of WPF -- overriding the default control Styles with Styles you've customized.

Either way, you'll likely want to start with the DefaultStyles included with the product. Check out this post for some background on the DefaultStyles: http://forums.infragistics.com/forums/p/1563/14702.aspx#14702 

Once you're finished with that post, there is a section in the NetAdvantage for WPF Help entitled Creating a ThemePack that steps through the creation of a ThemePack assembly:

http://help.infragistics.com/NetAdvantage/WPF/2007.1/CLR3.x/

Developer's Guide > Styling Your Application > Creating a ThemePack

  • Post Points: 35
Hardikj
Points 120
Replied On: Thu, Jan 31 2008 10:24 PM

Hi,

Thanks a lot, but i want Each and Every Styles like for DataPresentert,Cell Presenter(which mentioned in composition Diagram of XamdataGrid)

  Is it possible to help me by this way.? Because it will Help me a lot.

Regards

Hardik jani. 

  • Post Points: 20
granth_ig
Points 555
Infragistics Employee
Microsoft MVP
Replied On: Thu, Jan 31 2008 10:49 PM

Yes, every Style used in the Default Style for the XamDataGrid is included in the DefaultStyles folder mentioned in the post I referenced. 

  • Post Points: 5
painscow
Points 20
Replied On: Tue, Mar 17 2009 9:29 PM

In response to your post the following URL appears to be broken - http://help.infragistics.com/NetAdvantage/WPF/2007.1/CLR3.x/

I am looking for info on creating my own theme and have started out with default styles having modified those, however my problem is that certain records mean different things and these need to be reflected in a particular colour and when you hover over ithighlights in that colour that the record text is set to... bit confusing - basically I need to add multiple colours and hover states to a single grid... help!

  • Post Points: 20
Replied On: Wed, Mar 18 2009 5:00 AM

Hello,

Yes, sorry for that -- since Grant's post is more than 1 year old, 7.1 version is now obsolete, you can check out the same in our 8.1 version located here:

http://help.infragistics.com/NetAdvantage/WPF/2008.1/CLR3.x/

There is a topic "Styling Own Application" there that can be helpful there. Also, we ship the default generic style for the grid as XAML in the following folder:

C:\Program Files\Infragistics\NetAdvantage for WPF 2008 Vol. 1\DefaultStyles\DataPresenter

so you can examine the DataPresenterGeneric_Express.xaml file for our default styling. Getting the element you need to re-style is relatively easy using a very good tool - Snoop (available for download from here http://blois.us/Snoop/)

 

 

Best Regards,

Rumen Stankov (MCSD.NET)

Infragistics Inc.

  • Post Points: 5
Page 1 of 1 (6 items) | RSS