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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -