Click here to Skip to main content
15,884,298 members
Home / Discussions / WPF
   

WPF

 
Questionhosting problem from local host? Pin
Piyush Vardhan Singh16-Apr-09 23:47
Piyush Vardhan Singh16-Apr-09 23:47 
AnswerRe: hosting problem from local host? Pin
Mark Salsbery17-Apr-09 8:50
Mark Salsbery17-Apr-09 8:50 
GeneralRe: hosting problem from local host? Pin
Piyush Vardhan Singh19-Apr-09 21:09
Piyush Vardhan Singh19-Apr-09 21:09 
GeneralRe: hosting problem from local host? Pin
Mark Salsbery20-Apr-09 5:46
Mark Salsbery20-Apr-09 5:46 
QuestionTreeview in expander Pin
Ravi Mori16-Apr-09 20:01
Ravi Mori16-Apr-09 20:01 
AnswerRe: Treeview in expander Pin
pc.rajesh.singh17-Apr-09 5:03
pc.rajesh.singh17-Apr-09 5:03 
QuestionResource dls Pin
Christian Graus16-Apr-09 15:56
protectorChristian Graus16-Apr-09 15:56 
AnswerRe: Resource dls Pin
Eslam Afifi16-Apr-09 17:06
Eslam Afifi16-Apr-09 17:06 
I've just created a class library and added a resource file (from the project properties) and set its Access Modifier to public. The resource contained a PNG file. In the WPF project, I added references to the class library and System.Drawing (since it returns Bitmap).
Then loaded the image like this, var img = ClassLibrary1.Properties.Resources.Image1;
You can then use System.Windows.Interop.Imaging to convert to BitmapSource.
If you're talking about resource dictionaries, I found this[^] and I'll try tomorrow to see if there is another way to do it.

Eslam Afifi

GeneralRe: Resource dls Pin
Christian Graus16-Apr-09 19:55
protectorChristian Graus16-Apr-09 19:55 
AnswerRe: Resource dls [modified] Pin
Eslam Afifi17-Apr-09 2:20
Eslam Afifi17-Apr-09 2:20 
AnswerRe: Resource dls Pin
Oleg V. Polikarpotchkin16-Apr-09 17:41
Oleg V. Polikarpotchkin16-Apr-09 17:41 
GeneralRe: Resource dls Pin
Christian Graus16-Apr-09 19:54
protectorChristian Graus16-Apr-09 19:54 
GeneralRe: Resource dls Pin
Oleg V. Polikarpotchkin16-Apr-09 23:13
Oleg V. Polikarpotchkin16-Apr-09 23:13 
AnswerRe: Resource dls Pin
Mark Salsbery17-Apr-09 9:02
Mark Salsbery17-Apr-09 9:02 
QuestionHow bind 3 level master-detail scenario into datagrid? Pin
enochenoch2k16-Apr-09 14:51
enochenoch2k16-Apr-09 14:51 
QuestionWCF Issue Pin
Tauseef A16-Apr-09 8:31
Tauseef A16-Apr-09 8:31 
AnswerRe: WCF Issue Pin
Wes Aday16-Apr-09 9:23
professionalWes Aday16-Apr-09 9:23 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 11:06
Tauseef A16-Apr-09 11:06 
AnswerRe: WCF Issue Pin
Wes Aday16-Apr-09 12:08
professionalWes Aday16-Apr-09 12:08 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 14:30
Tauseef A16-Apr-09 14:30 
AnswerRe: WCF Issue Pin
Wes Aday17-Apr-09 3:18
professionalWes Aday17-Apr-09 3:18 
AnswerRe: WCF Issue Pin
Pete O'Hanlon16-Apr-09 12:18
mvePete O'Hanlon16-Apr-09 12:18 
QuestionRe: WCF Issue Pin
Tauseef A16-Apr-09 14:32
Tauseef A16-Apr-09 14:32 
Questiondata contract issu Pin
Tauseef A16-Apr-09 4:26
Tauseef A16-Apr-09 4:26 
Questionsilverlight made website slow very much Pin
Gaurav Mahajan16-Apr-09 1:32
Gaurav Mahajan16-Apr-09 1:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.