Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 91519 articles
Browse latest View live

Entry is not showing Done option on keypad in ios. It is working fine in android

$
0
0

Snippet:

                        <Entry.Behaviors>
                            <b:EventToCommandBehavior EventName="Completed" Command="{Binding DurationCompletedCommand}"></b:EventToCommandBehavior>
                        </Entry.Behaviors>
                    </Entry>

Please let me know in case missed anything.


Msal Authentication of Xamarin Form and then pass on that token to AppService

$
0
0

I have xamarin form application and followed https://github.com/Azure-Samples/active-directory-xamarin-native-v2 to implement Client Side Azure AD authentication. It is working fine.

For backed End Azure App Service, I have secured the app service using Authentication/Authentication menu and Express option. To test that , I created the
access token in postman : https://medium.com/agilix/getting-started-with-windows-azure-ad-authentication-using-postman-e37a185b642d and it is working fine.

Now, I want to integrate the xamarin form authentication with App Service. That means, If user have authenticated in Xamarin Form then the token should pass on to the app service in the background and work seamlessly. Please share your thoughts.

How to design a login page with material design using xamarin forms?

$
0
0

How to design a login page with material design using xamarin forms? Can any give the example source code?

Getting error "java.exe exited with code 2"

$
0
0

2>Using "CompileToDalvik" task from assembly "C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Build.Tasks.dll".
2>Task "CompileToDalvik" (TaskId:419)
2> Task Parameter:DxJarPath=C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar (TaskId:419)
2> Task Parameter:JavaToolPath=C:\LinkToJava8\bin (TaskId:419)
2> Task Parameter:JavaMaximumHeapSize=1024m (TaskId:419)
2> Task Parameter:ClassesOutputDirectory=obj\Debug\android\bin\classes (TaskId:419)
2> Task Parameter:MultiDexEnabled=False (TaskId:419)
2> Task Parameter:MultiDexMainDexListFile=obj\Debug\multidex.keep (TaskId:419)
2> Task Parameter:
2> JavaLibrariesToCompile=
2> C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar
2> obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar
2> obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar
2> obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> Task Parameter:OptionalObfuscatedJarFile=obj\Debug\proguard__proguard_output__.jar (TaskId:419)
2> CompileToDalvik (TaskId:419)
2> JavaOptions: (TaskId:419)
2> JavaMaximumHeapSize: 1024m (TaskId:419)
2> ClassesOutputDirectory: obj\Debug\android\bin\classes (TaskId:419)
2> JavaToolPath: C:\LinkToJava8\bin (TaskId:419)
2> DxJarPath: C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar (TaskId:419)
2> ToolExe: java.exe (TaskId:419)
2> ToolPath: (TaskId:419)
2> UseDx: False (TaskId:419)
2> MultiDexEnabled: False (TaskId:419)
2> MultiDexMainDexListFile: obj\Debug\multidex.keep (TaskId:419)
2> JavaLibrariesToCompile: (TaskId:419)
2> C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar (TaskId:419)
2> obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar (TaskId:419)
2> obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar (TaskId:419)
2> obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> C:\LinkToJava8\bin\java.exe -Xmx1024m -jar C:\LinkToAndroidSDK\build-tools\25.0.2\lib\dx.jar --no-strict --dex --output=obj\Debug\android\bin obj\Debug\android\bin\classes "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar" obj\Debug__library_projects__\FormsViewGroup\library_project_imports\formsviewgroup.jar obj\Debug__library_projects__\OkHttp\library_project_imports\okhttp-2.3.0-jar-with-dependencies.jar obj\Debug__library_projects__\Xamarin.Android.Support.Animated.Vector.Drawable\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Compat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Core.UI\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Core.Utils\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.CustomTabs\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Design\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Fragment\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Media.Compat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v4\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.AppCompat\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.CardView\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.MediaRouter\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.v7.RecyclerView\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Android.Support.Vector.Drawable\library_project_imports\classes.jar obj\Debug__library_projects__\Xamarin.Azure.NotificationHubs.Android\library_project_imports\bin\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Ads.Lite\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Base\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Basement\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Clearcut\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gass\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Gcm\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Iid\9.6.1\embedded\classes.jar C:\Users\richy\AppData\Local\Xamarin\Xamarin.GooglePlayServices.Tasks\9.6.1\embedded\classes.jar (TaskId:419)
2> (TaskId:419)
2> trouble writing output: Too many field references: 72871; max is 65536. (TaskId:419)
2> You may try using --multi-dex option. (TaskId:419)
2> References by package: (TaskId:419)
2> 2305 android.support.v4 (TaskId:419)
2> 13 android.support.v4.accessibilityservice (TaskId:419)
2> 17 android.support.v4.animation (TaskId:419)
2> 885 android.support.v4.app (TaskId:419)
2> 114 android.support.v4.content (TaskId:419)
2> 1 android.support.v4.content.pm (TaskId:419)
2> 1 android.support.v4.content.res (TaskId:419)
2> 11 android.support.v4.graphics (TaskId:419)
2> 41 android.support.v4.graphics.drawable (TaskId:419)
2> 4 android.support.v4.hardware.display (TaskId:419)
2> 12 android.support.v4.hardware.fingerprint (TaskId:419)
2> 10 android.support.v4.internal.view (TaskId:419)
2> 388 android.support.v4.media (TaskId:419)
2> 379 android.support.v4.media.session (TaskId:419)
2> 10 android.support.v4.net (TaskId:419)
2> 19 android.support.v4.os (TaskId:419)
2> 63 android.support.v4.print (TaskId:419)
2> 10 android.support.v4.provider (TaskId:419)
2> 55 android.support.v4.text (TaskId:419)
2> 6 android.support.v4.text.util (TaskId:419)
2> 118 android.support.v4.util (TaskId:419)
2> 434 android.support.v4.view (TaskId:419)
2> 138 android.support.v4.view.accessibility (TaskId:419)
2> 8 android.support.v4.view.animation (TaskId:419)
2> 495 android.support.v4.widget (TaskId:419)
2> 605 android.support.v7.app (TaskId:419)
2> 2305 android.support.v7.appcompat (TaskId:419)
2> 2305 android.support.v7.cardview (TaskId:419)
2> 8 android.support.v7.content.res (TaskId:419)
2> 18 android.support.v7.graphics.drawable (TaskId:419)
2> 437 android.support.v7.media (TaskId:419)
2> 2305 android.support.v7.mediarouter (TaskId:419)
2> 2305 android.support.v7.recyclerview (TaskId:419)
2> 1 android.support.v7.text (TaskId:419)
2> 2 android.support.v7.transition (TaskId:419)
2> 124 android.support.v7.util (TaskId:419)
2> 77 android.support.v7.view (TaskId:419)
2> 249 android.support.v7.view.menu (TaskId:419)
2> 1483 android.support.v7.widget (TaskId:419)
2> 89 android.support.v7.widget.helper (TaskId:419)
2> 1 android.support.v7.widget.util (TaskId:419)
2> 5 android.text (TaskId:419)
2> 1 android.text.util (TaskId:419)
2> 12 android.util (TaskId:419)
2> 19 android.view (TaskId:419)
2> 8 android.view.accessibility (TaskId:419)
2> 1 android.view.inputmethod (TaskId:419)
2> 5 android.webkit (TaskId:419)
2> 15 android.widget (TaskId:419)
2> 2299 app2.droid (TaskId:419)
2> 25 com.google.ads (TaskId:419)
2> 22 com.google.ads.mediation (TaskId:419)
2> 11 com.google.ads.mediation.customevent (TaskId:419)
2> 2299 com.google.android.gms (TaskId:419)
2> 20 com.google.android.gms.actions (TaskId:419)
2> 2342 com.google.android.gms.ads (TaskId:419)
2> 12 com.google.android.gms.ads.doubleclick (TaskId:419)
2> 19 com.google.android.gms.ads.formats (TaskId:419)
2> 13 com.google.android.gms.ads.identifier (TaskId:419)
2> 2299 com.google.android.gms.ads.impl (TaskId:419)
2> 256 com.google.android.gms.ads.internal (TaskId:419)
2> 22 com.google.android.gms.ads.internal.cache (TaskId:419)
2> 222 com.google.android.gms.ads.internal.client (TaskId:419)
2> 100 com.google.android.gms.ads.internal.formats (TaskId:419)
2> 158 com.google.android.gms.ads.internal.overlay (TaskId:419)
2> 51 com.google.android.gms.ads.internal.purchase (TaskId:419)
2> 197 com.google.android.gms.ads.internal.request (TaskId:419)
2> 14 com.google.android.gms.ads.internal.reward.client (TaskId:419)
2> 6 com.google.android.gms.ads.internal.reward.mediation.client (TaskId:419)
2> 6 com.google.android.gms.ads.internal.safebrowsing (TaskId:419)
2> 17 com.google.android.gms.ads.internal.util.client (TaskId:419)
2> 22 com.google.android.gms.ads.mediation (TaskId:419)
2> 1 com.google.android.gms.ads.mediation.admob (TaskId:419)
2> 12 com.google.android.gms.ads.mediation.customevent (TaskId:419)
2> 7 com.google.android.gms.ads.purchase (TaskId:419)
2> 1 com.google.android.gms.ads.reward.mediation (TaskId:419)
2> 46 com.google.android.gms.ads.search (TaskId:419)
2> 36 com.google.android.gms.auth.api.signin (TaskId:419)
2> 6 com.google.android.gms.auth.api.signin.internal (TaskId:419)
2> 2299 com.google.android.gms.base (TaskId:419)
2> 2345 com.google.android.gms.clearcut (TaskId:419)
2> 98 com.google.android.gms.common (TaskId:419)
2> 2393 com.microsoft.windowsazure.messaging (TaskId:419)
2> 342 com.squareup.okhttp (TaskId:419)
2> 86 com.squareup.okhttp.internal (TaskId:419)
2> 126 com.squareup.okhttp.internal.http (TaskId:419)
2> 1 com.squareup.okhttp.internal.io (TaskId:419)
2> 243 com.squareup.okhttp.internal.spdy (TaskId:419)
2> 11 com.squareup.okhttp.internal.tls (TaskId:419)
2> 1 com.xamarin.forms.platform.android (TaskId:419)
2> 25 java.lang (TaskId:419)
2> 7 java.lang.annotation (TaskId:419)
2> 1 java.math (TaskId:419)
2> 6 java.net (TaskId:419)
2> 1 java.nio (TaskId:419)
2> 6 java.util (TaskId:419)
2> 4 java.util.concurrent (TaskId:419)
2> 3 java.util.logging (TaskId:419)
2> 4 javax.microedition.khronos.egl (TaskId:419)

2> 4 mono.com.google.ads.mediation (TaskId:419)
2> 2 mono.com.google.ads.mediation.customevent (TaskId:419)
2> 4 mono.com.google.android.gms.ads.doubleclick (TaskId:419)
2> 8 mono.com.google.android.gms.ads.formats (TaskId:419)
2> 8 mono.com.google.android.gms.ads.mediation (TaskId:419)
2> 2 mono.com.google.android.gms.ads.mediation.customevent (TaskId:419)
2> 4 mono.com.google.android.gms.ads.purchase (TaskId:419)
2> 2 mono.com.google.android.gms.ads.reward (TaskId:419)
2> 2 mono.com.google.android.gms.ads.reward.mediation (TaskId:419)
2> 2 mono.com.google.android.gms.common.api (TaskId:419)
2> 2 mono.com.google.android.gms.common.images (TaskId:419)
2> 2 mono.com.google.android.gms.security (TaskId:419)
2> 6 mono.com.google.android.gms.tasks (TaskId:419)
2> 4 mono.java.lang (TaskId:419)
2> 2 mono.java.util (TaskId:419)
2> 2 mono.javax.xml.transform (TaskId:419)
2> 81 okio (TaskId:419)
2> 2 opentk (TaskId:419)
2> 2 opentk.platform.android (TaskId:419)
2> 2 opentk_1_0 (TaskId:419)
2> 2 opentk_1_0.platform.android (TaskId:419)
2>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1965,3): error MSB6006: "java.exe" exited with code 2.
2> DexOutputs: (TaskId:419)
2>Done executing task "CompileToDalvik" -- FAILED. (TaskId:419)
2>Done building target "_CompileToDalvikWithDx" in project "App2.Droid.csproj" -- FAILED.: (TargetId:353)
2>
2>Project Performance Summary:
2> 42 ms \TF-RICHY\Aboo_share_win10\Backup\New app2 droid\App2 - Android\App2\App2\App2.csproj 3 calls
2> 34 ms GetTargetPath 1 calls
2> 1 ms GetNativeManifest 1 calls
2> 7 ms GetCopyToOutputDirectoryItems 1 calls
2> 189298 ms \TF-RICHY\Aboo_share_win10\Backup\New app2 droid\App2 - Android\App2\App2.Droid\App2.Droid.csproj 1 calls
2> 189298 ms Rebuild 1 calls
2>

2>
2>Build FAILED.
2>
2>Time Elapsed 00:03:09.29
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

How to Create Nuget packages for Xamarin forms ( custom views / services)??

$
0
0

Hi all can someone please shed some light on creating Nuget packages for xamarin.forms

I'm currently looking into trying to make some Custom view controls / services's for Xamarin.Forms, has any one got helpful tips like from which starting project to setup and adding the proper config files such as the nuspec file in some step by step fashion.

I did use James Montemagno plugin https://marketplace.visualstudio.com/items?itemName=vs-publisher-473885.PluginForXamarinTemplates which i was able to generate the nuget package file but could install the nuget package in my project with an error

Could not install package ''. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework.

So james plugin is also kinda old with no VS 2017 support and Xamarin moves so fast these days is this the preferred method developers follow?? I really wanna starting contributing some open source projects but where do i start.

Also whats up with NuGetizer 3000 can i use this? https://github.com/NuGet/Home/wiki/NuGetizer-3000 - The goal of the NuGetizer 3000 project is to make it as easy as possible to create and publish a NuGet package, including bait-and-switch packages, and provide guidance to users along the way.

I'm using a window 10 machine with VS 2017 but also setup VS 2015 for Jame's plugin

is there a Tabbed view in Xamarin.forms?

$
0
0

Hello,
any idea how to make a Tabbed view in xamarin.forms,
i only found Tabbed page which is not possible to put it inside a content page!

choosing Xamarin.forms is bad choice? should i've used each platforme beside with xamarin.android and xamarin.ios!

Thanks in advance

How keep recent Entry value when go next page.

$
0
0

Hi, i want to keep entry value which i type in entry box then i go another page and then went back to the main page where previously i type somethings in entry box. Now how i keep those data without save in local database.

Where are the XAML designer tools?

$
0
0
Years have past ;-) not really but I think this question has been asked many Times' before.

The forms previewer crash all the time. It could be seen more of a compile:designer that breaks as soon as you start adding codebehind stuff.

We need a designer for Xaml not css? I think the web guys gonna stick to other tools anyways
The live previewer very nice idea, same thing doesn't work yet.

I just need BLEND with a Visual state manager. where is the backning from the Microsoft team that dream up stuff like the Blend tools :-)

TapGestureRecognizer not working in Android?

$
0
0

I wanted to use double-tap on a ListViewItem. Since there is no DoubleClicked event defined for ListView, I wanted to use the TapGestureRecognizer with NumberOfTapsRequired = 2.

It works fine in iOS & UWP but not in Android. What am I doing wrong?

Xamarin Forms Google Maps error

$
0
0

Hello. I am a new Xamarin Forms developer and actually a new programmer. I am trying to add a map into an app and I'm using the Xamarin Forms Google Maps NuGet. Installed it but when I try to open the page which has the XAML code for the map, the app enters a break mode. I tried different things and different code from the sample app, but still nothing else happens. The bad things is that I do not know why. Can anyone help?
This is the simplest code I tried running.

<?xml version="1.0" encoding="utf-8" ?>

<ContentPage.Content>

    <maps:Map x:Name="map"></maps:Map>

</ContentPage.Content>

Advance Master Detail menu

$
0
0

Hi to all.
I want to make a Hamburger menu just like alliexpres one.

Is this possible starting with Visual Studio Master-Detail example.

Thanks in advance

listview keyboard scroll on android app and xamarin.forms

$
0
0

hi

when i create new basic android app via xmarin and create listview with items in it i can automatically scroll the items via bluetooth keyboard
but when i create the same under xamarin.forms app i am not able to scroll using the bluetooth keyboard

is it a bug? i have to code it?

please advice i really stuck here

thanks.

VS2017 15.9 & XF 3.4 - can't build the project

$
0
0

Hi,

I am trying to build a XF project but getting the following weird error:

3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2129,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly.
3>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2129,5): error MSB4018: Mono.Linker.MarkException: Error processing method: 'System.Void WiFiManager.MainPage::InitializeComponent()' in assembly: 'WiFiManager.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void Xamarin.Forms.Xaml.Internals.SimpleValueTargetProvider::.ctor(System.Object[],System.Object,Xamarin.Forms.Internals.INameScope)

The full list is available here:
https://pastebin.com/k4hTDVTQ

What am I doing wrong?

Are we the only ones Struggling with the Xamarin Forms Toolset??

$
0
0

I guess before I start let me say I love the support from the Microsoft Xamarin Support Team and have high hopes that we can move past some of the issues we have run into using Xamain. I work with 5 other developers and started using Xamarin a couple of years ago. We are obviously a Microsoft shop and we came into mobile green – very very green. We were used to developing in Visual Studio and knocking out web applications with no problems at all. The boss gives a request, no problem, we knocked it out. Xamarin was an obvious toolset when we chose to start doing mobile development with all of us skilled in C# and the whole idea of coding once. We knew we needed a mac mini so we went out and bought 1 for the team of five. This was a bit of a change from web development where we had all our tools locally with VS on Windows, but hey this is mobile development which includes iOS so we moved forward. Just setting it up and getting VS to talk to the mac mini was an interesting endeavor, to say the least. We quickly found out sharing a mac mini wasn’t going to cut it. Each of us would need our own mac mini on our desks. I told you we were green right? Okay, no problem. Next, the current laptops we had were continuously putting VS in busy mode…chugging and choking as it attempted to build our projects. New more powerful laptops were needed. No problem. It was just the nature of what I started to call “The Beast”. Next one by one each developer started commenting on how long it took to make a small change and test it out on the droid and iOS simulators. What was this all about? In our past web development, we had NEVER seen this type of poor performance. Okay, it’s slow. It’s a different beast and we’ll just have to deal with it. We keep moving forward. So we’re going along with our new tool and we are thinking we’re starting to figure out this whole toolset when BAM it just stops working accordingly. Here’s a couple of scenarios.s The boss gives you a simple change like change this text and color on this page. Wow – no problem at all. Everything was working fine on my box yesterday with VS/Xamarin, so I’m none the wiser when all of sudden today when I have this deliverable it starts to flake out. I make the coding change, run it, and it just sits there in build mode. Build…build…building - like not ever finishing. I start googling this and find out…oh, sometimes this happens with Xamarin. When this happens try a clean, close out VS, delete the bin and obj folders, start VS, and try again. What the heck? I’m starting to realize I don’t have the Beast figured out. I follow the instructions and magically enough it works. Okay. Weird but I keep moving forward. A few days go by with no problems in Xamarin land. The building and launching vary from 2 minutes to 7 minutes, but at this point, I’m just glad it launches. The boss then requests a new page. No problem. Fire up my toolset, make the change, and again building building… I’ve seen this issue before and now know the solution. I follow my crazy steps above but this time no success. What? I try the steps again. No luck. I add one more step -> reboot pc. It works. Omg. So at this point, I’m getting a little concerned. I’ve got simple requests, but I can’t always count on Xamarin in a timely manner. It comparable to reaching for a drill out of your toolbox and expecting it to drill a hole each time, but sometimes it doesn’t work and you have to take the drill bit out, put it back in, unplug the cord, plug it back in, pray to the tool gods, and hope like it hell it starts working. Any sane person would just buy another drill. Obviously, that’s not an option for us and I’m not bringing that up. This is where we are at now. And to top it off after finally getting emulators/simulators working, they're not playing nice consistently and I’ve been burned enough to know to attach an actual device is the best method because sometimes what you see/experience with them is NOT what you see/experience when you deploy to actual devices.

We can’t be the only ones struggling? How can we provide an estimate of hours of work required when we can’t depend on the tool working accordingly? I know many will reply with suggestions which I welcome and deeply appreciate. I guess I’m also just looking for a little bit of an Amen, you’re preaching to the choir? I’d also be interested to know if it works “smoothly” CONSISTENTLY for others? Thanks for your time reading and your feedback.

how to raise a local notification remotely?

$
0
0

I have programmed for each platform local notifications and i am wondering if it will be possible to raise a local notification remotely? not sure what tool fits best for it? something probably like SignalR. It is probably similar concept as what OneSignal or Firebase is doing. what is the best way to achieve this?


Stack-smashing Protection (SSP) in Xamarin forms?

$
0
0

I'm seeing the security of my application and I have to enable the Stack Smashing Protection (SSP) in my app. it's possible for android project (Xamarin Forms). There is no documentation related to the subject. Thanks for your time.

Xamarin Forms Firebase Push Notification Plugin

$
0
0

For those who use this plugin. I do not generate a registration token for iOS, although everything works for Android. Is there a possible problem with the plugin?

Automatic Reference Counting not enabled in Xamarin forms

$
0
0

Hello. I'm seeing the security of my application and I have to enable the ARC (Automatic Reference Counting) in xamarin forms. t's possible for ios project (Xamarin Forms)? Thanks for your time.

How to set binding context with Source={x:reference view } in ResourceDictionary

Forms Hybrid

$
0
0

Hi, I have a current solution where I developed and app for iOS and Android in their specific Xamain.Android and Xamarin.iOS areas a way back before Forms was mature enough to use.

I need to add some new screens to both so it is possible to develop them using Forms and meld them into both projects so I only have to create the one set?
So can I mix Xamarin.Android/.iOS with Forms in one project?

Thanks

Viewing all 91519 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>