Blog Archives

How to randomize sort order in dictionary using Linq

LINQ

I just came across need where I wanted to shuffle my dictionary with random order. Here is code snippet which uses Linq to randomize order of key/value pair you added. using System; using System.Linq; namespace MyApp { public class MyClass

Tagged with: ,
Posted in .net, C#, Linq

WPF Animation on Projection Property using code or XAML

xaml

If you try to define DoubleAnimation on Projection property then you will see lot of challenge. Here is How to fix. First make sure you create Name Attribute on Projection property like below for whatever UI element you want animate.

Tagged with: , , ,
Posted in .net, C#, Linq, SilverLight, WPF, XAML