xamarin-studio


How pass data between two android views?

一世执手 提交于 2020-01-26 04:49:08
问题 I have a simple application that needs to do the following: From the main view the user clicks a button that launches another view. The new view is displayed and collects information from the user. Once the user clicks OK on that new view I need to "send" that data back to the originating view. The problem I am finding is that once I use StartActivity (with an intent) or SetContentView (Resource.Layout.Main) is that my data is gone. I'm putting the information I collected in a global variable

Running Selenium tests with Xamarin Studion on MAC

南笙酒味 提交于 2020-01-24 06:21:11
问题 I am trying to run my created tests on Visual Studio 2010 , using Selenium WebDriver , in a MAC using Xamarin Studio. I have chromedriver.exe as EmbeddedResource, so I removed and add the one for mac (chromedriver). Everything looks okay but doesnt allow me to run them because I see this error: OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Error: ConnectFailure (Connection refused) ---> System.Net.Sockets.SocketException: Connection refused at System.Net

Building iOS App does not update on iPhone or Simulator

大城市里の小女人 提交于 2020-01-16 06:23:41
问题 I am trying to get an iOS project started with Xamarin.iOS for Visual Studio linked to a Mac build host and connected iPhone. I have started dummy projects in Visual Studio on my PC, Xamarin Studio on the Mac, and XCode 7 on the Mac. They all share this problem. I have tried running the build on both the physical iPhone and a Simulator on the Mac. The problem persists for both despite all my efforts. The problem is this: The first version ever built of the test app is the one that runs. If I

Xamarin Forms Controls with borders

杀马特。学长 韩版系。学妹 提交于 2020-01-14 13:26:09
问题 In my Xamarin forms application I want to add borders to a Grid / StackPanel. Also the background color will be transparent. I used frame control , but when I set background color to transparent the border also not shown. Please help me? 回答1: You basically have two possibilies, since this is not yet supported in Forms, where the first is to use BoxViews as explained on SO in this post. Otherwise, you can wrap a StackLayout around your View (the StackLayout or Grid as you mentioned) with a

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.

工具导航Map