c# - Display an image from a file path in an image control -


I am trying to do something that should be simple - file control using image control, file path. Here's the XAML for image control:

    

Here is the converter:

  Public Seal Class PathToImageConverter: {Invite Public Object Convert (Object Value, Type TargetType, Object Parameter, String Culture) {Try {New bitmap image (new URI (string value)); } Hold {return new bitmap image (); }} Public Object Convertback (Type Object Value, Type Type, Object Parameter, String Culture) {New Non Imulated Expansion (); }}  

I think I am very much in the dark to understand it. I know that the path of the image is happening in FavPicPath because I can see it when debugging. This is a path example "C: \ Users \ John \ Picture \ OldPictures \ 2010-04-18 18th April 2010 Mulberry Flowers \ 18 April 2010 Mulberry Flowers 022.JPG"

I also try to put that The path in the image source of the direct control and still can not be found to show it

I tried several different ways to show the image to avoid taking any advantage on this page is. Thanks for the help, I constantly get from this forum.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -