Today I wanted to do a pretty simple thing - use UWP x:Phase on an Image object inside a DataTemplate, but also set the DecodePixelWidth/DecodePixelHeight properties on a BitmapImage source to ensure that the decoded image width/height is optimal. Turns out, it's not exactly such a simple thing, so I wrote a couple of attached properties to make it simpler. This is what I tried to do: <Image x:Name="Image" Stretch=…