Posts Tagged ‘Silverlight’

Coping contents of Template Column in data grid to clipboard

August 18th, 2010

There are some nice new features (coming from Silverlight 2) in the latest versions of Silverlight – being able to copy rows in a DataGrid via the familiar Control+C for instance.

But I noticed something strange: some columns were blank when I pasted them into Excel (or notepad). The blank columns were always DataGridTemplateColumn and that made sense. How could it know what to copy from one or more controls?

Turns out this is really easy to fix if you are using data binding. All you have to do is bind the ClipboardContentBinding property on the DataGridTemplateColumn with the value you want copied for this column.

For example:

<data:DataGridTemplateColumn Header="Name" ClipboardContentBinding="{Binding Name}" SortMemberPath="Name">
        <HyperlinkButton Content="{Binding Name}" Margin="3" />

And that’s it. Control+C copy works as desired.

.NET, Silverlight ,

Strategic Command Featured on!

August 7th, 2009

Strategic Command, the popular Silverlight game, has been added to the Silverlight showcase on the official Microsoft Silverlight site,

Check it out under Casual Games at:

News, Silverlight ,

Feeling the Func!

July 31st, 2009

We were recently featured on Michael Neel’s FuncWorks “FeelTheFunc” podcast. We touched on a range of topics from iPods to Silverlight contests to XNA. There was also a little behind-the-scenes discussion on our popular Silverlight game, Strategic Command.

If you’re interested in our current projects, we give a few exclusive details about what we’re working on and what’s coming up in the future!

Check it out here:

Strategic Command on SilverArcade:

General , , ,