Zoompanel image file formats
#2
ZoomPanel can be used to zoom and pan any WPF content.

In WPF Frame conrtrol is used to show other XAML pages.
If you would like to show png images in WPF you should use Image control - just set its Source property and put it inside ZoomPanel - for example:

<Image ... Source="Resources/Image.png"/>

This works when the image's Build Action is set to Resource.
If the file's Build Action is set to Contant and its "Copy to output directory" is set to "Copy if newer" or "Copy always" than the Source need to be "/Resources/Image.png".

WPF is using a so called Pack URI shema to specify resource names - see internet for more information. For example: http://stackoverflow.com/questions/34761...-resources
Andrej Benedik
  


Messages In This Thread
Zoompanel image file formats - by loulblade - 03-11-2016, 11:26 PM
RE: Zoompanel image file formats - by abenedik - 03-14-2016, 11:49 PM
RE: Zoompanel image file formats - by loulblade2 - 03-15-2016, 04:46 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)