freshmvvm

xamarin xzing barcode scanner re-scan

為{幸葍}努か 提交于 2020-12-06 15:53:29
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

懵懂的女人 提交于 2020-12-06 15:51:00
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

xamarin xzing barcode scanner re-scan

核能气质少年 提交于 2020-12-06 15:50:37
问题 I'm using the zxing barcode scanner in xamarin android forms and I can get it to scan one barcode with no issues, but I want to be able to discard the scan they have taken and have the ability to take a another scan. I'm also using MVVM. Here is my xaml... <Grid VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition>

ToolbarItems do not look right in iOS

六月ゝ 毕业季﹏ 提交于 2020-04-30 06:27:27
问题 I have a Xamarin.Forms app with FreshMvvm, and am trying to use secondary ToolbarItems. Here is a part of my PageModel code: public override void Init(object initData) { CurrentPage.ToolbarItems.Add(new ToolbarItem() { Text = "About LATICRETE", Command = AboutCommand, Priority = 0, Order = ToolbarItemOrder.Secondary }); CurrentPage.ToolbarItems.Add(new ToolbarItem() { Text = "Call LATICRETE", Command = CallCommand, Priority = 0, Order = ToolbarItemOrder.Secondary }); CurrentPage.ToolbarItems

Android BottomNavigationView One tab with different unselected/selected colors

纵饮孤独 提交于 2020-03-18 04:33:48
问题 I am attempting to match a design like this.. Notice that the "selected tab color tint" is a blue, but the center tab's icon should always be the green circle with the white clock in the middle. I've tried a number of things. First trying to do it programmatically by using a layer-list XML resource that had the green circle and clock PNG resource, which didn't work at all. Then I just got the designer to give me the full icon(clock and green circle), but now I'm running into this issue..

Android BottomNavigationView One tab with different unselected/selected colors

别说谁变了你拦得住时间么 提交于 2020-03-18 04:32:24
问题 I am attempting to match a design like this.. Notice that the "selected tab color tint" is a blue, but the center tab's icon should always be the green circle with the white clock in the middle. I've tried a number of things. First trying to do it programmatically by using a layer-list XML resource that had the green circle and clock PNG resource, which didn't work at all. Then I just got the designer to give me the full icon(clock and green circle), but now I'm running into this issue..

FreshPageModelResolver.ResolvePageModel() throws an exception in UWP Release

匆匆过客 提交于 2019-12-25 01:17:32
问题 My app uses FreshMVVM. This code works for iOS and Android, and for UWP in Debug mode. But UWP release gives an exception here: private void SetupSimpleNav() { Page page = FreshPageModelResolver.ResolvePageModel<MenuPageModel>(); The message is: Resolve failed: MenuPage - Reason: Operation is not supported on this platform. 来源: https://stackoverflow.com/questions/58717470/freshpagemodelresolver-resolvepagemodel-throws-an-exception-in-uwp-release

How to intercept WebView Navigating event in ViewModel

给你一囗甜甜゛ 提交于 2019-12-02 10:09:39
问题 My app has a WebView for displaying some contact information. It has a link to a website that I want to load externally using Device.OpenUri() . I'm using FreshMvvm and I want to intercept the Navigating event from the WebView in the ViewModel and cancel the default action which would load the external page into the WebView. I've tried using the Corcav.Behaviors plugin which does call my ViewModel command: <WebView HorizontalOptions="Fill" VerticalOptions="FillAndExpand" Source="{Binding

How to intercept WebView Navigating event in ViewModel

别来无恙 提交于 2019-12-02 04:08:50
My app has a WebView for displaying some contact information. It has a link to a website that I want to load externally using Device.OpenUri() . I'm using FreshMvvm and I want to intercept the Navigating event from the WebView in the ViewModel and cancel the default action which would load the external page into the WebView. I've tried using the Corcav.Behaviors plugin which does call my ViewModel command: <WebView HorizontalOptions="Fill" VerticalOptions="FillAndExpand" Source="{Binding WebViewSource}"> <b:Interaction.Behaviors> <b:BehaviorCollection> <b:EventToCommand EventName="Navigating"