Profile cover photo
Profile photo
Ollie Riches
23 followers
23 followers
About
Ollie's posts

Post has attachment

Post has attachment
WPF tips & tricks: Dispatcher thread performance
Not blogged for an age, and I received an email last week which provoked me back to life. It was a job spec for a WPF contract where they want help sorting out the performance of their app especially around grids and tabular data. I thought I'd shared some ...

Post has attachment
WPF anti-pattern: Docking panels
Developers love docking panels (especially Windows developers), they love the ability to 'dock' a panel to the left, top, right bottom of the window, and repeat this with windows inside windows inside windows ad infinitum... Shown below is the docking abili...

Post has attachment

Post has attachment
Styling WPF buttons for Image Viewer
A quick post on styling the next & previous buttons for an Image Viewer written in WPF, I'm using the MahApps libraries to give the UI a modern look & feel - they are available as nuget packages, I'm using the core and resources packages. The initial versio...

Post has attachment
UI freezing when CPU hits 100% constantly - follow up, part deux
My last post had a comment from @LordHanson about changing the thread priority via the ThreadStart parameter to see if this improved the performance. I made the following small change to include setting the thread priority: This improved the responsiveness ...

Post has attachment

Post has attachment
UI freezing when CPU hits 100% constantly - follow up
I was wondering if my previous post was re-written to remove the use of TPL and just use the standard threading classes in the framework. So the previous post was using the following code: When the limited concurrency scheduler is initialised with a number ...

Post has attachment
UI freezing when CPU hits 100% constantly
I've been working with a team where I've been putting a WPF UI over a set of implementations of a custom interface. Each implementation is a long running process which is handled in standard manner by creating an asynchronous Task<T> and displaying the resu...

Post has attachment
Modelling units of measure
I've been looking at writing an exercise app, and this would require some kind of units of measure for distance (as well as time). I could use an enum to represent the different types of units - metres, kilometres, yards, miles etc. But this seems to be lac...
Wait while more posts are being loaded