xamarin.forms.labs

Xamarin Picker selected item persisting on multiple pages

谁都会走 提交于 2020-08-06 06:20:12
问题 Question: Perhaps the challenge could be stated this way: How do I bind a single property in a content page to a globally stored variable in Xamarin Forms? Details: I am using the MVVM pattern. I have a navigation content page (1 of 3 such pages) with a Picker object which is populated dynamically from the collectionModel and said model is read/write. I am attempting to persist the SelectedItem (or index, whichever is most appropriate) thru all 3 content pages such that navigation from page

Xamarin Forms - Tabbed View?

房东的猫 提交于 2019-12-31 01:28:05
问题 I need to create a popup, in which there will be some tabs, each of them containing a listview. I know that there is a TabbedPage, but I need a "TabbedView" so I can build my popup using the Xlabs PopupLayout. How do I do this in Xamarin Forms? 回答1: You can create a custom control yourself. (imagine you want to create 3 tabs) For example you can have a view that it's a grid with 2 rows and 3 columns. 1st row you set the buttons set the RowHeight to auto or a size you want, and add each button

Xamarin.Forms Autocomplete CrossPlatform

一笑奈何 提交于 2019-12-18 02:43:26
问题 I am a newbie to Xamarin.Forms Platform. I hope you can help me in moving ahead. I want to have a control like autocomplete in xamarin.forms like below Can you please guide how can it be achievable in Xamarin.Forms? I want to achieve it with the Entry Control TIA 回答1: You haven't included what exactly you want, just some sort of autocomplete. I'll bullet point the Manual way to do it in general for a List of items: Use a TextBox to allow the user to input text. Use a List to gather all your

Xamarin Forms - Tabbed View?

孤人 提交于 2019-12-01 22:23:57
I need to create a popup, in which there will be some tabs, each of them containing a listview. I know that there is a TabbedPage, but I need a "TabbedView" so I can build my popup using the Xlabs PopupLayout. How do I do this in Xamarin Forms? You can create a custom control yourself. (imagine you want to create 3 tabs) For example you can have a view that it's a grid with 2 rows and 3 columns. 1st row you set the buttons set the RowHeight to auto or a size you want, and add each button to each column. On row 2 you can have a ContentView with RowHeight of * (to fill the rest of the space) ,

Xamarin Forms binding button Command to parent BindingContext

橙三吉。 提交于 2019-12-01 16:02:47
I'm writing Xamarin application and I found difference between WPF which I cannot cross. I'm using Xamarin Forms Labs to get Repeater control. I have a Repeater, which repeats DataTemplate: <DataTemplate> <Button Text="{Binding Text}" Command="{Binding CategorySelectedCommand}" /> </DataTemplate> But i would like to move command execution to my userControl Binding Context. Normally with WPF it would look like: Command={Binding ElementName=myUserControl, Path=DataContext.CategorySelectedCommand} But it does not have ElementName property. I have found that I could set BindingContext of my button

Xamarin.Forms Autocomplete CrossPlatform

淺唱寂寞╮ 提交于 2019-11-28 23:41:03
I am a newbie to Xamarin.Forms Platform. I hope you can help me in moving ahead. I want to have a control like autocomplete in xamarin.forms like below Can you please guide how can it be achievable in Xamarin.Forms? I want to achieve it with the Entry Control TIA You haven't included what exactly you want, just some sort of autocomplete. I'll bullet point the Manual way to do it in general for a List of items: Use a TextBox to allow the user to input text. Use a List to gather all your objects together with their searchable property such as the object Name. As the user types something in the

Camera access with Xamarin.Forms

耗尽温柔 提交于 2019-11-27 17:27:31
Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrieving the resulting picture would be great. Displaying a live view on the Xamarin.Forms page would be awesome! I already tried to use Xamarin.Mobile and Xamarin.Forms.Labs, but I couldn't get any solution to work on both platforms (focussing on Android and iOS for now). Most code snippets found on the web (including stackoverflow) are incomplete, e.g. not showing the implementation of an IMediaPicker object or where to anchor the

Camera access with Xamarin.Forms

∥☆過路亽.° 提交于 2019-11-26 18:59:24
问题 Is anyone able to give a short, self-contained example on how to access the camera with Xamarin.Forms 1.3.x? Simply calling the native camera application and retrieving the resulting picture would be great. Displaying a live view on the Xamarin.Forms page would be awesome! I already tried to use Xamarin.Mobile and Xamarin.Forms.Labs, but I couldn't get any solution to work on both platforms (focussing on Android and iOS for now). Most code snippets found on the web (including stackoverflow)

Xamarin Forms - Resize Camera Picture

做~自己de王妃 提交于 2019-11-26 18:23:18
问题 Someone helped me get this code for taking a picture using xamarin forms labs camera: picker = DependencyService.Get<IMediaPicker> (); task = picker.TakePhotoAsync (new CameraMediaStorageOptions { DefaultCamera = CameraDevice.Rear, MaxPixelDimension = 800, }); img.BackgroundColor = Color.Gray; Device.StartTimer (TimeSpan.FromMilliseconds (250), () => { if (task != null) { if (task.Status == TaskStatus.RanToCompletion) { Device.BeginInvokeOnMainThread (async () => { //img.Source = ImageSource