February 2008 Entries
This is a multi-part series on building a Silverlight Color Picker Control, please check out the Introduction if you missed it!
Before we write any actual code, it's nice to have some visuals to use as a reference. There are many ways to represent color spaces. One of the most common color space representations allows the user to pick a hue and then pick a saturation/luminosity combination. The diagram below is a simplified view of this layout. From this diagram, we can infer the XAML primitives that will be necessary to present our control.
Hue Selector
The...
It doesn't appear that there will be a color picker control in the upcoming release of Silverlight. Of course, this is just a beta, so things may change. Either way, I've developed a simple color picker for use in your Silverlight applications. My ultimate goal is to make HTML hex color code color selection easier in ASP.NET applications.
Sure, there are various color pickers available for just about every platform, but you really would appreciate how little code it took to get this working. This is really a testament to the excellent architecture of the WPF platform. Each of the...
Tuesday, March 11th, 2008 Joshua Carlisle Topic: SharePoint for ASP.NET Developers Tuesday, March 11th, 2008, is the next meeting of the Pee Dee Area .NET User Group. SharePoint for ASP.NET Developers - Whether it be by choice or by company directive many traditional ASP.NET developers are being asked to implement and support SharePoint based solutions for their company. Previous versions of SharePoint only utilized the .Net Framework but SharePoint 2007 has been rebuilt from ground up on the .Net Framework. Many...
When a browser loads a page, most resources that are referenced in the page are downloaded in parallel. However, this is not true of JavaScript source files. When a <script src="... tag is encountered by the browser, a blocking call is made to retrieve the file. So, if you place your script reference at the top of the page, no rendering will occur until after the JavaScript file has been downloaded. Simply moving your script reference (if possible) to the bottom of the page is an easy way to help improve the apparent performance of your site. ...
In web products, we see more and more JavaScript being used. This is a direct consequence of rapid AJAX adoption and improved client-side user experiences. As an interpreted language, there is no compilation phase to optimize the actual code before deployment. All JavaScript code is transmitted in raw form (comments and all) from the server to the client. Since each JavaScript file must be transmitted along with the page request, it makes sense to optimize these files as much as possible. As an added bonus, it's nice to strip out comments since you may not necessarily want your customer to...
If you are as fortunate as I am, you have had the chance to work with StarTeam and CruiseControl.NET and you may have bumped into a fairly annoying issue. The StarTeam Source Control Block for CCNet does not have the option to automatically remove files that have been removed from source control. This is an issue because you will eventually be compiling code that should no longer be in your product. Of course, it probably won't be too long before your builds start breaking altogether. So how do you fix this problem? It's fairly easy to fix this problem using...