Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Global Event Handler? Pin
musefan10-Mar-09 5:09
musefan10-Mar-09 5:09 
AnswerRe: Global Event Handler? Pin
Dragonfly_Lee9-Mar-09 19:55
Dragonfly_Lee9-Mar-09 19:55 
QuestionChange property´s value description Pin
Sci_fie9-Mar-09 7:40
Sci_fie9-Mar-09 7:40 
AnswerRe: Change property´s value description Pin
musefan9-Mar-09 7:53
musefan9-Mar-09 7:53 
GeneralRe: Change property´s value description Pin
Sci_fie9-Mar-09 9:44
Sci_fie9-Mar-09 9:44 
AnswerRe: Change property´s value description Pin
Luc Pattyn9-Mar-09 9:58
sitebuilderLuc Pattyn9-Mar-09 9:58 
GeneralRe: Change property´s value description Pin
Sci_fie10-Mar-09 3:29
Sci_fie10-Mar-09 3:29 
Questionhow do i get to the style resources of a styled button ? Pin
Member 47374939-Mar-09 7:28
Member 47374939-Mar-09 7:28 
WPF APPLICATION NOT A WINDOWS FORM
i made a style of a button that got an image in his gridand i saved it to a ReasourceDictoinary.xmal
i use this style to create buttons in my application (i use an array of buttons)
the button content presentor gets a string from an xml file, that gives it name.
i like to give the source of an image from a string too(it should go to the image i put in the grid of the styled button)
i can put the image insted of a string in the content presentor but not both Confused | :confused:
help plz
<br />
 int i=0;<br />
 Button btNew = new Button();<br />
 btNew[i] = new Button[5];<br />
 btNew[i].Height = 132;<br />
 btNew[i].Width = 132;<br />
 BitmapImage bit =  new BitmapImage(new Uri(@"D:\BACKGROUND-.png", UriKind.Relative));<br />
 ResourceDictionary res = (ResourceDictionary)Application.LoadComponent(new Uri("Dictionary1.xaml", UriKind.Relative));<br />
 Style style = (Style)res["btn2"];<br />
 btNew[i].Style = style;<br />
 btNew[i].Content = "string from xml";<br />
 LayoutRoot.Children.Add(btNew[i]);<br />
 i++;<br />


i thought about somthing like that:

<br />
btNew[i].Style.Reasource["Image"] = bit;<br />

THANKS
QuestionDataGridViewComboBoxCell closes immediately [modified] Pin
eyalbi0079-Mar-09 7:22
eyalbi0079-Mar-09 7:22 
Questionshow videos in web service Pin
Javier Aballay9-Mar-09 5:52
Javier Aballay9-Mar-09 5:52 
AnswerRe: show videos in web service Pin
Nadia Monalisa9-Mar-09 5:57
Nadia Monalisa9-Mar-09 5:57 
QuestionRe: show videos in web service Pin
Javier Aballay27-Mar-09 3:10
Javier Aballay27-Mar-09 3:10 
QuestionRe: show videos in web service Pin
led mike9-Mar-09 5:58
led mike9-Mar-09 5:58 
QuestionFace Recognition Sample ! Pin
Mohammad Dayyan9-Mar-09 5:43
Mohammad Dayyan9-Mar-09 5:43 
AnswerRe: Face Recognition Sample ! Pin
Colin Angus Mackay9-Mar-09 5:46
Colin Angus Mackay9-Mar-09 5:46 
GeneralRe: Face Recognition Sample ! Pin
Mohammad Dayyan9-Mar-09 6:06
Mohammad Dayyan9-Mar-09 6:06 
AnswerRe: Face Recognition Sample ! Pin
dan!sh 9-Mar-09 5:50
professional dan!sh 9-Mar-09 5:50 
AnswerRe: Face Recognition Sample ! PinPopular
Ravadre9-Mar-09 6:16
Ravadre9-Mar-09 6:16 
QuestionGet whole content of a frame source from webbrowser Pin
Member 44178929-Mar-09 5:23
Member 44178929-Mar-09 5:23 
AnswerRe: Get whole content of a frame source from webbrowser Pin
Eddy Vluggen9-Mar-09 6:01
professionalEddy Vluggen9-Mar-09 6:01 
GeneralRe: Get whole content of a frame source from webbrowser Pin
Member 44178929-Mar-09 6:34
Member 44178929-Mar-09 6:34 
QuestionSigning a dll using Visual Studio 2008 in Windows Vista Pin
Nadia Monalisa9-Mar-09 5:14
Nadia Monalisa9-Mar-09 5:14 
QuestionDrawing multiple rectangles Pin
preethi_d209-Mar-09 5:13
preethi_d209-Mar-09 5:13 
AnswerRe: Drawing multiple rectangles Pin
dan!sh 9-Mar-09 5:38
professional dan!sh 9-Mar-09 5:38 
AnswerRe: Drawing multiple rectangles Pin
musefan9-Mar-09 5:47
musefan9-Mar-09 5:47 

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.