Search found 50 matches

by Rick
21 Apr 2015, 18:47
Forum: General Discussion
Replies: 9
Views: 2509

Re: Anchoring and element sizing with different resolutions

So using grids inside of grids and Uniform stretching with images inside those grids I was able to get most of our HUD for the game setup so that it scales really well. Below are images of a 1024x768 and 1920x1080 and I think they scale nicely. https://dl.dropboxusercontent.com/u/1293842/inv_1024_76...
by Rick
21 Apr 2015, 03:07
Forum: General Discussion
Replies: 9
Views: 2509

Re: Anchoring and element sizing with different resolutions

Thanks for the tips. I'll check that one out and see if I have any questions. The Dock container looks interesting too.

I probably renamed the example but it's the one with 4 buttons (Normal, Press, Hover, Repeat) and 2 sliders at the bottom and like a progressbar or something on the right side.
by Rick
21 Apr 2015, 02:06
Forum: General Discussion
Replies: 9
Views: 2509

Element sizing with different resolutions [Updated w/pics]

So things are progressing for my trial version fairly nicely. I have event binding from Lua and they get to the generic functions and passed to Lua nicely (not all events implemented/tested yet). My next, and one of the biggest reasons for looking at a 3rd party GUI, is handling anchoring and contro...
by Rick
20 Apr 2015, 01:12
Forum: General Discussion
Replies: 11
Views: 2608

Re: Get element name in event handler

This worked great thanks!
by Rick
17 Apr 2015, 21:01
Forum: General Discussion
Replies: 4
Views: 1323

Re: Find storyboard object to bind events

Ah OK, that make sense. So really in my situation there is no point to have my game logo animation as a resource because it will never be shared. I'll have to look at that and see if I can just move it out of the resource section so I don't have to use FindResource() function.
by Rick
17 Apr 2015, 20:26
Forum: General Discussion
Replies: 4
Views: 1323

Re: Find storyboard object to bind events

Thank you very much. Maybe this is more of a general xaml question but what is the reason for this resource section? Does it need to exist? I was just following a tutorial on animation in blend and this is what the result was. The reason I ask is because I'm looking at that generic way of handling e...
by Rick
17 Apr 2015, 18:44
Forum: General Discussion
Replies: 11
Views: 2608

Re: Get element name in event handler

Thank you much!
by Rick
17 Apr 2015, 18:38
Forum: General Discussion
Replies: 11
Views: 2608

Re: Get element name in event handler

Oh, I'm sorry I didn't realize you wanted me to cast the sender object (use NsDynamicCast which I haven't ran into before). I was wondering how I was supposed to get this FrameworkElement object but understand now. I'll give this a try tonight. Thanks.
by Rick
17 Apr 2015, 18:29
Forum: General Discussion
Replies: 11
Views: 2608

Re: Get element name in event handler

OK So is the below a takeaway that you are looking at? I don't seem to have a way to know the control name (the sender) of the event. Although, I don't know if WPF in that case also returns the x:Name when doing System.Object.ToString We have to verify it and change the behavior if it is not the sam...
by Rick
17 Apr 2015, 02:49
Forum: General Discussion
Replies: 4
Views: 1323

Find storyboard object to bind events

[Had this in another thread but decided to break it into it's own and deleted the question in the other thread.] How would I do this for Storyboards? I tried: DependencyObject* object = uiRenderer->GetXAML()->FindName<DependencyObject>("LogoStoryBoard"); <Grid x:Name="window" xmlns="http://schemas.m...