path - Accessing folder in wpf app -



path - Accessing folder in wpf app -

i have wpf app folder structure:

in homecontroller, want access images folder. want store image in images folder homecontroller. how can this? tried using pack origin takes me bin.

this should trick:

pack://application:,,,/images/image.png

can used in xaml or in code. more detailed explanation can review this microsoft page it.

in code: uri uri = new uri("pack://application:,,,/images/image.png");

in xaml: <element attribute="pack://application:,,,/images/image.png"/>

wpf path

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -