Jeffrey Palermo - TDD, DI, and SoC with ASP.NET MVC

Friday, July 18, 2008 9:24:17 PM (GMT Daylight Time, UTC+01:00)

Triangle .NET User Group
Wednesday, August 13, 2008 , 5:00 PM - 8:00 PM

INETA Speaker Jeffrey Palermo will be presenting at TRINUG August meeting in Raleigh, NC. Registration is required for this event which is being held at ECPI.

dive into how to design a presentation layer using ASP.NET MVC.  In today's industry, TDD, DI, and SoC are proven concepts that lead to more maintainable applications.  Along with demonstrating how to use these techniques with ASP.NET MVC, we will discuss just what concerns should be separated.  This talk provides a unique perspective on separation of concerns and uses TDD and DI to make it happen.  MvcContrib is used in all the demos.

TO REGISTER and get more info visit the TRINUG Website

Technorati Tags: , , ,

Posted in TRINUG  | Comments [0] 


Silverlight Control Contest

Tuesday, July 08, 2008 12:47:26 AM (GMT Daylight Time, UTC+01:00)

South Carolina Silverlight Superstar Page Brooks has put together an awesome contest with some great prizes!

"The Silverlight Control Builder Contest is all about contributing to the Silverlight Community. We hope this contest will serve as a catalyst for an expanding Silverlight control developer community."

I look forward to seeing the innovation from the community, and will hopefully get something of my own submitted.

Technorati tags: , ,

Posted in Silverlight  | Comments [0] 


Silverlight Styles, Skinning, and Visual State Manager

Monday, July 07, 2008 1:01:44 AM (GMT Daylight Time, UTC+01:00)

For those of you that attended by recent talk at the SoCal Code Camp in San Diego, here is the code sample that I used including my one page text file that I used instead of Power Point

image

It's called Code Camp, not Power Point Camp for a reason right? (No hard feelings against anybody planning to attend or previously attended a power point related event)

 

In this sample I start off taking a basic look at some of the controls available in Silverlight 2 (Beta 2 at this point) and then move into Control Styling.  In the SilverlightCotrolStyling project you can see that basic use of "Property Bag Styling", or defining a style to set the available properties of a control.

         <StackPanel Orientation="Horizontal" Margin="20,20">
            <Button  Content="Default" Height="55" Width="160"/>
            <Canvas Width="80" ><!-- Just used to take up some space --></Canvas>
            
            <!-- This second button is styled using the "FancyButtonStyle" Static resource from app.xaml-->
            <Button Content="Fancy" Height="55" Width="160" Style="{StaticResource FancyButtonStyle}"/>
         </StackPanel>

The result gives us a styled button, that can be used consistently throughout the application.

image 

In the next example, SilverlightControlSkinning I take a look at defining my own template to completely replace the visuals of a control, in this case a button.

        <StackPanel Orientation="Horizontal" Margin="50">
            <Button  Content="Button" Height="55" Width="160"/>
            <Canvas Width="80"></Canvas>
            <!-- This button uses the template "SubmitButtonTemplate" from app.xaml -->
            <Button Template="{StaticResource SubmitButtonTemplate}" Content="Submit"/>          
        </StackPanel>

This gives us complete control over the visuals of the control, while maintaining the existing logic.

 

image

 

In the Silverlight CustomControl project, I put a number of these concepts (Including a UserControl and Custom Layout Panel) together to create a new visual appearance for a list box containing planets and their associated info.

 

image

I will be posting some more details on specifics of the projects, but wanted to get it posted for those that attended. Please feel free to contact by with any comments or questions. I'll dive into the Visual State Manager project tomorrow.

 

 

Posted in  | Comments [0]