Image paths in XAML, BitmapImage in models?
Posted: 17 Jan 2021, 22:04
My image bindings aren't failing in Unity but they aren't drawing either. I'm binding to Uris that map to the images I want to show. I don't see anything this way.
I was wading through the samples and I think I see a certain convention that I wanted to confirm. Images with static paths defined directly in XAML can be sourced directly with text. For images influenced by a model, it looks like the image source is being set by a BitmapImage. Is this the convention? If so, I'd have to change my binding from a Uri property to a BitmapImage property. I wanted to confirm before refactoring for what might be nothing.
I was wading through the samples and I think I see a certain convention that I wanted to confirm. Images with static paths defined directly in XAML can be sourced directly with text. For images influenced by a model, it looks like the image source is being set by a BitmapImage. Is this the convention? If so, I'd have to change my binding from a Uri property to a BitmapImage property. I wanted to confirm before refactoring for what might be nothing.