Tuesday, 24 July 2012

Fix for Icons in WPF being blurry

 

Just found this article on stack overflow about why our WPF icons appear blurry.

http://stackoverflow.com/questions/5645274/image-in-wpf-getting-blurry

Turns out you can fix this by adding the following attached properties to your images

<Image Source="/LoginPanel;component/Icons/icoLogin.ico"
RenderOptions.BitmapScalingMode="NearestNeighbor"
RenderOptions.EdgeMode="Aliased"/>

No comments:

Post a Comment

How to find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...