Change the build action to ‘Resource’.
Also your pack url is wrong. Either use:
Source="pack://application:,,,/Resource/UserCost2013Open16.png"
or simply
Source="/Resource/UserCost2013Open16.png"
More Related Contents:
- Setting WPF image source in code
- How to hide close button in WPF window?
- WPF Image to byte[]
- How to programmatically click a button in WPF?
- Problems overwriting (re-saving) image when it was set as image source
- Add parameter to Button click event
- Convert System.Windows.Media.ImageSource to System.Drawing.Bitmap
- Resize image in WPF
- Wpf Image Control blocks the file
- Passing data between WPF forms
- C# Change A Button’s Background Color
- Programmatically changing button icon in WPF
- Dynamically add multiple buttons to wpf window?
- How to use Resources.resx to link images
- Image file copy, is being used by another process
- How to Display a Bitmap in a WPF Image [duplicate]
- Binding Image.Source to String in WPF?
- How can I programmatically generate keypress events in C#?
- How to include external font in WPF application without installing it
- The calling thread cannot access this object because a different thread owns it [duplicate]
- Embed Unity3D app inside WPF application
- ComboBox- SelectionChanged event has old value, not new value
- Software rendering mode – WPF
- Binding to static class property [duplicate]
- caliburn.micro serialization issue when implementing PropertyChangedBase
- How to get DPI scale for all screens?
- Mvvm model ViewModel
- Binding Commands to Events?
- Is it possible to let my c# wpf program know if the user has a touchscreen or not?
- What is the difference between Property and Dependency Property