Click here to Skip to main content
15,906,816 members
Home / Discussions / WPF
   

WPF

 
QuestionCalling Dot Net 2 Webservice In Silverlight Pin
fasih19811-Sep-08 17:42
fasih19811-Sep-08 17:42 
QuestionWPF modularity question(s) -- hot swapping Pin
chaiguy13371-Sep-08 10:45
chaiguy13371-Sep-08 10:45 
AnswerRe: WPF modularity question(s) -- hot swapping Pin
Pete O'Hanlon1-Sep-08 10:57
mvePete O'Hanlon1-Sep-08 10:57 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
chaiguy13371-Sep-08 11:00
chaiguy13371-Sep-08 11:00 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
Pete O'Hanlon1-Sep-08 11:02
mvePete O'Hanlon1-Sep-08 11:02 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
chaiguy13371-Sep-08 11:05
chaiguy13371-Sep-08 11:05 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
Pete O'Hanlon1-Sep-08 11:10
mvePete O'Hanlon1-Sep-08 11:10 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
chaiguy13371-Sep-08 11:21
chaiguy13371-Sep-08 11:21 
Different is fine if it's an improvement, but I am really feeling lost that what I want to do is not immediately doable. I can understand when the designers (or "gods") tell you you can't do something the old way because the new way is clearly better (like, say, MVC) but I don't see that as being the case here, at least at my current level of understanding.

I mentioned in my rant in the lounge how un-obvious it is to build and share contextual menus between multiple sources, or really to handle any kind of dynamic generation--allow me to ask you this:

Suppose I have an objective encapsulation of a "command" that can be applied to an object, and I want those commands to appear in a contextual menu when the target object is right-clicked. The name, icon, tool tip, etc. should all be figured-out from the command itself, and not statically "baked into" the interface. Furthermore, the actual selection of commands should be dynamic, based on some method that runs.

I want each MenuItem to be dynamically generated based on these "rules", and constructed based on properties of the command (i.e. the name, icon, etc.), and then to populate that context menu with the generated items... but more complicated things I would like to use (as I mentioned in the original question) an abstract modular approach, where I can define the rendering of a particular object dynamically based on an abstract XAML object, such as a user control.

Is this still possible in WPF? Obviously it isn't in XAML, but tell me I can still perform this kind of dynamic generation in code. Maybe I have the wrong impression of WPF because I'm trying to do everything in XAML when I should be looking at the programmatic methods.

Your thoughts?

“Time and space can be a bitch.”
–Gushie, Quantum Leap

{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’)            Built with home-grown CodeProject components!
-”-”-

GeneralRe: WPF modularity question(s) -- hot swapping Pin
Pete O'Hanlon1-Sep-08 22:11
mvePete O'Hanlon1-Sep-08 22:11 
GeneralRe: WPF modularity question(s) -- hot swapping Pin
chaiguy13372-Sep-08 5:00
chaiguy13372-Sep-08 5:00 
Questionbasics of silverlight Pin
sri.net1-Sep-08 1:37
sri.net1-Sep-08 1:37 
AnswerRe: basics of silverlight Pin
Perspx1-Sep-08 2:50
Perspx1-Sep-08 2:50 
QuestionCalling Old Class Library in Silverlight Application. Pin
fasih19811-Sep-08 1:04
fasih19811-Sep-08 1:04 
AnswerRe: Calling Old Class Library in Silverlight Application. Pin
lneir12-Nov-08 19:03
lneir12-Nov-08 19:03 
QuestionHow to validate textboxes(i.e numeric,alphabet,email etc.) Pin
Nirav_Vyas31-Aug-08 20:42
Nirav_Vyas31-Aug-08 20:42 
AnswerRe: How to validate textboxes(i.e numeric,alphabet,email etc.) Pin
Syed Mehroz Alam1-Sep-08 1:21
Syed Mehroz Alam1-Sep-08 1:21 
QuestionXAML Power Toys Released Pin
User 27100931-Aug-08 16:14
User 27100931-Aug-08 16:14 
AnswerRe: XAML Power Toys Released Pin
Pete O'Hanlon31-Aug-08 22:22
mvePete O'Hanlon31-Aug-08 22:22 
GeneralRe: XAML Power Toys Released Pin
User 2710091-Sep-08 5:28
User 2710091-Sep-08 5:28 
AnswerRe: XAML Power Toys Released Pin
Jammer31-Aug-08 22:45
Jammer31-Aug-08 22:45 
AnswerRe: XAML Power Toys Released Pin
Jammer31-Aug-08 23:29
Jammer31-Aug-08 23:29 
GeneralRe: XAML Power Toys Released Pin
User 2710091-Sep-08 5:26
User 2710091-Sep-08 5:26 
GeneralRe: XAML Power Toys Released Pin
Jammer1-Sep-08 5:40
Jammer1-Sep-08 5:40 
AnswerRe: XAML Power Toys Released Pin
Pete O'Hanlon2-Sep-08 8:40
mvePete O'Hanlon2-Sep-08 8:40 
GeneralRe: XAML Power Toys Released Pin
User 2710093-Sep-08 13:21
User 2710093-Sep-08 13:21 

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.