Refreshing the DataTemplateSelector

The DataTemplateSelector could be a cool tool for changing out which DataTemplate is used to display an element within a list.  I started using it for a media feature to figure out whether an element’s thumbnail should display as image, sound, or video. The Usual Typically, this process involves creating a DataTemplateSelector class like this:…

Refreshing images in XAML

The Image control used in XAML does not really seem like a big deal.  Place it in your XAML and bind the Source Property to your Data.  Might look something like this: <Image Source={Binding MyPath} /> However, there’s a case I came across that had me scratching my head today for a significant period of time.  I…

Thoughts on Model-View-ViewModel

So many methodologies on how to program.  Things were so simple 20-30 years ago.  Single file programs.  Then turning into multiple files, procedural.  Then OOP.  Then Winforms.  Then MFC.  Then .NET and all the C# goodness.  Then WPF.  And now MVVM. There’s pluses and minuses to advancement in technology.  On some occasions, I feel that…

Finding control templates

With UWP, I’m finding myself overriding the control templates of existing controls.  Creating these control templates from scratch is not even on the table as a realistic possibility.  So, coders typically use debug code to print out a control template, load a control in Blend, or what I’m now using: https://msdn.microsoft.com/en-us/library/windows/apps/mt299122.aspx Back in WPF, I do…

Using font icons in UWP

Microsoft has made the switch from old-school image icons to font icons that web technologies like Font Awesome and Glyphicons have been offering for years.  There is a set of fonts that Microsoft has included with all Windows 10 operating systems.  But the font that has most of the icons is Segoe MDL2 Assets.  Here,…

The elusive SplitView

I’m working on an UWP app and love the idea of SplitView.  However, useful documentation is few and far between.  Although I am currently nixing use of SplitView for my current project (UX choice), I want to note the best the web has to offer on the subject. A lap around the SplitView Control Guidelines for…