xamarin.forms

Does Xamarin.Forms support periodic background tasks?

∥☆過路亽.° 提交于 2020-05-24 16:22:06
问题 I am having a difficult time finding documentation on background tasks support for Xamarin.Forms. Does Xamarin.Forms provide support for periodic background tasks? I need to implement this for both Windows Phone 10 and Android. 回答1: XF has no implementation for background tasks. You will need to implement these natively. Below are examples on how to do it for each type of project. UWP https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/BackgroundTask Android https:/

Xamarin Forms - Pass Scope-Injected service from tabbedpageviewmodel to the viewmodels of the pages

我是研究僧i 提交于 2020-05-24 05:07:26
问题 In my xamarin forms application I have a tabbedpage with behind it a viewmodel. This viewmodel behind injects a service with dependency injection. That service is scoped. It should be scoped for the tabbedpageviewmodel. But the tabs should also make use of that scoped service. How can I achieve this? Should I pass the service to the tabbedpages-viewmodels? Singleton is not an option, because I work with notifications, the tabbedpageviewmodel can accur multiple times in the navigationstack,

Xamarin Forms - Pass Scope-Injected service from tabbedpageviewmodel to the viewmodels of the pages

做~自己de王妃 提交于 2020-05-24 05:07:00
问题 In my xamarin forms application I have a tabbedpage with behind it a viewmodel. This viewmodel behind injects a service with dependency injection. That service is scoped. It should be scoped for the tabbedpageviewmodel. But the tabs should also make use of that scoped service. How can I achieve this? Should I pass the service to the tabbedpages-viewmodels? Singleton is not an option, because I work with notifications, the tabbedpageviewmodel can accur multiple times in the navigationstack,

get search bar results to appear ontop of other content

给你一囗甜甜゛ 提交于 2020-05-24 05:03:26
问题 looking something similar to what is asked in this Q.... How to display ListView on top of (over the) other items in Xamarin Forms? been playing about with grids and stacklayouts and cant seem to get the listView of the searchBar to appear on top of the other list views (the other list views contains the products searched for) so the search bar listview results should appear over the buttons, and other lists <content> <StackLayout> <StackLayout> <SearchBar Placeholder="Search..." TextChanged=

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

☆樱花仙子☆ 提交于 2020-05-23 10:54:52
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

How to Implement Deeplink(Universal Linking) In Xamarin forms Both Android and iOS?

南笙酒味 提交于 2020-05-23 10:54:07
问题 Guys, I need to implement Applink (Universal Link) step by step both android and iOS, please any to help achieve this. I tried the following code in my android project I followed this URL to write this https://devblogs.microsoft.com/xamarin/connect-with-your-users-with-google-search-and-app-indexing/ Note I no need to indexing concept just want to open the app from Clicking of any URL First I Installed Xamarin.Forms.AppLinks NuGet Below code MainActivity [IntentFilter(new[] { Android.Content

How to getUser with more input in xamarin forms?

有些话、适合烂在心里 提交于 2020-05-17 14:41:50
问题 I i'm using firebase RealTimeDataBase, i want to getUser also with the name(GetUser(string email, string name)), so how do i modify the last Query to do this? Because when i signup i succesfully visualize the name, but when i login i do not visualize the name, but the email yes Users are composed by: Email, Name, Category, Password Code: FirebaseHelper.cs namespace yourActivity.ViewModel { public class FirebaseHelper { public static byte[] GetHash(string inputString) { using (HashAlgorithm

Setting my partial View, not working xamarin

試著忘記壹切 提交于 2020-05-17 06:21:25
问题 Now I got started with Prism Framework for xamarine, but I'm having a little problem achieving connections across views. I have this folder "Views" and inside it I have another folder called PartialViews. Now inside PartialViews I have a contentPage called "Header.xaml". Now I would like to atach this file to the Index.xaml view, which is located in the Views folder. I would like to atach the "Header.xaml" to other views also, like for example I would like to atach it to the "Orders.xaml"

Xamarin iOS app being rejected for UIWebView after following guide

淺唱寂寞╮ 提交于 2020-05-16 22:33:11
问题 We have a new app we are trying to submit to the app store (using TestFlight for pre-release beta testing) but are getting an Invalid binary message due to the reference of UIWebView: TMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. We've followed the guide provide by Xamarin here: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/webview?tabs=macos#uiwebview-deprecation-and

Check if a string is in a specific date format

六月ゝ 毕业季﹏ 提交于 2020-05-16 03:48:25
问题 Hi I'm receiving a string with a date format yyyy-MM-dd , but I want to compare it with a format dd-MM-yyyy in case it is not the same, sure is not, I want to convert it, the problem for me it's not to convert, it's to compare both formats... so I imagine maybe it's something like this var dt = obj.date; //this a string if (dt.formatDateorsomethingIguess == "dd/MM/yyyy") //this is the part I'm asking for { usedt(dt); } else { DateTime dt_format = DateTime.ParseExact(dt.Trim(), "dd-MM-yyyy",