Xamarin - Swap StackLayouts dynamically - xamarin.forms

Is there a way to replace an existing Stacklayout with another Stacklayout dynamically after clicking a button. What I am trying to do is display a search bar or entry filed next to a picker but it does not fit in stacklayout if a phone has a smaller screen. So I was hoping to add a button which will remove picker and display entry or search bar instead and when "cancel" button is clicked it should show picker again. Please help.

Related

BackButton Focus on title bar UWP

I Have built a UWP application with a back button in the title bar.I want to access the back button in title bar using TAB key. Like we could able to access other button control which are inside the application, Seems these button of outside of application control.
If we need to make the focus on to to back button using TAB key then we need to customize the tile bar. They are various links available for reference learn.microsoft.com/en-us/windows/uwp/design/shell/title-bar

WKInterfacePicker: handle a tap event

Trying to simplify the UX in a Watch application by getting rid of a redundant button which a user has to tap in order to choose a selected item in WKInterfacePicker and perform a next step. Just want to replace the tap on this button with the tap on a picker.
Cannot find such API in the class specification and the following quote haunts me:
The user interacts with a picker by tapping it, using the crown to scroll through items, and tapping again to select an item.
Everything points to the fact that an item can be selected by tapping on a picker and we can get an access to that action programatically. Has anyone faced this task?
To handle focus to picker did tap event use - pickerDidFocus.
If you want handle each tap now there are only one custom way. You need every time did focus picker programmaticaly call [picker resignFocus]
Put picker into group and set background border image to it if you want to customize focus. Set picker focus style to none.
just add a picker to your WKInterfaceController and create an IBAction to react on the pitch events:

Custom popup in JavaFX

Is there any way to create a custom PopUp in JavaFX? I can't use tooltip, since I would like it to appear on double click, also I would like a different style than the standard tooltip.
My demands for the popup are:
1. If the user double click, show the popup
2. if the user clicks outside the popup, hide it
See this guide on all the different types of popups.
Use Popup.
Popup popup = new Popup();
// add content (you can add as many nodes as you want)
popup.getContent().add(new Label("Hello Popup!"));
// show (move this to the double-click listener)
popup.show(primaryStage);
// hide (move this to the click listener)
popup.hide();

what is the solution for show different pop up with same button?

i have a choice list with different action (add file or add comment) and a button OK.
The button will show pop up according to action select. My question is how i do this in same button?
I create two pop up's but i don't know how to invoke them after.
You could change the text on the button per pop up window. Then when the button is clicked, pick your pop up based off of the text on the button. For example, initial state of the button says open, then when its clicked you display a pop up and change the button text to close. Then when the button is clicked again you close the window and change the button text to open.

How to keep view when changing tab in TabbedViewNavigatorApplication

I'm working on a flex 4.6 mobile project
and I found TabbedViewNavigatorApplication will destory the old view and create a new view every time change a tab.
For example, user entered some text at a textInput in View1, then user change to View2 tab and change back to View1 tab. at this time, the entered text is gone.
My question is
How to keep these view instance when changing tabs(just like iphone tabbar did)?
Did you try destructionPolicy="never"property in View component?

Resources