xamarin.forms

Xamarin Forms - Zxing QR Scanner - How can you toggle the camera being used?

前提是你 提交于 2020-06-13 06:37:39
问题 When I start scanning for barcodes using a ScannerView in Xamarian forms, it automatically goes to the back camera on the phone. I would like to make a toggle camera button that toggles the camera from back to front and vice versa. Is this possible using zxing for xamarin forms? My options look like this: code: //Set the scanner options. ScannerView.Options = new ZXing.Mobile.MobileBarcodeScanningOptions() { UseNativeScanning = true, AutoRotate = true, PossibleFormats = new List<ZXing

Xamarin Forms - Zxing QR Scanner - How can you toggle the camera being used?

∥☆過路亽.° 提交于 2020-06-13 06:37:06
问题 When I start scanning for barcodes using a ScannerView in Xamarian forms, it automatically goes to the back camera on the phone. I would like to make a toggle camera button that toggles the camera from back to front and vice versa. Is this possible using zxing for xamarin forms? My options look like this: code: //Set the scanner options. ScannerView.Options = new ZXing.Mobile.MobileBarcodeScanningOptions() { UseNativeScanning = true, AutoRotate = true, PossibleFormats = new List<ZXing

Xamarin Forms Collapsable StackLayout

自作多情 提交于 2020-06-12 06:11:28
问题 I'm trying to implement a kind of collapsable StackLayout. Every tine the user clicks the button, it expands or collapse the stacklayout to show/hide more details. I was able to achieve more/less this with the code below, but it doesn't look right and the effect isn't great, because it grows immediately and I'm applying the effect to other element. Do you have any suggestions to do this, I'm using xamarin Forms? XAML <?xml version="1.0" encoding="utf-8" ?> <StackLayout xmlns="http://xamarin

Remove navigation bar on Xamarin Forms app with Caliburn.Micro

混江龙づ霸主 提交于 2020-06-11 16:14:47
问题 When using the FormsApplication base class with a brand new Xamarin.Forms app using Caliburn.Micro, I end up with an empty navigation bar at the top of my screen. I assume it's being created by Caliburn.Micro somehow, because an out-of-the-box Xamarin.Forms app doesn't have that. Is there any way I can use Caliburn.Micro with Xamarin.Forms without this navigation bar? 回答1: I have not used Caliburn.Micro, but I am assuming that it is wrapping your page with a NavigationPage , as what you

Why can't I post from my Xamarin Frorms app to my .net core web api

情到浓时终转凉″ 提交于 2020-06-09 05:51:09
问题 I have a post method that sends json to my api. My endpoint works in postman so my problem is in my xamarin post request: async void RegisterUser(object sender, System.EventArgs e) { string URL = "http://blablahblah:51001/register"; HttpClient client = new HttpClient(); var model = new RegisterViewModel { Email = EntryEmail.Text, FirstName = FirstName.Text, LastName = LastName.Text, Password = EntryPasswrd.Text }; var content = JsonConvert.SerializeObject(model); await client.PostAsync(URL,

Xamarin ios simulator failed to install

萝らか妹 提交于 2020-06-01 07:50:30
问题 When I try to run the application on ios I'm getting this error is occur. I'm windows user can anyone please help me Please check following error Failed to install //users/library/apple/cachee/Xamarin/mtbs/builds/project.ios/28dsdkjw323wm323dsddsdn232k23/bin/iphonesimulator/debug/project.ios.app to DO3c105/Failed to lanuch this simulator 回答1: I would give you some suggestions: 1.Delete your app in the simulator, reset the simulator, delete the obj and bin folder, clean and rebuild the project

How do `Clicked` and `Command` work when they are both used on the same Xamarin view?

三世轮回 提交于 2020-06-01 05:58:50
问题 I have a Command (in my viewModel) and a Clicked event (in my code behind) attached to the same view in my XAML , and I am noticing some weird results. I am doing this because I would like a view to receive focus right after the code for the command in executed: Do the Command and the Clicked event execute synchronously or asynchronously ? Are there any adverse effects to using this approach. Is there a better way I could handle this? 回答1: Yes, the Click events are executed asynchronously.

How to retrieve a single record from Firebase Real Time Database in Xamarin-Android?

拈花ヽ惹草 提交于 2020-06-01 05:47:04
问题 I need to read only one entity from Firebase Realtime Database and convert the result into a C# class matching the structure, but I haven't found a solution clear. Having this tree: { "characters" : { "c1" : { "Email" : "peter.pan@example.com", "LastName" : "Pan", "Name" : "Peter" }, "c2" : { "Email" : "harry.potter@example.com", "LastName" : "Potter", "Name" : "Harry" } } } And this C# class: public class Character { public string Email {get; set; } public string Name { get; set; } public

How can i Refresh a object?

ε祈祈猫儿з 提交于 2020-05-30 16:06:10
问题 I have a property representing an actor private Actor _actor; public Actor Actor { get => _actor; set { if (_actor != value) { _actor = value; OnPropertyChanged("Actor"); } } } and a list, with a checkmark that depends on the state of Actor . When I click over the label the state of Actor shall change the checkmark private async void OnSelectionAsync(object item) { Actor = item; but I cannot see the changes in my ListView , why? Edit 1: in my list, i am binding the actor Text="{Binding Actor

How can i Refresh a object?

丶灬走出姿态 提交于 2020-05-30 16:06:07
问题 I have a property representing an actor private Actor _actor; public Actor Actor { get => _actor; set { if (_actor != value) { _actor = value; OnPropertyChanged("Actor"); } } } and a list, with a checkmark that depends on the state of Actor . When I click over the label the state of Actor shall change the checkmark private async void OnSelectionAsync(object item) { Actor = item; but I cannot see the changes in my ListView , why? Edit 1: in my list, i am binding the actor Text="{Binding Actor