Posts

Showing posts from June, 2012

WPF: Create your own style

Today found this cool tool: http://thematic.codeplex.com/

Using this tool you can create your styles, just in case you don't have the expert designer, you always wished you had, in your team.

Will try to create to my own and post it here soon :-)

WPF: Selecting a style at runtime

Image
Recently I got hold of around 6 styles and needed to try them to see which one fits perfectly in our application. We can either change the <Application.Resources>, add a <ResourceDictionary> to set the style or we could do it dynamically to see the results.

Where to get the styles from?

There are few style available on web. One is at http://wpfthemes.codeplex.com/
Or create your own using http://thematic.codeplex.com/

Using it in Application.Resources:

-> First we add the XAML file containing the style to the project.
We add the file “BureauBlack.xaml” to the project

-> In App.xaml of application we write:
<Applicationx:Class="StyleSelector.App"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"StartupUri="MainWindow.xaml"><Application.Resources><ResourceDictionarySource="BureauBlack.xaml"></ResourceDictionary></Application.Re…

WPF Links

Some useful links I found today:

-> The technique described in this link is useful when we want to bind to a view mode's property (or any parent's data context) from a data column. (we can't use RelativeSource there)
http://www.thomaslevesque.com/2011/03/21/wpf-how-to-bind-to-data-when-the-datacontext-is-not-inherited/

 -> Nice use of attached properties here:
http://www.thomaslevesque.com/2011/10/01/wpf-creating-parameterized-styles-with-attached-properties/

Ideal skills of a developer

A rough skill set of developer with more than 5 years of experience. Do you find anything missing? Practices:  Test-Driven DevelopmentContinuous IntegrationDomain-Driven DesignDependency Injection Agile (SCRUM) Project MethodologyDesign PatternsReSharperSCRUMTechnologies:  C# .NET 4.0ASP.NET MVC Framework Entity Framework or NHibernateSQL Server 2005, 2008WCFLINQOOP JavaScriptjQueryCSS/XHTMLUnit-TestingWorkflow FoundationDebugging using WindDbg, Perfmon, DebugDiagNant, Nant-Contrib