Xamarin

Xamarin.Android JmDNS binding issues

。_饼干妹妹 提交于 2021-02-18 22:31:27
问题 I started work on a JmDNS bindings for Xamarin.Android. I managed to get the binding to build but I can not reference it from within my code. https://github.com/ytn3rd/monodroid-bindings/tree/master/JmDNS First issue I had was there was no IDNSListener class to reference. So I added a partial interface in there for it. I have the function it needs void updateRecord(DNSCache dnsCache, long now, DNSEntry record); commented out as it would complain on not being able to reference DNSCache or

TimePicker with Spinners?

不羁岁月 提交于 2021-02-18 12:15:07
问题 I'm trying to build a TimePickerDialog but unfortunately the Time Picker that comes up is extremely cumbersome to Use : Is there any way to build a timepicker like the old ones that Android use to have like below : My code is as follows : ButtonTime.Click += delegate { ShowTimePickerDialog(); }; void ShowTimePickerDialog() { var dialog = new TimePickerDialogFragment(this, hour, minute, this); dialog.Show(FragmentManager, null); } 回答1: I would say use the Holo theme. I refer to following link

How to run background service in ios forever for syncing of data

情到浓时终转凉″ 提交于 2021-02-18 05:34:48
问题 Hi I am developing an App which has a requirement to do syncing operation (data submission and retrieval) on web server. User can submit forms offline (ie. storing data to local db on device). And whenever network is available, background service should submit those data to web server. The detail requirement of background service is like: Background service will first check whether network is available or not if network is available, it will collect the data store in Local db (SQLite) on

In xamarin, how to get the current language of the device for Android?

こ雲淡風輕ζ 提交于 2021-02-17 22:18:08
问题 How could I get the current language of the device in Xamarin (for Android)? Got the language with context.Resources.Configuration.Locale.Language 回答1: Here's a cross platform version I use. Obviously you can pull whatever property you need from CurrentUICulture . return CultureInfo.CurrentUICulture.TwoLetterISOLanguageName; Maybe it will help someone else. 回答2: This appears to be what you are looking for: http://androidapi.xamarin.com/?link=T%3aSystem.Globalization.RegionInfo The RegionInfo

SQLite-Net Extensions - GetAllWithChildrenAsync not pulling everything

杀马特。学长 韩版系。学妹 提交于 2021-02-17 06:10:12
问题 I am trying to use SQLite-Net Extensions to create a Relational Database. I'm running into an issue when trying to pull the Term object from the database. It successfully pulls over its associated courses, but not the courses associated assessments and notes. I'm not sure if the problem lies in how I insert the objects into the database, how I pull the objects from the database, or how I have the objects attributes listed. I feel like the SQLite-Net Extensions documentation is extremely

How to Navigate between Android Specific Pages and Shared Pages in Xamarin.Forms?

半城伤御伤魂 提交于 2021-02-17 05:14:46
问题 I am trying to implement a camera overlay for my android app in Xamarin Forms. I am able to get my overlay to work for Android when I set my activity MainLauncher to True. How can I instead navigate to the activity page from my Xamarin.Forms shared code, and then later navigate back to the shared pages? My Android Activity: namespace CustomCamera.Droid { [Activity(Label = "CustomCamera", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges =

Xamarin.iOS MKLaunchOptionsDirectionsModeKey

孤街浪徒 提交于 2021-02-17 03:15:54
问题 I'm trying to set up a dictionary for my MKMapItem , to open the native Map Application set to a certain location with a certain directions mode (walking, driving, transit, etc). When I try to do the equivalent of this: NSMutableDictionary *launchOptions = [[NSMutableDictionary alloc] init]; [launchOptions setObject:MKLaunchOptionsDirectionsModeDriving forKey:MKLaunchOptionsDirectionsModeKey]; in C#, I can't find the key MKLaunchOptionsDirectionsModeKey in Xamarin. My DirectionsMode value is

uni-app

穿精又带淫゛_ 提交于 2021-02-17 02:59:22
uni-app https://www.cnblogs.com/guolianyu/p/10521970.html 基于Vue.js的uni-app前端框架结合.net core开发跨平台project 一、由来 最近由于业务需要要开发一套公益的APP项目,因此结合所给出的需求最终采用uni-app这种跨平台前端框架以及.netcore快速搭建我们的项目,并且能做到一套代码跨多个平台。 当然在前期技术框架选型方面尤其是前端,我们也是历经了许多波折,让我一 一道来:一开始我们接到app项目时,由于公司人手不足,无法开发原生的app,因此需要另辟途径, 在我的脑海中我知道微软Xamarin工具可以实现一端多平台的开发,所以我就投入进去进行深入的研究,在搭建的过程中发现Xamarin的开发环境以及调试等出现各种各样的问题,而且网上的文档比较少,导致我越深入研究越没有信心, 最终放弃了xamarin,这个工具真的不是很好用,可能是我还不了解吧。由于放弃了此工具,我就在想是否可以做一套H5然后套个壳,因此顺着这个思路我发现了一个新兴的框架uni-app,而且还是基于vue的,这个大大帮助我们,而且 对于vue,楼主我之前只花了1周的时间来学习就基本掌握其中的要领,基本可以适应uni-app,话不多说赶紧入手,越研究越有趣,一套代码可以发布H5、小程序、APP(包含安卓和IOS),简直是福音呀

How to set the BindableLayout.ItemsSource to an ObservableCollection in an other file

狂风中的少年 提交于 2021-02-17 02:08:37
问题 Currently i have a TasksGroupPageViewModel.cs that contains my two ObservableCollection: public ObservableCollection<TasksGroup> TasksGroups { get; set; } = new ObservableCollection<TasksGroup>(); public ObservableCollection<Tasks> Taches1 { get; set; } = new ObservableCollection<Tasks>(); The binding for my CollectionView which uses the TasksGroups data works, BUT i have a bindable stacklayout inside it but i am unable to bind it to his ObservableCollection data (taches1) From the debuger i

How to set the BindableLayout.ItemsSource to an ObservableCollection in an other file

ε祈祈猫儿з 提交于 2021-02-17 02:06:43
问题 Currently i have a TasksGroupPageViewModel.cs that contains my two ObservableCollection: public ObservableCollection<TasksGroup> TasksGroups { get; set; } = new ObservableCollection<TasksGroup>(); public ObservableCollection<Tasks> Taches1 { get; set; } = new ObservableCollection<Tasks>(); The binding for my CollectionView which uses the TasksGroups data works, BUT i have a bindable stacklayout inside it but i am unable to bind it to his ObservableCollection data (taches1) From the debuger i