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

How to add Xamarin App under Share with dialog

$
0
0

I want to add my app under share with dialog that appears when user search something on Google then under any result there is a share icon. When someone clicks on share icon a "Share with" dialog appears which shows application like facebook, Whatsapp, ShareIt etc..So in similar way I want my app to be included inside that Search Dialog and capture the url for which user clicks on Share with link.

Please see attached screenshot for reference.


Xamarin Forms iOS error: CS0103 The name 'InitializeComponent' does not exist in the current context

$
0
0

Hello, I'm using Xamarin Forms for develop Android and iOS app. My app it's working in Android, but when i compile the iOS version (project) the error "CS0103 The name 'InitializeComponent' does not exist in the current context" appears. I'm updated the Forms nugget package, but not happens and the error occurs every time. Can anyone help me?

Error after installing Xamarin.Forms 3.0

$
0
0

I have installed Xamarin.Forms 3.0 and i have this message in debug in the App.xaml

"System.MissingMethodException: System.Func`2<string, string> Xamarin.Forms.Internals.ResourceLoader.get_ResourceProvider()"

in this piece of code

[global::Xamarin.Forms.Xaml.XamlFilePathAttribute("App.xaml")]
public partial class App : global::Xamarin.Forms.Application {

    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "2.0.0.0")]
    private void InitializeComponent() {
        global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(App));
    }

Someone can help me to understand why?

Erroe in android debug with a missing moethod

$
0
0

I have this error in android device, in the App.xaml.g.cs

"System.MissingMethodException: System.Func`2<string, string> Xamarin.Forms.Internals.ResourceLoader.get_ResourceProvider()
"

Anyone know something about it?

CSS

$
0
0

is it possible create a css as themes

Is there a way for capturing videos from both rear and front cameras simultaneously with Xam.Forms?

$
0
0

Hi All,
Can be a strange request but for a project of mine I need to capture videos from rear and front cameras in the same time. I’d like to realize a cross-platform app for iOS and Android where I can see the two input cameras showing, side by side, what they are capturing. I know that, if I put side by side the two input videos, I can see them in a wrong aspect ratio but it is not a problem. Do you know if is it possible with Xamarin.Forms to achieve this goal?
Thanks.

UWP LoadFromXaml Causes Exception 'System.PlatformNotSupportedException'

$
0
0

Does anyone have a clue as to why this exception occurs on UWP?
Exception thrown: 'System.PlatformNotSupportedException' in System.Private.Reflection.Execution.dll

It seems to only occur on LoadFromXaml which is stock code under InitializeComponent on all forms. Thanks.

Link to screenshot
imgur.com/a/yhVJg

Displaying Keyboard in Xamarin.foms UWP

$
0
0

Hii,
I want to display a numeric keyboard under a text box, so that I can enter PIN from that Keyboard. How can I do that?


ERROR WITH LATEST NUGET v2.5.0.77 "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded

$
0
0

I just got latest stable 2.5.0.77107 and I can't compile anymore

[myUser]\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.targets(55,3): error MSB4062: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly [myUser]\.nuget\packages\xamarin.forms\2.5.0.77107\build\netstandard1.0\Xamarin.Forms.Build.Tasks.dll.  Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

I replaced my user path with [myUser]

it looks like this bug exists since October in the pre-release:

https://bugzilla.xamarin.com/show_bug.cgi?id=60293

Help: Upgrading from 2.3.4 to 3.0. Android Contents are offset downwards

$
0
0

I had to update a year-old app to the current version of forms. Unfortunately on Android, it seems to think the screen is taller then it actually is (see screen shot). Everything is working just fine for iOS, but all my pages are slightly taller than the screen on Android on multiple devices.

Some things I have tried:

  • Made sure I'm using the latest SDK's and latest Android Support files
  • Hacked in a padding (worked on modal pages, not on MainPage)

Layout description:
Depends on the idiom: On a phone, it's a MasterDetail with a Tabbed Page as Detail, a Navigation Page for the first Child of Tabbed Page (so Menu appears for only that page), and Content Pages for the rest. For Tablet, the Children of the Tabbed pages are all Content Pages. Modal Pages are all Content Pages.

Any help on this would be greatly appreciated.

Azure Xamarin.Forms Quickstart - When Will It Get Updated?

$
0
0

If you create a new Mobile App via Azure QuickStart and select Xamarin.Forms and download the solution (i.e. follow these steps), you'll see the template is pretty out of date. Anyone know when we can expect that seed project (which is really a nice feature) to get updated to .NET Standard Library 2.0 (instead of PCL) and Xamarin.Forms 3.0?

Target Android Version problem using specific version vs compile using Sdk version?

$
0
0

When I use target version as this

vs this

I am having layout differences. my splash screen image becomes bigger. can Somebody suggest what is the difference and why I am experiencing this?

PayPal integration, xamarin forms shared project

$
0
0

Hi, I have a Xamarin forms shared project that has an Android and Windows phone project in it. I'm looking to integrate PayPal to simply make test sandbox payments, i.e. it wont be going live. This will be the first time I have attempted this, so I nothing of the process. Is there a plug in or package that I can add to my application?

also all and any How To's or guides would be greatly appreciated. I'm focused mostly on android integration with windows phone integration as a bonus.

Thanks in advance.

Embedded Image

$
0
0

I followed the example from "WorkingWithImages" but the image won't display without having .Droid. or .iOS. in the xaml path.

Is this difference caused by selecting "Shared Project" rather than ".NET Standard" when selecting Code Sharing Strategy on project setup?

How to build swipe gesture control in xaml like Youtube swipe when playing video down and up swipe

$
0
0
Hi all
How to build swipe gesture control in xaml like Youtube swipe when playing video down and up swipe navigation

packages.config vs package references and migrating?

$
0
0

I was told that I should migrate to project references instead of packages.config because I started my xamarin.forms project more than 3 years ago and that time, template was creating packages.config. Now question is does it make any difference? do i get any benefits out of this migration?
I attempted to migrate it and I end up a problem with one of my package akavache and full linking.
it returns this error. it is reported it already here but no solution. if anybody has any idea about this? If I dont use full linking, it works but i want to use it and i am already skipping akavache assemblies to be linked as in the github issue.

Severity    Code    Description Project File    Line    Suppression State
Error       The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Void System.StreamMixins/<>c__DisplayClass0_0::<WriteAsyncRx>b__0(System.IAsyncResult)'
 in assembly: 'Akavache.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Reactive.Subjects.SubjectBase`1
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
   at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   --- End of inner exception stack trace ---
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
   at Mono.Linker.Steps.MarkStep.Process()
   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() 

Styling on iOS broke with IDE update

$
0
0

I use VS on Windows and VS for MAC on the MAC for writing my Xamarin forms project.

Everything was working fine until the VS for MAC IDE told me there was a bunch of updates which I installed and they seem to have broken the styles on iOS.

XAML Code

<ContentPage.Content>
    <StackLayout>
        <Button Text="Logout" Clicked="Logout_Clicked" Style="{StaticResource DeleteButton}" />
        <Button Text="Test" Clicked="Logout_Clicked" BackgroundColor="Black" TextColor="White" />
        <Button Text="Login" Clicked="Login_Clicked" Style="{DynamicResource DefaultButton}" />
    </StackLayout>
</ContentPage.Content>

The resulting images on both simulators are attached.

These are the 2 styles that are set in the Resource Dictionary of the App.xaml file

<Style x:Key="DefaultButton" TargetType="Button">
            <Setter Property="HorizontalOptions" Value="FillAndExpand" />
            <Setter Property="VerticalOptions" Value="FillAndExpand" />
            <Setter Property="TextColor" Value="White" />
            <Setter Property="BackgroundColor" Value="Black" />
</Style>
<Style x:Key="DeleteButton" TargetType="Button">
            <Setter Property="HorizontalOptions" Value="FillAndExpand" />
            <Setter Property="VerticalOptions" Value="FillAndExpand" />
            <Setter Property="TextColor" Value="White" />
            <Setter Property="BackgroundColor" Value="Red" />
</Style> 

Anyone encountered this and know how to work around it?

My Mac is running Sierra 10.13.4 and the IDE version is 7.5.1 (build 22)

How to use stopwatch in xamarin forms

$
0
0

I'm developing a QUIZ app and i want to show elapsed time in a label. Can someone help me, how to update label in every second.?

Thanks

Ideas on how to create a circle that has a smaller overlapping status circle

$
0
0

So I need to create a circle that will hold the users initials. That's easy enough but that circle needs to have a smaller circle that will overlap it in the bottom right hand portion. The smaller circle will be used to represent the user's status i.e. offline, available, busy, do not disturb, etc. Any ideas on how to accomplish something like that or are there any third party controls that could meet the need, thanks!

Xamarin Auth Account Store

$
0
0

I had been using Xamarin.Auth to save the password locally. After upgrading Xamarin.Auth 1.6.0.2 I can see that AccountStore.Create() method is now obsolete. It suggests to change the signature to AccountStore.Create(Android.Content.Context,String). as the previous method had security concerns.
In my shared project , I changed the definition to AccountStore.Create(Constants.AccountStorePassword), but it gives build error.
Saying "No Overload Method for 'Create' takes one argument".
Can anyone please suggest me what changes do I have to make?
or Do I have to implement the methods natively?

Viewing all 91519 articles
Browse latest View live