xamarin-studio

create a cocossharp project in xamarin

半城伤御伤魂 提交于 2019-12-11 02:05:07
问题 Im new in xamarin studio and im trying to create a cocosproject following the official guide, but this document is not very clear and my project have so many errors. https://developer.xamarin.com/guides/xamarin-forms/advanced/cocossharp/#nuget I've created a xamarin.form with IOS, android and PCL as guide say I've added the cocosSharp packages to IOS and Android projects BUT if i don't add the cocosSharp package to PCL target, the cocos Classes cant be found by the code And if I try to add

best way to open a remote pdf in xamarin forms pcl project

纵饮孤独 提交于 2019-12-10 17:16:07
问题 Whats is the best way to load a pdf on server in the xamarin pcl App for both Ios and Android. Is there a good nuget or we have to write the custom renderers? 回答1: Opening a PDF in the app, you have a few options. iOS has had PDF support in its WebView for a while. Android doesn't. If you want to do it in a WebView you can do this: var webView = new WebView(); webView.Source = new UrlWebViewSource() { Url = "https://example.com/my.pdf" }; If you are only supporting Android API 21+ and higher,

How to show a badges count of ToolBarItem Icon in Xamarin Forms

喜欢而已 提交于 2019-12-10 17:08:40
问题 It is not about how to show notification badges nor it's about to show toolbar item icon. It is clear question that how to show a badges count on a toolbar item icon. ? I am sharing code to create ToolbarItem with icon in XF content page: In cs File: ToolbarItem cartItem = new ToolbarItem(); scanItem.Text = "My Cart"; scanItem.Order = ToolbarItemOrder.Primary; scanItem.Icon = "carticon.png"; ToolbarItems.Add(cartItem ); In Xaml File: <ContentPage.ToolbarItems> <ToolbarItem Text="Cart"

Editing and importing storyboard changes from Xcode to Visual Studio

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:36:59
问题 I am moving my code from Xamarin Studio (Mac) to Visual Studio. I can open storyboard files in Xcode from Xamarin Studio. If I make changes in Xcode, close it, and open in Xamarin Studio, all of my changes are successfully imported including IBAction and IBOutlets. When I tried the same thing in Visual Studio, I could not see viewcontroller files to create IBOutlet and IBAction. Is this not supported in Visual Studio or am I missing something? 回答1: No it not supported. If you need xcode sync,

How to decrease $(TargetFrameworkVersion) for FormsViewGroup.dll from (v7.1) to (v6.0) in Xamarin

▼魔方 西西 提交于 2019-12-10 15:01:14
问题 I am new to Xamarin. I have installed VisualStudio 2017 with Xamarin component and my android sdk is updated to Android (v6.0). I have created new Xamarin project and I am getting errors: Severity Code Description Project File Line Suppression State Warning The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll(v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0). You need to increase the $(TargetFrameworkVersion) for your project. App2.Android C:\(PATH-TO-REPOS)

Why can't I create a segue using the iOS Designer? - Xamarin Studio

守給你的承諾、 提交于 2019-12-10 13:33:45
问题 I have been using Xamarin inside of Visual Studio for a little while now but I thought I would give Xamarin Studio a go on my Mac. All is well until I try to create a segue on the storyboard. I have two view controllers, one being the main one. I add a button then CTRL + drag from the button to the second view controller. In VS this works great however in Xamarin Studio when I release the button the segue menu pops up and closes instantly not allowing me to select the desired option. Has

Xamarin studio folder structure issue in iOS project

最后都变了- 提交于 2019-12-10 12:41:08
问题 I am having trouble with xamarin folders. Currently I'm writing xamarin iOS project. In Xcode I used directories for grouping images, there could be several levels of nested folders, but when I was building project for device or iOS simulator, these resources where simply being copied to main bundle, without any folder structure. I can't reach the same behaviour in xamarin studio. Whenever I create folders in my project and put pictures or other resources in them, this folder structure is

no valid 'aps-environment' entitlement string found for application while debugging on xamarin for ios

守給你的承諾、 提交于 2019-12-10 10:37:50
问题 I am working on xamarin for ios. Its was working on my older machine. But, then i had to switch to new machine and recreate all the certificates and everything for the new machine. I have created the app ID. Then created the aps certificates and then created the provisioning profile. In Debug I have provided the downloaded provisioning profile. But still I am getting this same error. And my app is unable to get the device token. I am searching a lot since last night. And have done the

Keyboard Overlapping with Entry Xamarin.froms

天涯浪子 提交于 2019-12-10 10:14:30
问题 I have a Xaml page with Entry Field. Keyboard is overlapping Entry Field when I am trying to enter value in Entry in Xamarin.froms 回答1: Check your Entry is inside a ScrollView 回答2: There is a good solution for this issue: At your MainPage.xaml: //we could use any layout <StackLayout x:Name="MainStackLayout">...</StackLayout> Add helper for layouts: public static class LayoutHelper { public static void SetLayoutPosition(this Layout layout, bool onFocus, int x = 0, int y = 0, uint length = 50)

libzmq not found by clrzmq in Xamarin Studios/C# application

会有一股神秘感。 提交于 2019-12-10 10:08:56
问题 I'm using Xamarin Studio on a Mac, with clrzmq included via NuGet. clrzmq references on libzmq.dll. My app compiles fine, but when I try to run it, I get this: Unhandled Exception: System.DllNotFoundException: libzmq at (wrapper managed-to-native) ZMQ.C:zmq_init (int) at ZMQ.Context..ctor (Int32 io_threads) [0x00000] in <filename unknown>:0 at FeatureSpike.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 libzmq.dll is definitely there in the build target directory. Does