Search found 6 matches

by sckriel
25 Mar 2014, 09:18
Forum: General Discussion
Replies: 7
Views: 2912

Re: Adding context menu using styles/resources

Thanks for that suggestion DigitalKarnage, I will definitely investigate such an option as my design moves forward.

sfernandez, I finally got it working using ItemTemplates. Thank you!
by sckriel
24 Mar 2014, 13:41
Forum: General Discussion
Replies: 7
Views: 2912

Re: Adding context menu using styles/resources

Thanks. That's exactly what I need. I can't get it to work, though. I created a custom class, inheriting from Window, with the following in the OnInit() function: ParentClass::OnInit(); Rectangle *rec1; Rectangle *rec2; rec1 = FindName<Rectangle>("Rectangle1"); rec2 = FindName<Rectangle>(&...
by sckriel
17 Mar 2014, 13:46
Forum: General Discussion
Replies: 7
Views: 2912

Re: Adding context menu using styles/resources

Thank you! All the elements that need the context menu are being created programatically. One of a handful of templates are applied. I have tried to include the ContextMenu in the template, but that does not work. (Only a small, empty menu appears). I then created a context menu for each element in ...
by sckriel
14 Mar 2014, 13:13
Forum: General Discussion
Replies: 7
Views: 2912

Adding context menu using styles/resources

Hi All, I was wondering whether it is possible to give several elements the same ContextMenu by defining it as a static resource and setting it with a style. Something like this: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft....
by sckriel
14 Mar 2014, 13:01
Forum: General Discussion
Replies: 2
Views: 2307

Re: Need help with Syntax

Thank You!

This has really helped me to get on the right track!
by sckriel
10 Mar 2014, 11:05
Forum: General Discussion
Replies: 2
Views: 2307

Need help with Syntax

Good Day, I am starting work on a GUI using Noesis. I have no experience with XAML or WPF and I'm having some problems with some of the syntax. The tutorials have helped me to understand the basics, but the moment I deviate from them I'm in trouble. I think I mostly know 'what needs to happen', I ju...