Custom Controls Everywhere

There are 10 entries for the tag Custom Controls Everywhere
Custom Controls Everywhere – In XAML

Earlier this year, I talked about how I hadn’t yet seen the need for using the Custom Controls Everywhere approach in XAML.  I said, “Just use the controls you have, apply styles, and attach properties and behaviors.  And if you find a case where this falls short, let me know!” Well, today, Rick Strahl had a tweet: What's the best way to provide cell padding in the Silverlight grid control? Apply margins to all cell child controls? To which I replied: Yeah, unfortunately, margins on all child controls. Or,...

posted @ Thursday, December 11, 2008 9:44 PM | Feedback (0)

Custom Controls Everywhere and ASP.NET MVC, part 3

Disclaimer: This article and the ideas presented are based on 7-month-old thoughts that have been undeveloped.  While I expect the ideals disclosed are still valid, they might be totally off-base.  I wanted to finish writing this series and share my thoughts, but I've been unable to keep up with the ASP.NET MVC framework.  Please check here for more information. Another Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.  I am not involved in the ASP.NET MVC project. This article discusses how I think the ASP.NET MVC...

posted @ Saturday, September 20, 2008 6:10 PM | Feedback (2)

Custom Controls Everywhere and ASP.NET MVC, incomplete

I appreciate all of the interest in this article series and I apologize that I've not finished it yet.  I'd like to offer my excuse, although you might not see it as a valid one.  And I'll share my plans for completing the article series. When I started writing this series of articles, I was examining ASP.NET MVC for use on my current project.  I was also about to interview at Microsoft, for what I thought could be a position on the ASP.NET MVC team.  With that combination, it was important that I get pretty familiar with what the team was...

posted @ Sunday, September 7, 2008 1:28 AM | Feedback (0)

Custom Controls Everywhere is Cheap!

I've noticed that I get quite a bit of traffic on my blog for my "Custom Controls Everywhere" posts.  This page in particular has driven a bunch of people to Custom Controls Everywhere and ASP.NET MVC, Part 0.  The response to the link is actually consistent with a question I've gotten a couple of times in email and in person too.  In fact, it's also the gut reaction whenever I tell someone to use custom controls everywhere--something alluding to it costing too much. I think what I've failed to lay out with my custom controls everywhere sermon is that...

posted @ Sunday, September 7, 2008 12:56 AM | Feedback (0)

Custom Controls Everywhere – In XAML

You’ve heard me preach it before.  Custom Controls Everywhere, damn it!  It’s my mantra, my MO, one of my core beliefs for application development. As I started getting used to XAML, I kept thinking about how I’d implement custom controls everywhere and utilize the pattern in the same way I have before.  Since the concept applies equally well to ASP.NET and WinForms, I of course assumed that I would want to apply it to XAML (either Silverlight or WPF) too.  However, while actually doing my work in XAML, I restrained from creating custom controls right off the bat, instead...

posted @ Monday, July 7, 2008 5:05 PM | Feedback (1)

Custom Controls Everywhere Saves the Day

I just cannot advocate Custom Controls Everywhere strongly enough.  I find benefits for it all the time.  It saved the day again today.  Self-validating controls played into this one too. Here's what a co-worker reported to me a few minutes ago: Ron Ellis says (1:45 PM): on the textbox format = decimal Ron Ellis says (1:46 PM): if you enter just a "-" it bombs To which, I replied, "Lovely.  It sounds like our...

posted @ Thursday, March 13, 2008 2:11 PM | Feedback (1)

Custom Controls Everywhere and ASP.NET MVC, part 2

This is part 2 of a 4-part series discussing a concept that I've long called "Custom Controls Everywhere" and how ASP.NET MVC affects it.  In part 1, we went through a discussion of how ASP.NET MVC took away the capability to use Custom Controls Everywhere.  But in this article, we'll demonstrate a way to resurrect the concept within MVC. Defining Our Sample, Using ASP.NET MVC In order to properly demonstrate how Custom Controls Everywhere can be achieved within MVC, we need to set our baseline.  We're going to use a pretty basic sample: a screen that offers a login form as well...

posted @ Saturday, March 8, 2008 4:25 PM | Feedback (22)

Custom Controls Everywhere and ASP.NET MVC, part 1

This is part 1 of a 4-part series discussing a concept that I've long called "Custom Controls Everywhere" and how ASP.NET MVC affects it.  This article will explain why I advocate the pattern and how ASP.NET MVC takes the capability away. What does Custom Controls Everywhere mean? When I start my explanation of Custom Controls Everywhere, many listeners think I'm off my rocker.  At the least, they think I'm creating a bunch of extra work for nothing.  But once those listeners hear me out, as with some of my other ideas, the critics come to realize the benefits.  I preface the definition...

posted @ Sunday, February 24, 2008 6:05 PM | Feedback (5)

How to safely change 13,000 lines of code, part 2

Frankly, this isn't going as well as I hoped it would.  I'm pretty happy with the naming convention that I ended up with, but the search and replace isn't going so well to this point. I had estimated that 30% of the usage of the previous methods would be incorrect.  But then I stated that was a pessimistic estimate.  I don't have numbers, but so far it feels like we were wrong more often than we were right.  What's kind of reassuring is that in most places where mistakes were made, 2 mistakes were made, and, well, 2 wrongs...

posted @ Friday, February 15, 2008 11:28 PM | Feedback (0)

Custom Controls Everywhere and ASP.NET MVC, part 0

As I referenced last night, I've been advocating "custom controls everywhere" for a long, long time.  I don't approve of using the <asp:Textbox> control or <asp:DataGrid> control, or pretty much any others.  Instead, these controls should be inherited, and the derived controls should be used. There are many reasons for doing this, and I've given a few user group talks on this and I've offered tidbits in my blog over the years.  But I've been thinking about how ASP.NET MVC will hinder my ability to use custom controls everywhere, and what I should do about that. The problem is that ASP.NET MVC...

posted @ Wednesday, February 13, 2008 11:53 AM | Feedback (10)