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

Php operator `break` doesn't stop while -

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

vim: Search & replace -