xamarin.forms

xamarin forms - two way binding with a picker - why cant I update a picker from code behind?

瘦欲@ 提交于 2020-11-29 23:51:21
问题 My products page only shows 'Product Name' and 'Quantity', quantity isdisplayed/ binded to the picker. For test purposes to get this working there is only 2 products loading from the VM. Wine 1 and wine 2. When the application loads, why is the picker empty with no value selected. When quantity for each item is set to 1, when loading from the VM Quantity is set to 1, the picker is just not updating when it initially loads, I know this because if I click on the empty picker and select 1.

xamarin forms - two way binding with a picker - why cant I update a picker from code behind?

陌路散爱 提交于 2020-11-29 23:50:55
问题 My products page only shows 'Product Name' and 'Quantity', quantity isdisplayed/ binded to the picker. For test purposes to get this working there is only 2 products loading from the VM. Wine 1 and wine 2. When the application loads, why is the picker empty with no value selected. When quantity for each item is set to 1, when loading from the VM Quantity is set to 1, the picker is just not updating when it initially loads, I know this because if I click on the empty picker and select 1.

String to Color Xamarin.Form

烂漫一生 提交于 2020-11-29 18:57:58
问题 How to convert string to color in xamarin.from , there isn't Color.fromName method ? string colorStr = "Blue"; BoxView objBoxView = new BoxView { HeightRequest = double.Parse(HeightRequest), HorizontalOptions = LayoutOptions.Fill, VerticalOptions = LayoutOptions.End, BackgroundColor = colorStr }; 回答1: Some examples using ColorTypeConverter with string values from the test TestColorTypeConverter in ColorUnitTests.cs in the Xamarin.Forms github: var input = new[] { "blue", "Blue", "Color.Blue",

How to bind animationview play with LottieForms in a MVVM architecture?

橙三吉。 提交于 2020-11-29 10:29:25
问题 So i work with a animation in a listview and i want to play it once whenever i want, so i want to control it. This is the library https://github.com/martijn00/LottieXamarin I have a class: public class Info { public bool ReadMoreIconVisibility {get;set;} } And xaml: <forms:AnimationView Animation = "animationone.json" Loop = "false" IsVisible="{Binding ReadMoreIconVisibiliy}"/> I can successfully work with my xaml to hide/not hide my animation. But how do i reach the AnimationView.Play()

Xamarin.Forms how open default email client on device?

試著忘記壹切 提交于 2020-11-29 08:31:11
问题 In Xamarin.Forms if you want to open the device's default browser by tapping a Label with a link, it's simple as this: private void WebUrl_TapGestureRecognizer_Tapped(object sender, EventArgs e) { var label = sender as Label; string url = "http://" + label.Text; Device.OpenUri(new Uri(url)); } Is there a similarly simple way to open the device's default email client with an open NewMessage with email address? private void EmailClient_TapGestureRecognizer_Tapped(object sender, EventArgs e) {

Xamarin.Forms how open default email client on device?

孤人 提交于 2020-11-29 08:30:23
问题 In Xamarin.Forms if you want to open the device's default browser by tapping a Label with a link, it's simple as this: private void WebUrl_TapGestureRecognizer_Tapped(object sender, EventArgs e) { var label = sender as Label; string url = "http://" + label.Text; Device.OpenUri(new Uri(url)); } Is there a similarly simple way to open the device's default email client with an open NewMessage with email address? private void EmailClient_TapGestureRecognizer_Tapped(object sender, EventArgs e) {

Xamarin.Forms how open default email client on device?

吃可爱长大的小学妹 提交于 2020-11-29 08:30:05
问题 In Xamarin.Forms if you want to open the device's default browser by tapping a Label with a link, it's simple as this: private void WebUrl_TapGestureRecognizer_Tapped(object sender, EventArgs e) { var label = sender as Label; string url = "http://" + label.Text; Device.OpenUri(new Uri(url)); } Is there a similarly simple way to open the device's default email client with an open NewMessage with email address? private void EmailClient_TapGestureRecognizer_Tapped(object sender, EventArgs e) {

How to save an image in SQLite in Xamarin Forms?

倖福魔咒の 提交于 2020-11-29 03:37:25
问题 I have the following two methods that handles taking photos from a camera and picking photos from a library. They're both similar methods as at the end of each method, I get an ImageSource back from the Stream and I pass it onto another page which has an ImageSource binding ready to be set. These two method work perfectly. The next step now is to save the Image in SQLite so I can show the images in a ListView later on. My question for the XamGods (Xamarin Pros =), what is the best way to save

How to create IPA file from visual studio for Xamarin Forms project

跟風遠走 提交于 2020-11-27 01:44:12
问题 I have Xamarin.Forms project Visual Studio 2017 in Windows 10 PC. My VS connected to mac machine over the network . I want to create IPA file from Xamarin forms project. In Google there is no single article available for this. How can I create IPA file from Windows machine? I have few additional doubts Is it possible to release app to App Store from Windows machine only or I need to use Mac physically If I need to use Mac then for which steps while releasing app to App Store We are releasing

How to create IPA file from visual studio for Xamarin Forms project

你离开我真会死。 提交于 2020-11-27 01:43:17
问题 I have Xamarin.Forms project Visual Studio 2017 in Windows 10 PC. My VS connected to mac machine over the network . I want to create IPA file from Xamarin forms project. In Google there is no single article available for this. How can I create IPA file from Windows machine? I have few additional doubts Is it possible to release app to App Store from Windows machine only or I need to use Mac physically If I need to use Mac then for which steps while releasing app to App Store We are releasing