Archive | Code! RSS feed for this section

Silverlight : Hooking up a Default Button Action

One of the typical things that you may want to accomplish on a particular UI implementation in Silverlight is to have a default button that is triggered through the use of the enter key. For this Silverlight provides support UI Automation through a set of peer classes that derive from AutomationPeer. Most controls contain an […]

Read more

BlogEngine.NET Settings Not Saving With Values Other Than Text

You may be using BlogEngine.NET 2.7 for your blogging solution like I am and have run into a rather sticky situation in which Settings values from non scalar entities are not saving the values of properties if they are anything other than text properties. This was a little frustrating to me since I have used […]

Read more

Simple WPF: ListBox Items Stretching To Fill Width

Here’s a fairly common question that can be solved fairly easily. Sometimes when you have a ListBox of Items you would like for those items to stretch the available width of the ListBox. Sounds pretty straightforward right? Given we have something similar to the below XAML : <ListBox x:Name="SearchResults" BorderBrush="{x:Null}" ScrollViewer.VerticalScrollBarVisibility="Visible" SelectedItem="{Binding SearchResultsSelectedItem}"> <ListBox.ItemTemplate> <DataTemplate> […]

Read more

Simple VS2010 Tool O’ The Day

Okay so just a quick post here to give some kudos to Skybladev2 for developing this cool little add-in that replaces the default C# outline behavior to allow it to add outlining for all braces {} in your code. I found it a little annoying the other day when I couldn’t collapse a couple of […]

Read more

#Telerik: Mastering the WPF RadWindow Dialog Boxes

RadWindow within the Telerik toolkit is an awesome resource for creating stylish windows. However, it also has the added benefit of providing you with some out-of-the-box implementations of dialog boxes. Specifically it comes with three separate ones.. Alert Confirm Prompt These are useful because they are already templated out with an image and everything. So […]

Read more

Code Smarter Not Harder #3: #CodeRush Property Setter Template for #CaliburnMicro

In our third installment, we will look at the latest version of CodeRush and how we can implement a custom template for Caliburn.Micro that takes care of a custom property setter for us. Now in the latest version of CodeRush there is already a template created fro MVVM implementations that creates a setter routine for […]

Read more

#Telerik : Complex Drop Down Boxes

Okay, so Telerik makes a fabulous suite of tools which include the RadComboBox control. Now if we want to take our previous example of a list of people the combobox works very well for selecting a list of items as shown in the the example below.   Now there is nothing fancy going on here. […]

Read more

#CaliburnMicro : WPF Double Click Event

So a lot of the time you may be wanting to create a scenario that is not quite out of the box…such as a user being able to double-click on an object that doesn’t natively support a double-click event. Caliburn.Micro does an awesome job handling messages on events but WPF has certain intricacies that  you […]

Read more

Code Smarter Not Harder #2: Simple Logging in #CaliburnMicro

Interesting enough today that I sat on a webcast concerning Caliburn.Micro that they talked specifically about how to troubleshoot your bindings and was surprised that the presenter did not seem to know about the ability to log from Caliburn.Micro. Not really surprising because unless you dig down into the framework code you would never really […]

Read more

Code Smarter Not Harder #1: Caliburn.Micro

I often give presentations at Code Camps and such on how to easily assimilate new Microsoft technologies into your everyday coding tool belt. However, I have decided to start a series in order to demonstrate how to use Microsoft & non-Microsoft implemented solutions …some free some paid for… which can definitely help you out with […]

Read more