FlexPanel: A Flexible version of StackPanel

Panel is a seriously underrated feature of Microsoft’s XAML platform. Panel is the base class for basically all the controls in XAML which lay out children. How the children are laid out is up to the implementation of two simple methods in the sub classes. I’ve previously written…

Files uploaded with Device Portal gives “Access denied” at runtime

Now here’s a nice nut to crack: I was trying to write some code to read the settings file generated by IsolatedStorageSettings in Silverlight for Windows Phone. The file is named __ApplicationSettings and if it was located, it should be loaded, read and the contents parsed. Sounds simple enough.…

WrapPanel with full width columns

I wanted to have a grid of elements where the elements spanned the whole available width. Basically I wanted the same result you get when you set the ColumnDefinitions of a Grid to have equal width: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> <…

UWP ListView without highlighting and stuff

When designing one of my apps I wanted to use a ListView, but not have the items highlighted when the mouse pointer was hovering over them. You can see the highlighting below: After some googling I found that the highlighting happens in the ListViewItemPresenter, which turns out to be pretty…