resource dictionary confusion - C#