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
Post a Comment