I have a bitmap object that is not a static resource. Typically, with image binding in WPF, you can snap to a string path. However, I do have a dynamically created bitmap object that I would like to snap to. Is it possible to do something like:
<WrapPanel x:Name="imageWrapPanel" HorizontalAlignment="Center"> <Image Source="{Binding Material1}" Margin="10" /> <Image Source="/NightVision;component/Images/concrete_texture.tif" Margin="10" /> </WrapPanel>
And in the code behind the file, I have a public accessor:
public Bitmap Material1 { get { return new Bitmap() } }
Above obviously doesn't work, is there a way to do something like this?
source share