Stories recently tagged with 'template'

Repository and Unit of Work T4 Template for Entity Framework(blogs.microsoft.co.il)

submitted by gilfgilf(2139) 1 year, 10 months ago

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 generate the same patterns. read more...

add a comment |category: |Views: 276

tags: another

String templates revisited(code-clarity.blogspot.com)

submitted by hkurabkohkurabko(85) 2 years, 4 months ago

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 formatters such as in ASP.NET AJAX 4.0: {Id}, {Name}, {Login}. This placeholders reflects public properties or fields of an object. read more...

add a comment |category: |Views: 6

tags: another

T4CSS: A T4 Template for .Less CSS With Compression(haacked.com)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 5 months ago

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 However, sometimes I just want to have static CSS files. So I decided to write a T4 template for .less. Simply drop it in a folder that contains .less files and it will generate a .css file for each .less file. read more...

add a comment |category: |Views: 78

tags: another

Better CSS with .Less(markembling.info)

submitted by crpietschmanncrpietschmann(11.3k) 2 years, 5 months ago

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 recently came accross .Less (pronounced "dot-less"), a port of the great Ruby Less library for .NET. This is a brilliantly simple-to-use solution to an often-painful situation. read more...

add a comment |category: |Views: 32

tags: another

Trips&Ticks: Do you know how you can use GroupName property of RadioBu(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 3 years, 5 months ago

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... read more...

1 comment |category: |Views: 60

tags: another

Client Templating with jQuery(west-wind.com)

submitted by rstrahlrstrahl(7226) 3 years, 7 months ago

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 several different approaches. read more...

add a comment |category: |Views: 327

tags: another

My version of Snoop (+ 2 features)(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 3 years, 9 months ago

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 (value and property) of control in visual tree. I implemented this issues for self purpose and want to impart this to all. read more...

add a comment |category: |Views: 26

tags: another

Correct use DataTemplateSelector.(rredcat.blogspot.com)

submitted by RredCatRredCat(299) 3 years, 9 months ago

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 can get a elementary binding. And now feature: we can use all binding (even that what refet to ElementName), except TemplateBinding, therefore RelativSourceMode doesn't equal TemplatedParent. read more...

add a comment |category: |Views: 118

tags: another

ASP.NET AJAX 4.0 Template Example(weblogs.asp.net)

submitted by djsoliddjsolid(429) 3 years, 10 months ago

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... read more...

add a comment |category: |Views: 76

tags: another

A sneak peak at ASP.NET AJAX 4.0’s client-side templating(encosia.com)

submitted by mosessaurmosessaur(5424) 3 years, 10 months ago

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 read more...

add a comment |category: |Views: 305

tags: another

TemplateBinding: a bridge between styles and templates(devlicious.com)

submitted by bennagebennage(1150) 3 years, 10 months ago

How I use control templates and styles when creating a custom look for an application. read more...

add a comment |category: |Views: 33

tags: another

60+ template engines for .NET, JAVA and PHP(plentyofcode.com)

submitted by bayarsaikhanbayarsaikhan(830) 4 years, 8 months ago

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 are lately known as not good ideas because recent platforms already have embedded template engines to separate views from logic, generate code etc... As you see there are very few template engines in .NET and Java comparing to the PHP. But they are still pretty useful tools for developers. read more...

add a comment |category: |Views: 12

tags: another

Helpful C# Class File Template Change(gabe19.blogspot.com)

submitted by j.montyj.monty(1868) 5 years, 2 months ago

A helpful hint on how to change the default class templates in VS2005. read more...

add a comment |category: |Views: 50

tags: another

I Heart Template Method(laribee.com)

submitted by laribeelaribee(720) 5 years, 2 months ago

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. read more...

add a comment |category: |Views: 8

tags: another

Creating a simple, reusable Windows Service (template code) - Part II(dotnetzone.gr)

submitted by sotirisfsotirisf(315) 5 years, 4 months ago

In part I, we examined how we can extend the Service Control methods by adding methods for all states of the Windows service in addition to the two methods provided by the designer. As you may remember, each of those methods called our own private Service Control method. Our private Service Control methods are implemented below: read more...

add a comment |category: |Views: 38

tags: another

Creating a simple, reusable Windows Service (template code) - Part I(dotnetzone.gr)

submitted by sotirisfsotirisf(315) 5 years, 4 months ago

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 point repeatedly over a period of time. By extending the code provided, you can even have multiple threads running at the same time. read more...

add a comment |category: |Views: 358

tags: another