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

Delphi change the assembly code of a running process -

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

C++ 11 "class" keyword -