when i use IActiveAware and INavigationAware ??

Topics: Prism v4 - WPF 4
Jul 4, 2012 at 11:43 AM

if i want to get focus to many opened pans how to do this ??

Developer
Jul 4, 2012 at 6:29 PM

Hi,

Sorry, I do not understand your question.

Can you provide us with some more information about your scenario and what you are trying to achieve?

Thanks,

Damian Cherubini
http://blogs.southworks.net/dcherubini

Jul 5, 2012 at 8:35 AM

i build wpf application with telerik controls .. i have RadDocking region can open many panes .. so when i open many Radpanels inside the RadDocking i want to set focus to Radpanel  from code behind .i use view injection with navigation in prism

Developer
Jul 5, 2012 at 6:29 PM

Hi,

Thanks for your explanation. As far as I know, Prism does not provide any specific guidance or functionality regarding the focus of UI elements as out of the box.

As a possible approach, you could inject the views in your RadDocking region by performing navigation requests and passing a specific parameter as part of the URL (for example, a "SetFocus" parameter.) Then you could implement the INavigationAware interface in the views and in the NavigatedTo method check the aforementioned parameter to determine if the view should be "focused" or not.

Also, I believe you might find the following thread useful, where different approaches and resources about a similar topic are provided:

Thanks,

Damian Cherubini
http://blogs.southworks.net/dcherubini