Tag Archives: WPF

Asynchronous UI development in WinRT, Silverlight, Windows Phone & WPF with async/await keywords of C# 5.0

This is a reblog of my article from http://labs.vectorform.com C# 5.0 comes with the new async/await keywords that make asynchronous code easier to write, read and maintain. This is very nice if you have properly declared methods that support this … Continue reading

Posted in CodeProject, Computers and Internet | Tagged , , , , , , | Leave a comment

GridSplitters – Part 3: Limiting the Range of a GridSplitter

Sometimes I look at what people search for when they hit my blog and see some trending questions that don’t seem to have easily findable answers. This one seems to be related to how to set the limit for moving … Continue reading

Posted in Computers and Internet | Tagged , , , , , | Leave a comment

“Moving GridSplitter with code behind” is not the right question

Occasionally I see people searching for how to move the GridSplitter with code behind… This is not the right question. You can in theory move the GridSplitter itself with code – it is just a control that is hosted in … Continue reading

Posted in Computers and Internet | Tagged , , , , , | 1 Comment

Fixing WPF GridSplitter

Introduction While working on a WPF tool for work – I was creating ColumnDefinitions in a Grid dynamically (with code) and also dynamically adding GridSplitters to allow users (myself) to resize the columns. Well, it all worked OK, except for … Continue reading

Posted in Computers and Internet | Tagged , , , , , | 4 Comments

Windows RunTime – Timeline of Influences

(Note – while I work for Microsoft, my team was not involved in developing the technologies mentioned below and the thoughts and opinions on this blog are mine only) This is what Microsoft showed at Build: Microsoft at its spirit … Continue reading

Posted in Computers and Internet, Uncategorized | Tagged , , , , , , , , , | Leave a comment

Using attached properties to style RowDefinitions of a Grid in WPF

The below sample shows how you can use attached dependency properties to style a Grid’s RowDefinitions. This specific case shows how a single property can be set to specify the number of rows in a Grid.

Posted in Computers and Internet, Uncategorized | Tagged , , , , , , | 1 Comment

Binding to properties of a custom property in WPF, Silverlight 4 or Windows Phone 7

I was trying to create a UserControl for Windows Phone 7 yesterday and I wanted to enable specifying a  collection-type property that I could configure in my View/XAML file. I have registered a DependencyProperty, but since I have not done … Continue reading

Posted in Computers and Internet, Uncategorized | Tagged , , , | 2 Comments

Fixing full-screen WPF windows

2011-12-13 – Note – if you got here trying to find out how to create a full-screen WPF window – you need to set WindowState=”Maximized” and WindowStyle=”None”. This post is about a workaround for an issue that will sometimes arise … Continue reading

Posted in Computers and Internet, Uncategorized | Tagged , , , | 5 Comments