Hybrid button/combo box UI control in Silverlight - silverlight

There's a kind of hybrid UI pattern that is part button, part drop-down list. If the user clicks on the displayed action, then that action gets invoked as per a normal button; if they click on the arrow part, then the user can select from other available actions as with a combo box.
Two questions:
is there a name for this hybrid button/list UI pattern?
is there a native or 3rd-party implementation of this in Silverlight?

Telerik call it a Split Button

Related

How to rotate the tab focus within the popup in ADF

I have a popup with some input fields, links and buttons.
When I press tab, then the focus is moving to next element as expected.
After completing all the focus-able fields, tab focus moving to the Parent window's buttons, links, etc...
Is there any workaround to rotate the tab focus within the popup ?
I am working with ADF in JDev 11.1.1.7.0.
This is ADF framework bug. Hosted a bug with ADF Framework and they have accepted this as a bug.
I'll update this post once I get the resolution from ADF team.

How to make a wpf user control containing several user controls

I have created a WPF User control library. It has by default 1 user control in it. I added two more user controls on it. Added next back button to everycontrol. Now I am stuck here. What should I do to navigate from one user control to another? Can I do that in MVVM pattern? if yes then how?
Try downloading Telerik trial pack, they have a demo app (with source) that allows to browse their control. An once you have that demo app you can switch the user control dll in background when an update occurs.

Silverlight and the back button

Is there a way to override the behavior of the back button in the browser when using a Silverlight app?
Essentially what I want to do is use the browser's back button to close dialogs in my application. The dialog covers the whole screen and the user would be inclined to think they are on a separate web page.
Look to the following links:
Prevent Browser Back Button for Silverlight with Confirm Dialog.
Silverlight - Prevent users from losing changes by using the browser back button
Managing Silverlight 3 navigation
behavior

Custom Menu UserControl WPF

I have created a custom Menu User control in WPF Browser application. How can I achieve Navigation from one page to other page using this Custom Menu User control from Main page. The pages would be displayed in other Frame control of the Main page.
There are different options to achieve this. Can you provide more details on how you're loading your UI? (i.e. Prism regions/modules, Data Templates, etc.)
My general suggestion would be one of two options:
Use a mediator pattern to have the menu control notify the frame control. MVVM Light has an easy to use Messenger implementation, which is a great toolkit to explore, in my opinion.
Have both controls contained in one "parent" control (or view model if you're using MVVM) which can then communicate to the frame control since it contains both menu and frame controls.
HTH,
Ben

Silverlight App inside WPF WebBrowser?

I have a hopefully trivial question. Currently, my company works with a rather obscure language (SyngergyDE) and we need to call a SilverLight application inside our product. Unfortunately, this obscure 3rd party language only (currently) supports the opening of WPF screens. So with that said, I thought I'd develop a small WPF user control that contains a "WebBrowser" control and navigate to the silverlight application's URI. This works fine, and I'm able to see the SL application. Here is my question - we have a "Close" button on the SL application, and when users "Click" that button, we want the window to close.
Does anyone have any suggestions on how we can communicate the "Closing of the SL App" to the WPF user control, so that the entire WPF user control closes as well?
Thanks everyone,
-Tom
Attach an event handler to the WebBrowser.Navigated event.
Have the close button in the Silverlight application use:-
HtmlPage.Window.Navigate(new Uri("about:blank", UriKind.Absolute));
When the Navigated event fires in WPF with the url "about:blank" then its time to close the control.
Use Javascript and the HTML DOM as the glue here.
For example, when the SL app close button is clicked, have Silverlight trigger some Javascript code that sets a flag, or alternately, raises some HTML document event.
The WPF control could poll that flag in the HTML + Javascript, or alternately listen for that HTML document event, then close the user control.

Resources