Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / C#

Build Your Own DataGrid for Silverlight: Step 2

Rate me:
Please Sign up or sign in to vote.
4.39/5 (9 votes)
3 Jun 2009CPOL59 min read 46.5K   854   26  
Implementation of editing and validation features.
References
----------
Make sure that the project references are accurates. You may not have the same versions of the Silverlight 
assemblies that the ones that were used when this project was built.
Pay special attention to the System.Windows.Controls.Data assembly as several versions of this assembly 
are available. You may need to remove the reference to this assembly and then re-add it in order to match
your current version.


Extended and data Controls: How to remove
-----------------------------------------
By default, GoaOpen library provides styles for the controls provided in the Silverlight "Extended" library
(Silverlight Calendar, TabControl) and the Silverlight Data library.
If you do not use these controls inside your application, you should :
	1. remove references to these libraries (System.Windows.Controls.dll and 
		System.Windows.Controls.Data.dll) from the GoaOpen project
	2. remove the "Extended" folder and the "Data" folder (and their content) 
		from the "SLControls" folder in the GoaOpen project
	3. remove the "Extended controls" and the "Data controls" part at the end 
		of the generic.xaml 
	
This way, the size of GoaOpen (and therefore the size of your application) will be smaller.


GOA Themes
----------
Colors are defined at the top of the generic.xaml file. To change the default colors used, 
comment the default colors definition part and uncomment another colors definition part.

Silverlight Theme
-----------------
To enable the Silverlight Theme (in that case GOA controls will have a look close to the look 
of the Silverlight controls), follow these steps:
	1. Rename themes\generic.xaml into themes\genericGOA.xaml
	2. Change the "Build Action" of the genericGOA.xaml file to "None" (use the properties pane)
	3. Rename themes\genericSL.xaml into themes\generic.xaml
	2. Change the "Build Action" of the generic.xaml file to "Resource" (use the properties pane)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Belgium Belgium
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions