xamarin-studio

Visual Studio Mac Won't Show iOS Simulators

拜拜、爱过 提交于 2020-01-14 10:45:10
问题 I've got a Xamarin Forms solution with iOS and Android projects. The iOS side was working, I switched over and did a bunch of work on the Android side. Now I need to do some more iOS stuff (push notifications) and I can't get the iOS Simulator to kick in. Xcode is installed, VS says it can see the SDK. I can open the simulator from XC but inside VS no matter what Debug combination of the .iOS project I select all I get is "Generic Simulator". Any ideas? 回答1: See the answer in the comment

Xamarin Forms ListView CachingStrategy

我们两清 提交于 2020-01-12 07:58:18
问题 I have recently tested the CachingStrategy for a ListView in a Xamarin Forms App with 1000 items in the list. List items are being created from a data template of ViewCell . I Tried using RecycleElement option for CachingStrategy . When I did profiling, using Xamarin Profiler, for Android App deployed on Xamarin Anroid Player (emulator) I noticed that when I scroll through the list the memory allocation doesn't increase (on allocations summary tab). But, when I did profiling for iPhone App on

Xamarin Forms ListView CachingStrategy

限于喜欢 提交于 2020-01-12 07:58:08
问题 I have recently tested the CachingStrategy for a ListView in a Xamarin Forms App with 1000 items in the list. List items are being created from a data template of ViewCell . I Tried using RecycleElement option for CachingStrategy . When I did profiling, using Xamarin Profiler, for Android App deployed on Xamarin Anroid Player (emulator) I noticed that when I scroll through the list the memory allocation doesn't increase (on allocations summary tab). But, when I did profiling for iPhone App on

Xamarin login(activation) error [duplicate]

白昼怎懂夜的黑 提交于 2020-01-11 13:32:08
问题 This question already has answers here : Xamarin Studio - can not login - One of the identified items was in an invalid format (3 answers) Closed 3 years ago . I’m getting an error (activation) while logging into Xamarin studio on OSX. Please find below the error. Let me know how to resolve the issue. Thanks. There was an internal error in the activation system. Please contact Xamarin Support. System.FormatException: One of the identified items was in an invalid format. at Xamarin.Components

ERROR ITMS-90045: Invalid Code Signing Entitlements. Xamarin Studio

随声附和 提交于 2020-01-07 03:51:09
问题 This error popped up when I tried to upload my .ipa to the App Store. I tried to Clean the project in Xamarin and regenerate all the provision files but still, doesn't solve the issues. 回答1: change Entitlements.plist to this <plist version="1.0"> <dict> <key>aps-environment</key> <string>production</string> </dict> </plist> 回答2: This fix worked for me using Visual Studio for Mac v7.7 Your provisioning profile and signing identity must be set up on IDE correctly: Go to Project Options -> iOS

GTK# StatusIcon Icon not display

谁说胖子不能爱 提交于 2020-01-06 08:36:28
问题 I tried to adding icon in Windows Tray using below code in GTK# application.( i am using XAMARIN STUDIO to develop GTK# application) enter code here Statusbar status = new Statusbar (); trayIcon = new StatusIcon(); trayIcon.Pixbuf = new Gdk.Pixbuf ("TrayIcon.ico"); trayIcon.IconName="Tray Icon Name"; trayIcon.Visible = true; trayIcon.PopupMenu += trayIcon_PopupMenu; trayIcon.Tooltip = "Tray Icon Tooltip"; Icon added and contextmenu also added but icon "TrayIcon.ico" not display on windows.

Can't compile project - VB.Net - Fatal error BC2000 - Xamarin/MonoDevelop

我的梦境 提交于 2020-01-06 01:55:16
问题 Just downloaded Xamarin/MonoDevelop in order to create a VB.Net based cross-platform application. However Xamarin keeps returning a fatal error when attempting to compile a default template. Steps: File > New > Solution VBNet > Gtk# 2.0 Project Name solution Click Play (Debug) Results: Error Fatal error BC2000 : compiler initialization failed unexpectedly: Project already has a reference to assembly System. A second reference to 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework

Issue while setting WindowSoftInputMode to AdjustPan

孤者浪人 提交于 2020-01-05 02:39:18
问题 I’m working on Xamarin forms project. I’ve many Entry fields in my application, one of them is in popup and the popup opens in the centre of the device screen. Also few entry fields are in scroll view. The issue is only with the Android Application. For iOS it’s working perfectly. When I click on Entry field in side the popup, the soft key board is opened and the UI of my popup gets disturbed. So, I decided to set WindowSoftInputMode = SoftInput.AdjustPan to my main Activity. This solves my

MvvmCross for WPF and Xamarin.Mac: is it possible?

让人想犯罪 __ 提交于 2020-01-04 06:14:20
问题 I'd like to ask anyone out there whether is possible, as of today, to develop a Windows/MacOS cross platform application using WPF (in Visual Studio) and Xamarin.Mac (in Xamarin Studio for Mac). I searched the web, twitted people (Stuart, I know you pointed me to loqu8 build some days ago, but I'm just stuck :P) but nothing really useful came up. So, my questions are: First and foremost: is it possible? Is it production ready? If not, how much stable it is? Are there any plans for improving

Get device location in latitude-longitude in xamarin forms

喜你入骨 提交于 2020-01-04 04:11:21
问题 I have a scanner in my application, and as I am scanning any QR code I need to get a current location of device in latitude-longitude. I don't have any idea how to get location so I don't have any piece of code right now. Suggest me some ways to get location on scanning completion of QR code. 回答1: Geolocator Plugin example: var locator = CrossGeolocator.Current; locator.DesiredAccuracy = 50; var position = await locator.GetPositionAsync (timeoutMilliseconds: 10000); Console.WriteLine (