Posts
413
Comments
230
Trackbacks
42
September 2011 Entries
October 2011 Chicago Information Technology Architecture Meeting

CITAG_Logo-02b

It is the last quarter of the year. So we are trying to get as much content to you as possible.  This month Joe Hummel will be presenting on functional programming.  While this is not a new concept I believe it is one that most people have not been exposed to.  I am really excited about having Joe bring us this topic.  Please come out and join us.

Register here.

Posted On Tuesday, September 27, 2011 6:42 AM | Comments (0)
Microsoft Is Dead, Long Live SalesForce?

A number of people returned from the recent Dreamforce conference.  One told me that this is now the largest IT conference. This information was followed up with the statement that Microsoft is missing the boat and will soon go the way of Novell.  This got me to thinking.  Does this statement hold any water?

Any large company definitely has the possibility getting tunnel vision.  Microsoft is not immune to these issues.  But is it possible that their culture might could as an anti-virus.

There is one thing that Microsoft has shown that they can do well time after time.  They may not be the first to the game, but they are very good at learning from what other companies invent.  Can you say Office, Internet Explorer.  They weren’t the first to have a word processor or browser, but that didn’t stop them dominating the market.

Given their history I think there is a good chance that Microsoft will learn from any advantage SalesForce may have and eventually accelerate past them.  Of course we will all have to watch and see.

Posted On Wednesday, September 21, 2011 1:32 AM | Comments (1)
September 2011 Chicago IT Arch Group Wrap-up

Matt Hidinger gave a high energy presentation around Onion Architecture for this month’s meeting.  It was great seeing the history of this architectural approach including its connection to Jeffrey Palermo.  Of course drinking from a fire hose takes a while to digest. 

Get the code and slides here.

Please join us for our next meeting and get involved in the Chicago Information Architecture community.

Posted On Tuesday, September 20, 2011 2:57 PM | Comments (0)
September 2011 Chicago Information Technology Architects Group Meeting

We are getting rolling for the fall at the Chicago IT Architects Group. This month we will have Matt Hidinger presenting on the topic of Onion Architecture. Please join us as we discuss the decomposition of architectures by registering below.

Register here

Posted On Tuesday, September 6, 2011 2:37 AM | Comments (0)
Laying Out Windows Phone 7 ListBoxes

A listbox can be a very boring display surface, but it doesn’t have to be.  Ok, so it may never be exciting.  At least we can create a more flexible output.

The first element you need to learn about his the ItemTemplate which is in turn composed of a DataTemplate. As this combo implies it is bound to each item/data row.  We will start organizing your base layout with a Grid control.

Within the Grid you can add a RowDefintions group.  A RowDefinition helps when you want components to be stacked for a particular data row.  The main attribute for a RowDefinition is it’s Height.  There is no name attribute, but we will get to that point toward the end of this article.

<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

The other main layout organization is kept in the ColumnDefinitions group.  ColumnDefinition elements are best used for defining the width. I only created column definitions where they differ from full width of the row.  In the case of this example the first of the two rows.

<Grid.ColumnDefinitions>
<ColumnDefinition Width="300"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>

Now that you have all of definition setup lets put it to use.  In this example we have a project list.  Each project has a name, a score and a description.  We will add a group of TextBlock controls for each data element.  They do not need to be in any particular order and I will show why next.

Now we can assign row and column associations to each TextBlock. Both rows and columns are assigned using a zero based index from the sequence they are defined in the XMAL.  At this point the layout is set.

Grid.Row="0" Grid.Column="0"

The last thing we need to do is Databind the components of the list.  Set the Text attribute of each TextBlock to an appropriate field of the object your are binding to each object.

Text="{Binding ProjectName}"

The final code is listed below.

<ListBox Height="330" HorizontalAlignment="Left" Margin="32,20,0,0" Name="listEvaluations" VerticalAlignment="Top" Width="397" ItemsSource="{Binding}" MouseEnter="listEvaluations_MouseEnter"> 
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300"/>
<ColumnDefinition Width="90"/>
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0" Name="ProjectName" Text="{Binding ProjectName}" FontSize="{StaticResource PhoneFontSizeLarge}"></TextBlock>
<TextBlock HorizontalAlignment="Right" Grid.Row="0" Grid.Column="1" Name="ProjectTotal" Text="{Binding Total}" FontSize="{StaticResource PhoneFontSizeLarge}"></TextBlock>
<TextBlock Name="ProjectDescription" Grid.Row="1" Text="{Binding Description}" FontSize="{StaticResource PhoneFontSizeSmall}"></TextBlock>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>

And here is what the result looks like.

image

There is a lot more you can do with this approach by using other controls in your template, but this should give you the basic concepts you need.

Posted On Friday, September 2, 2011 12:24 AM | Comments (0)

Tim Murphy

Tim is a Solutions Architect for PSC Group, LLC. He has been an IT consultant since 1999 specializing in Microsoft technologies. Along with running the Chicago Information Technology Architects Group and speaking on Microsoft and architecture topics he was also contributing author on "The Definitive Guide to the Microsoft Enterprise Library".



I review for the O'Reilly Blogger Review Program



Technorati Profile

www.flickr.com
Tag Cloud