Click here to Skip to main content
16,021,125 members
Home / Discussions / Game Development
   

Game Development

 
GeneralRe: problem Pin
Thomas Krojer4-Jul-11 21:05
Thomas Krojer4-Jul-11 21:05 
GeneralRe: problem Pin
kevinnicol8-Jul-11 8:09
kevinnicol8-Jul-11 8:09 
AnswerRe: problem Pin
Pravin Patil, Mumbai28-Jul-11 3:07
Pravin Patil, Mumbai28-Jul-11 3:07 
AnswerRe: problem Pin
expert_babaji16-Sep-11 5:43
expert_babaji16-Sep-11 5:43 
QuestionGreat forum, but not much going on... Pin
CDP180223-Jun-11 10:39
CDP180223-Jun-11 10:39 
QuestionRe: Great forum, but not much going on... Pin
AspDotNetDev23-Jun-11 10:58
protectorAspDotNetDev23-Jun-11 10:58 
AnswerRe: Great forum, but not much going on... [modified] Pin
CDP180223-Jun-11 13:03
CDP180223-Jun-11 13:03 
AnswerRe: Great forum, but not much going on... Pin
AspDotNetDev23-Jun-11 13:48
protectorAspDotNetDev23-Jun-11 13:48 
CDP1802 wrote:
My first guess now is, that I must wire up the event after loading the form by finding the event handler method with reflection.


Yep, that'd probably be the way I'd go.

As an alternative, you could give refer to the controls by their name. So, in your XAML you have this:
XML
<Button
    Name="MyButton"
    Width="50"
    Content="Click Me!" />


Then in your C# code, you have this:
C#
this.MainControl = SomeXamlHelper.LoadMyXaml(Config.XamlForThisClass);


Part of that LoadMyXaml method would load up all the sub-controls by their Name. You could then refer to those controls by their name and wire up the handlers in the C#:
C#
(this.MainControl.FindControl("MyButton") as AwesomeButton).OnClick += new EventHandler(SomeMethodOfTheFormToHandleThisEvent);


GeneralRe: Great forum, but not much going on... Pin
CDP180223-Jun-11 16:07
CDP180223-Jun-11 16:07 
GeneralIf it is of any interest... Pin
CDP180224-Jun-11 11:38
CDP180224-Jun-11 11:38 
AnswerRe: Great forum, but not much going on... Pin
Dalek Dave23-Jun-11 13:19
professionalDalek Dave23-Jun-11 13:19 
GeneralRe: Great forum, but not much going on... Pin
CDP180223-Jun-11 16:15
CDP180223-Jun-11 16:15 
QuestionHey guys, mind telling me what you think of my first actual game with updating of movement? Pin
andyharglesis17-Jun-11 21:05
andyharglesis17-Jun-11 21:05 
AnswerRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? PinPopular
Richard MacCutchan17-Jun-11 22:58
mveRichard MacCutchan17-Jun-11 22:58 
AnswerRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Pete O'Hanlon17-Jun-11 23:17
mvePete O'Hanlon17-Jun-11 23:17 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
andyharglesis18-Jun-11 11:49
andyharglesis18-Jun-11 11:49 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? [modified] PinPopular
enhzflep18-Jun-11 17:40
enhzflep18-Jun-11 17:40 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Pete O'Hanlon19-Jun-11 6:47
mvePete O'Hanlon19-Jun-11 6:47 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Paul Conrad26-Jun-11 22:16
professionalPaul Conrad26-Jun-11 22:16 
AnswerRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Ravi Sant19-Jun-11 22:29
Ravi Sant19-Jun-11 22:29 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
charles henington21-Sep-24 19:13
charles henington21-Sep-24 19:13 
AnswerRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Dalek Dave23-Jun-11 13:18
professionalDalek Dave23-Jun-11 13:18 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Pete O'Hanlon23-Jun-11 20:23
mvePete O'Hanlon23-Jun-11 20:23 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Dalek Dave23-Jun-11 21:01
professionalDalek Dave23-Jun-11 21:01 
GeneralRe: Hey guys, mind telling me what you think of my first actual game with updating of movement? Pin
Wayne Gaylard23-Jun-11 21:19
professionalWayne Gaylard23-Jun-11 21:19 

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.