By tag: template
0
kicks
Repository and Unit of Work T4 Template for Entity Framework
Two weeks ago I wrote the Revisiting the Repository and Unit of Work Patterns with Entity Framework post. One thing that I thought would be nice was to have an automatic code generation that will help me to build these patterns without sweating. So I sat down and created a T4 Template to auto genera...
0
kicks
String templates revisited
Sometimes I encounter a task - create some little template, that user can easily configure. Yeah, there are many powerful template engines, or you can use {0}, {1} placeholders, or even handwritten #Id#, #Name# placeholders. But this article describes yet another way - simple and descriptive string ...
0
kicks
T4CSS: A T4 Template for .Less CSS With Compression
Pain is often a great motivator for invention, unless you become dull to the pain. I think CSS is one of those cases where there’s a lot of pain that we as web developers often take in stride. Fortunately not everyone accepts that pain and efforts such as LESS are born. As the home page states Howev...
0
kicks
Better CSS with .Less
Too often in my web development past I have found myself wading through huge clumsy CSS files of several hundred lines or more, searching for that place where a particular class is defined or to try and identify what it is that is overriding something else. It can be quite a nightmare. However I rec...
0
kicks
Trips&Ticks: Do you know how you can use GroupName property of RadioBu
We can use GroupName property for mutually exclusive RadioButton but what can we do if we want to use mutually exclusive ToggleButton? ToggleButton doesn't have like ability...
0
kicks
Client Templating with jQuery
Client templating in Javascript can be a great tool to reduce the amount of code you have to write to create markup content on the client. There are a number of different ways that templating can be accomplished from a purely manual approach to a full templating engine. In this entry I'll look at se...
0
kicks
My version of Snoop (+ 2 features)
I think that every WPF developer knows that is Snoop. This is helpful tool (with source code (!!) ) for visual debugging of WPF's app at runtime. It is good but I was in need of some expansions.
1. I needed to see Template of controls in visual tree.
2. I needed to keep a/some couple (valu...
0
kicks
Correct use DataTemplateSelector.
n the many inherited from FrameworkElement in WPF contain a useful dependency property *TemplateSelector type of DataTemplateSelector. It can set our inherit from DataTemplateSelector class and override the method SelectTemplate(). This allow dynamic generate template for a content. Content-data we ...
0
kicks
ASP.NET AJAX 4.0 Template Example
Yesterday was released the first preview of ASP.NET 4.0. Lot's of cool stuff come with this release and with this article i will try to demonstrate the use of templates. The example is available for download Let's start...
0
kicks
A sneak peak at ASP.NET AJAX 4.0’s client-side templating
Hot on the heels of the recent ASP.NET AJAX roadmap, Bertrand and team have released a limited preview of the new AJAX functionality coming in ASP.NET 4.0.
Dave is giving a sneak peak about it
0
kicks
TemplateBinding: a bridge between styles and templates
How I use control templates and styles when creating a custom look for an application.
0
kicks
60+ template engines for .NET, JAVA and PHP
Template engines are designed to allow the separation of business logic from the presentation layer, which means allowing MVC architecture to the developers. With the aid of template engines, we are able to develop websites with different looks but the same logic or the core code. Template engines a...
0
kicks
Helpful C# Class File Template Change
A helpful hint on how to change the default class templates in VS2005.
0
kicks
I Heart Template Method
Template Method is the old skool design pattern that rocks the party that rocks the party that rocks the party. Here's why I love it in a way that isn't natural.
0
kicks
Creating a simple, reusable Windows Service (template code) - Part I
In this article, we'll see a way to create a simple Windows Service that can be reusable in that it can be used as the basis for any repeated operation that we would like to transform to a Windows Service.In other words, we can create our own assembly and then have the Windows Service call its entry...