I have a grid view which has multiple items.
Each Item is a Webview. Now My issue is that I have a ComboBox above the GridView. When I select Combobox the drop down hides behind the GridView item (i.e Webview). Now I cannot use a WebViewBrush since I have multiple WebView items inside the grid view. Any suggestions?
XAML UI is always behind a WebView window - this is a typical airspace issue. You have to use WebViewBrush for any WebViews that might obscure your XAML controls. Some alternatives include modifying your UI layout - e.g. going to a separate page to display your selector control or moving ui elements about so they don't collide or implementing all of it in HTML.
Related
I'm new to Xamarin Forms, and am trying to create a page that has 4 sections of read-only data, one of which is a list of clickable items. In addition, the top section needs to be stationary (always on top).
My initial attempt was to use various StackLayouts, with a ScrollView to control this. There was much advice against putting a ListView in a ScrollView. After some struggles I got it to work, but then ran into an odd app crash on the ListView binding the second time a page is loaded (simple labels with the same binding are fine).
So my question is, should a ListView be used when many other elements are also on the page? If so, should the header and footer of the ListView contain the other controls, effectively making the ListView the root control? Is there an alternative suggestion to get a bound, clickable list on a page with other controls? Or maybe I'm running into difficulty simply due to the ListView needing to be in a ScrollView?
I have a listbox in the xaml page.I have created three tabs(Normal text boxes) on the top.If clicked on tab 1 or tab 2,it displays an expander view in the listbox as its item.I want to create a simple listbox for the 3rd tab,i.e, no expander view.Is it possible in wp8?
I not sure that I understand your question, but I think that you could use a Pivot control to achieve the results you want to get.
Using a Pivot, you could get different "tabs" and each tab could have his own controls. Hope this helps
I have a ListPicker (from Telerik's Rad Controls suite) in PopUp Mode (with around 200 elements) with its visibility set to Collapsed. I want to open when it when I press a button, instead of when I press the control itself.
Basically I'm asking if there's any way of programatically opening a UI element in Windows Phone (something like Control.Open() in the code behind).
The context for my question is the following:
as you know, the selected item of a list picker is displayed in the page containing the control.
users can click on this item to activate the control.
I want to display only one of the properties in the page containing the control (for example MyObject.Name instead of the entire MyObject), but I can't do this because the SelectedItem and ItemsSource need to be of the same type.
I'm thinking of styling a button to look identical to the ListPicker's selected item.
I need to open the ListPicker programatically when I click on the button, I'll bind the button's text to MyObject.Name
Alternatively, I could just do a data template for the way the list picker is displayed, but I'm not convinced it's possible.
Found the answer. It seems Telerik's List Picker allows you to set both an ItemTemplate for displaying items in the actual page, and a PopupItemTemplate for displaying items when the list is expanded. Both are Data Templates, so you can use Binding for values.
I need to load a ListView entirely and get an UIControl inside each ListItem even if the item view is not displayed on the screen.
I tried the ChildViewAdded event, but it is raised only when the ListItem is displayed on the screen.
So, I need a way to prepare my UI ListView programmatically before displaying it.
Thanks in advance for your help.
Quick answer - if you need a real View for each item in your list then you don't want to use a virtualized control like a ListView.
Instead you can use repeated custom views inside a vertical LinearLayout inside a ScrollView.
If using mvvmcross, you may find a MVXBindableLinearLayout helpful to do this - it has an ItemsSource and a Template just like the MvxBindableListView.
I've no idea whether what you are trying to do makes sense, but the above should help you do it if you want to!
Don't try using a linear layout for lists with lots of items - you'll run out of resources.
I have a list of User Controls in a screen in my WP7 app. Each User control has a header text block, a listbox and a button. And the listbox in the usercontrol will have it's height bound so as to show the complete height. Now when I try to scroll the list of UserControls, the manipulation events are being consumed by the ListBox inside.
One solution I can come up with is adding all the controls in a single ListBox and removing the UserControl. This might be weird. But that is my only option as of now. And also this is letting the ListBox item's height being recalculated. which gives a jumpy effect.
Is there better solution? Maybe we can disable the manipulation events on the listbox and allowing only tap event on the ListBox items?
First of all you need to disable inner list scrolling. Set ScrollViewer.VerticalScrollBarVisibility="Disabled" in xaml.
To disable manipulations on inner list, you should use ItemsControl instead of ListBox. Recent question about this: ListBox inside ListBox and selectedItem / Events