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

Samsung keyboard covers entry cells in xamarin forms; Other android and iOS seem to work w/o issue

$
0
0

I have a form with a table view to display info to the user as well as let them edit it.

<StackLayout>
    <Frame>
        <TableView>
            <TableRoot>
                <TableSection>
                    <EntryCell/>
                </TableSection>
                <TableSection>
                    <ViewCell>
                        <StackLayout >
                            <Label />
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Editor Text="{Binding Service.ExtProblem, Mode=TwoWay}" 
                                         HorizontalOptions="FillAndExpand"
                                         VerticalOptions="FillAndExpand"
                                        AutoSize="TextChanges"
                                        InputTransparent="{Binding ProblemLocked}"/>
                            </Grid>
                        </StackLayout>
                    <EntryCell Keyboard="Numeric"
                                           x:Name="AmtToCollectEntry"
                                           Label="Amt To Collect" 
                                           Placeholder="$0.00"
                                           Text="{Binding Service.AmtToCollect, Mode=TwoWay, Converter={StaticResource CurrencyConverter}}"
                                           LabelColor="{DynamicResource headerFooterIconColor}"/>
                </TableSection>
            </TableRoot>
        </TableView>
    </Frame>
</StackLayout>

This is the basic format of the form, with a few more of the ViewCells containing Editors. For whatever reason when some of my testers with Samsung devices try to use the form, the keyboard covers the entry fields so the user can't see what they are typing. Additionally, when first selecting the numeric EntryCell, it seems to get deselected and none of the input gets recorded. Some playing around on the form and coming back seems to let you select it correctly the second time.

What's weird is I can't repeat this with another android device (Google pixel and some no-name android tablet) or iOS. Anything I was able to research on it seemed to only come up with iOS keyboard issues and a few years old. Please help.


how to bind selected date to viewmodel in xamarin forms using date picker

$
0
0

I am trying to bind the selected date from DatePicker to ViewModel.
I have tried like this:

      <DatePicker Date="{Binding Path=MyList.DOB}">
      </DatePicker>

can you please anyone suggest me how to bind the date from the datapicker in xamarin forms using XAML

How to design tabbed page inside tabbed and list view?

$
0
0
Hi Everyone. Am very new too xamarin.forms I want to design like this same page. Pls give me any suggestions. Myself tried top tabbed page and bottom menu set inside stacklayout. I don't know how to design inside tabbed page and list view. Pls give me any suggestions.

Advance thanks.
Anandhamurugan.

Underlying connection closed error when running UI Tests

$
0
0

SetUp : System.Net.Http.HttpRequestException : An error occurred while sending the request.
----> System.Net.WebException : The underlying connection was closed: The connection was closed unexpectedly.
at Xamarin.UITest.Shared.Http.HttpClient.SendData(String endpoint, String method, HttpContent content, ExceptionPolicy exceptionPolicy, Nullable1 timeOut) at Xamarin.UITest.Shared.Http.HttpClient.Post(String endpoint, String arguments, ExceptionPolicy exceptionPolicy, Nullable1 timeOut)
at Xamarin.UITest.Shared.Android.HttpApplicationStarter.Execute(String intentJson)
at Xamarin.UITest.Shared.Android.LocalAndroidAppLifeCycle.LaunchApp(String appPackageName, ApkFile testServerApkFile, Int32 testServerPort)
at Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
at Elog.UITest.Regression59.BeforeEachTest()
--WebException
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)

ENV:
Xamarin 4.11.0.776 (d15-8@1ae9b59d7)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 4.15.9 (d000f568b)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 1.1.116 (9619170)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 9.0.0.19 (HEAD/a8a3b0ec7)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 12.0.0.15 (84552a4)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Andriod SDK 8.1 Oreo, Platform 27
Visual Studio 15.8.4

ListView Grouping ShortName Appearance

$
0
0

Is there anyway to update how the GroupShortName appears on screen? I am getting reports from users saying that they are too small and hard to click on. We only have 3 groups in our ListView so if we could increase the size or spacing for the short names I believe we could improve user experience.

Does anyone know if it's possible to update that appearance?

Using declarative style C# instead of XAML - should Xamarin redirect XAML efforts elsewhere?

$
0
0

Introduction

Miguel tweeted:
"I should have never added Xaml and instead invented our own ...", expressing regrets about having to deal with XAML (standardization) problems.

My response was:
"I would applaud dropping XAML altogether. Advancements in C# (declarative syntax) have eliminated any advantages of a separate markup language for years. Why would you want to hand-code an object serialization format? Why waste time on duplicating dev tools for features that c# already offers?"

David expressed an interest to see how I have been creating Xamarin Forms markup in declarative style C#, instead of in XAML, for the past few years. So I write this post to provide a concrete example, and share the reasoning behind my remark (which was deliberately lacking nuance - it is Twitter after all).

Redirecting Xamarin IDE team effort

Why do I spend time on this? In the past years I only experienced advantages from using declarative C# instead of XAML. Given that the core challenge for the Xamarin IDE teams remains to improve the developer productivity, I would love to see some of the effort now being spent on (imo redundant) XAML tooling to be redirected towards reducing IDE bugs and speeding up the dev cycle, i.e. Live Player.

I recently investigated Google's Flutter (build beautiful native apps in record time), which by design has no separate language for markup and which offers hot reload - which is like a Xamarin Live Player without any limitations and a refresh time of 400-600 ms (I checked on devices and emulators). This is what I want from Xamarin!

This is the competition Xamarin is facing today. Some developers are already switching from Xamarin to Flutter because of developer tooling productivity, which apparently can be more important than language or framework or experience. As a Xamarin veteran, I get why they do this. I feel that unless there is a significant team increase, Xamarin needs to focus and redirect existing effort towards developer productivity, meaning less IDE bugs and faster development cycle.

Example
.
Here is an unabridged example of a simple registration code page in a production app I wrote:

Content = new Grid { 
    RowSpacing = 0, 
    RowDefinitions = { new RowDefinition { Height = GridLength.Auto }, new RowDefinition {}},
    Children = {
        PageHeader.Create(PageMarginSize, nameof(vm.RegistrationTitle), returnToPreviousViewCommandPropertyName: nameof(vm.CancelEnterRegistrationCodeCommand), centerTitle:true),

        new ScrollView { Content = new Grid {
            RowDefinitions = {
                new RowDefinition { Height = 170 },

                new RowDefinition { Height = 75 },
                new RowDefinition { Height = GridLength.Auto },
                new RowDefinition { Height = GridLength.Auto }
            },
            RowSpacing = 0,

            ColumnDefinitions = {
                new ColumnDefinition { Width = 160 },
                new ColumnDefinition { }
            },

            Children = {
                new Label {
                    Margin = fieldNameMargin, LineBreakMode = LineBreakMode.WordWrap, 
                    HorizontalOptions = LayoutOptions.FillAndExpand, VerticalOptions = LayoutOptions.Center, HorizontalTextAlignment = TextAlignment.Center, 
                }.SetFontSize(WspFontSizes.Size15)
                 .SetColRow(0, 2, 0, 1)
                 .Bind(nameof(vm.RegistrationPrompt)),

                new Label { Text = "Registration code", VerticalOptions = LayoutOptions.End, Margin = fieldNameMargin }.SetFontSize(WspFontSizes.Size13)
                .SetColRow(0, 1, 1, 2),
                new Label { HorizontalOptions = LayoutOptions.End, VerticalOptions = LayoutOptions.End, Margin = fieldNameMargin }.SetFontSize(WspFontSizes.Size13)
                .SetColRow(1, 2, 1, 2)
                .Bind(nameof(vm.RegistrationCodeValidationMessage)),

                new Entry {
                    Placeholder = "E.g. 123456", HeightRequest = 44, Keyboard = Keyboard.Numeric, 
                    BackgroundColor = WspColors.White.ToColor(), TextColor = WspColors.Gray1.ToColor(), Margin = fieldMargin }.SetFontSize(WspFontSizes.Size15)
                .Bind(nameof(vm.RegistrationCode), BindingMode.TwoWay)
                .Id(AId.RegistrationCodePage_CodeEntry)
                .SetColRow(0, 2, 2, 3),

                new Button {
                    Text = "Verify",
                    Margin = PageMarginSize,
                    HeightRequest = 44,
                    HorizontalOptions = LayoutOptions.FillAndExpand,
                    TextColor = WspColors.White.ToColor(),
                    BackgroundColor = WspColors.ColorValueAccent.ToColor()
                }.SetFontSize(WspFontSizes.Size13)
                 .Id(AId.RegistrationCodePage_VerifyCodeButton)
                 .Bind(Button.IsVisibleProperty, nameof(vm.CanVerifyRegistrationCode))
                 .Bind(nameof(vm.VerifyRegistrationCodeCommand))
                 .SetColRow(0, 2, 3, 4),
            }
        }}.SetColRow(0, 1)
     }
 };

Nothing advanced is going on here, I use standard C# language features to reuse controls (e.g. PageHeader.Create method ) and to simplify data binding (.Bind extension methods). In my eyes the above reads similar to equivalent XAML.

Which is not very surprising given that XAML is at its heart just an object serialization format in XML. In other words, XAML does what the new keyword in C# does.

Now, C# is designed for humans; while XML is better for tools such as visual designers. As a matter of fact, that was the vision for (WPF) XAML: that human designers could use a tool (Blend) to create a UI that developers could consume. However, I experienced how that vision, even in the best possible time and scenario, failed to deliver (I Built a WPF app for Windows tablet together with a XAML book authoring, leading designer, who was a master in Blend, when that was THE tool. The UI was beautiful and totally unmaintainable). So even if there would come an ultimate visual designer tool for Xamarin Forms, equivalent to the best that Blend ever was, it would still fail for the same reasons. Time to move on, like Flutter?

So, anyone (Xamarin devs and Xamarin team) wants to chime in on either XAML versus C# or redirecting Xamarin IDE efforts?
I'm really curious how Xamarin devs (especially experienced ones) see this.

Thanks!

Master/Detail PushAsync

$
0
0

Hi to all.
I followed this https://youtube.com/watch?v=UBqdI77_p-M tutorial which is for Master/Detail.
I create the pages an I can see the menus in the drawer. I add a ItemSelected event but when I tried to PushAsync to my new page an error appear which says that "PushAsync is not supported globally n android".
I tried to change my MainPage as NavigationPage, but a "header" appear in the screen. Is possible to PushAsync or I should use PushModalAsync instead.
How he did it in the youtube tutorial?
Thanks in advance.

Getting avlist view to work in apple but it works great in Android, how do I get it to work in both

$
0
0

Hi all,

I have an couple of issues... the app looks great in android but it looks like feathers on apple.

Some of my issues... the app background image does not look good in apple... is there a way to remove it apple but keep it in Android.
The buttons in apple are not buttons...just text but in Android they look like buttons and are readable.

and there there is the list view thing... I need to display a list that has multiple rows...

My code that I have posted works great in Android... but looks a mess in apple.

blow is the code... can any one provide some guidance?

Thank you.

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

<ContentPage.Content>

        <ListView x:Name="SomeDetailsListView"  SeparatorVisibility="Default" RowHeight="120"> 

            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <StackLayout Orientation="Vertical">
                                <Label Text=""/>

                            <Label  Text="{Binding row1, StringFormat='row Info text1 = {0:N}'}"/>
                            <Label  Text="{Binding row2, StringFormat='row Info text1  = {0:N}'}"/>
                            <Label  Text="{Binding row3, StringFormat='row Info text1  = {0:N}'}"/>
                            <Label  Text="{Binding row4, StringFormat='row Info text1  = {0:N}'}"/>
                            <Label  Text="{Binding row5, StringFormat='row Info text1  = {0:N}'}"/>
                            <Label  Text="{Binding row6, StringFormat='row Info text1  = {0:N}'}"/>
                            <Label  Text="{Binding row7, StringFormat='row Info text1  = {0:N}'}"/>

                        </StackLayout>
                    </ViewCell>

                </DataTemplate>

            </ListView.ItemTemplate>
        </ListView>

    </StackLayout>
</ContentPage.Content>


The case for .NET Standard in favour of shared project for Xamarin.Forms

$
0
0

There is a bunch of information online about using .NET Standard for your Xamarin.Forms app, but I'm still confused as to why you would want to use one over the other. The main sources I have read through/watched:
1. Sharing Code Overview (MS docs)
2. .NET Standard 2.0 Support in Xamarin.Forms
3. .NET Standard and Xamarin.Forms for the .NET Developer

My history is I've been a Xamarin developer since the Novell days. Since the introduction of Xamarin.Forms (1.5ish?) I've always used it for creating apps over Xamarin.iOS and Xamarin.Android directly. I've never created a Forms app with PCL, always shared library. One thing I've relied heavily on is the ability to just go:

#if __IOS__
    UIApplication.SharedApplication.StatusBarHidden = true;
#elif __ANDROID__
    // Other things.
#endif

Being able to do this in the Forms code directly has made things nice and easy. Another example I have used it is in in my own HTTP REST classes, and the ability to use cookie containers in certain ways that would work on both platforms (bugs that may have been resolved now). I now know that in the first example I could create a dependency service called StatusBarActions or something. The second example I know now not to re-invent the wheel and I could just use RestSharp. It's just that one of the listed benefits of using shared code is the ability to use those pre-processor directives.

Likewise two of the main pros of .NET Standard are "Allows you to share code across multiple projects." and "Refactoring operations always update all affected references.". But wouldn't this still be true for a shared Forms app?

Lately I was playing around with converting some smaller in progress apps to be .NET Standard Forms apps. I really enjoy the simplicity of having my main NuGet packages (Xamarin.Essentials, Json.NET, FFImageLoading, sqlite-net-pcl, etc) in the Forms project itself. Its really nice to be able to update all packages at once. The package list also stays nice and short, although I think that's more to do that it doesn't list all package dependencies as new packages. I also liked that it forced me to write cleaner code. Things were good... until I tried Xamarin.Forms on macOS.

Although it is still in preview one of the first things I found that out of the box Xamarin.Essentials was not having a bar of it. It's just one of many packages that may not be supported. It made me think of another project I am working on, Onewheel Community Edition App. It relies heavily on the Plugin.BLE NuGet package that doesn't support macOS or UWP. If I wanted to add either of those platforms I now have to add it via a dependency service or something similar. Alternatively if I used a shared project I could just have a

#if __IOS__ OR __ANDROID__ etc. 

I can see both being possible. One makes it easier when a core component is platform specific, but can also make it more of a pain in the case of Xamarin.Essentials when you may just want to use it to display the app version number.

So the real things I want to know are:

  • Is it worth it?
  • Are there any performance benefits of either?
  • Are there binary size or binary security differences that are worth noting.

What are other peoples experience with it shared vs .NET Standard. Are there some other programming paradigms that I am not thinking of to make .NET Standard apps make more sense?

Read pixel data of Image in Xamarin Forms

$
0
0

Hi Team,
I am looking to get help on converting Image to 3D byte array, reading its RGB values
This code works fine on my .Net platform, but with Xamarin I have trouble getting Color and Bitmap class working together. Could someone help me get an equivalent code for Xamarin platform ?

    byte[] imageData = new WebClient().DownloadData(imurl);
                MemoryStream imgStream = new MemoryStream(imageData);
                curr_img = Image.FromStream(imgStream);
                Bitmap bmp = new Bitmap(curr_img);

                int wSize = curr_img.Width;
                int hSize = curr_img.Height;

                image_inlist = new List<List<List<int>>>(); 
                for(int i=0; i < hSize; i++)
                {
                    List<List<int>> eachrow = new List<List<int>>();
                    for(int j=0; j<wSize; j++)
                    {
                        Color clr = bmp.GetPixel(j, i);
                        eachrow.Add(new List<int> {clr.R,clr.G,clr.B});

                    }
                    image_inlist.Add(eachrow);
                }

I knew this was going to happen.. I broke my application use to work in Android now it does not. :(

$
0
0

I was dreading this...

I worked all day today to get this application to run on an apple meaning getting the dev account info and getting the application to run via a connected Macintosh computer get a device registered and all the other apple hoops you have to jump through... and now my xamarin application for that worked great in Android will not compile...

I get the following errors now:

Severity Code Description Project Path File Line Source Suppression State
Error ADB0020: The package does not support the CPU architecture of this device.
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\21\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 337
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\21\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() 0 Build

So now I cant get it to run on the Android emulator...

Let me ask you all what is the best practices here...

Should I Just creat two visual studio projects and have one setup for the apple and one set up for the Android...

I guess my only bet now is to pull and old version from source control...

THanks for any advice...sorry so many questions... but this experience with xamarin has been a horror show and I just want it to end.

modify image pixels in forms

$
0
0

Hi I want to change a collared image to greyscale before I show it on the screen. Can some one please tell me why my code below is not working?

     private byte[] ConvertMediaFileToByteArray(MediaFile file)
        {
            using (var memoryStream = new MemoryStream())
            {
                file.GetStream().CopyTo(memoryStream);
                return memoryStream.ToArray();
            }
        }

        public void LoadAndConvertImage(MediaFile imgPath){
            byte[] imgSrc = ConvertMediaFileToByteArray(imagePath);
            ConvertToGrayRemoveNoise(ref cropedBytes);

             ImageSource imageSource = ImageSource.FromStream(() =>
            {
                var cropedImage = new MemoryStream(cropedBytes);
                file.Dispose();
                return cropedImage;
            });
            Image Image.Source = imageSource;

        }
        public void ConvertToGray(ref byte[] srcPixels)
        {
            try
            {
                for (int i = 0; i < srcPixels.Length; i += 4)
                {
                    double b = (double)srcPixels[i] / 255.0;
                    double g = (double)srcPixels[i + 1] / 255.0;
                    double r = (double)srcPixels[i + 2] / 255.0;

                    byte a = srcPixels[i + 3];
                    //convert to gray
                    double e = (0.299 * r + 0.587 * g + 0.114 * b) * 255;

                    byte f = Convert.ToByte(e);

                    srcPixels[i] = f;
                    srcPixels[i + 1] = f;
                    srcPixels[i + 2] = f;
                    srcPixels[i + 3] = a;

                }
            }
            catch (Exception error)
            {
                Debug.WriteLine(error.ToString());
            }
        }

I see two issues. Sometime the ConvertToGray function runs into the Catch with a pointer out of range. If this does not happen the initialisation of the image fails with "initWithData returned nil". I would like to work with the byte[] as several plugins with crop also use that as input and output.

Forms Tabbed Page OnAppearing

$
0
0

I have the following code for tabbed Main page but would like to know why are the OnAppearing method being called on all the tabbed pages on first run of the App. Is there a way to only run the OnAppearing then the Tab is the active one ?

TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" 
            xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
            xmlns:local="clr-namespace:MyApp.View;assembly=MyApp"
            x:Class="MyApp.View.MainTabbedPage" 
            xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
            android:TabbedPage.ToolbarPlacement="Bottom"

            BarBackgroundColor="#4caf50"
            BarTextColor="White"
            android:TabbedPage.IsSwipePagingEnabled="False"
            android:TabbedPage.BarItemColor="#66FFFFFF"
            android:TabbedPage.BarSelectedItemColor="White" >

    <TabbedPage.Children>
        <NavigationPage x:Name="DeviceNavPage" 
                        Title="Devices" 
                        Icon="devices" 
                        BarBackgroundColor="#4caf50" >
            <x:Arguments>
                <local:DevicePage />
            </x:Arguments>
        </NavigationPage>
        <NavigationPage x:Name="SharingNavPage" 
                        Title="Sharing" 
                        Icon="share" 
                        BarBackgroundColor="#4caf50" >
            <x:Arguments>
                <local:SharingPage/>
            </x:Arguments>
        </NavigationPage>
        <NavigationPage x:Name="SettingNavPage" 
                        Title="Settings" 
                        Icon="settings" 
                        BarBackgroundColor="#4caf50" >
            <x:Arguments>
                  <local:SettingPage/>
            </x:Arguments>
        </NavigationPage>


    </TabbedPage.Children>

</TabbedPage> 

size of screen

$
0
0

Hello,
Is it possible with xamarin forms, for Android and IOS, to know the size of the screen on which the application is launched?
Thank you for your answers.
YC

英国布里斯托大学文凭毕业证成绩单Q微信9105133英国布大毕业证成绩单学位证书文凭学历认证/留信网认证/使馆认证公正University of Bristol

$
0
0

英国布里斯托大学文凭毕业证成绩单Q微信9105133英国布大毕业证成绩单学位证书文凭学历认证/留信网认证/使馆认证公正University of Bristol


英国曼彻斯特大学文凭毕业证成绩单Q微信9105133英国 UoM毕业证成绩单学位证书文凭学历认证/留信网认证/使馆认证公正The University of Manchester

$
0
0

b英国曼彻斯特大学文凭毕业证成绩单Q微信9105133英国 UoM毕业证成绩单学位证书文凭学历认证/留信网认证/使馆认证公正The University of Manchester

How to compress SignaturePad Image?

$
0
0

Hello,
I am using Signature Pad in my application and I want to compress my image before getting it.So is there any compression method for signature pad?

Tailwind Traders TwoProductItemTemplate Binding

$
0
0

Hi! I've been going through the Tailwind Traders app, examining their code and learning a bunch, attempting to replicate a lot of their stuff to gain the experience. I'm currently stuck on how they're databinding their ProductView XAML to their ProductViewModel? I notice in the codebehind for the ProductCategoryPage in their WireProductsUpWithListView method that they are merely setting their ListView's source to basically a list (tuple) of ProductViewModels.

I similarly have a ListView that is successfully binding to my custom ItemTemplate, and I even get each item to show in the ListView, the data isn't being bound however.

I have a feeling it lies in their ItemTemplate, the code I'm having a hard time understanding:

  <local:ProductView BindingContext="{Binding Item1}" />

  <local:ProductView
    Grid.Column="1"
    BindingContext="{Binding Item2}"
    IsVisible="{Binding ., Converter={StaticResource IsNotNullConverter}}" />

I understand this is just for creating 2 columns of ProductView, and an empty space for if there is an odd number, but I cannot for the life of me figure out how they are BindingContext = "{Binding Item1}". I can't figure out what exactly that Item1 or Item2 is, I have searched the entire solution for what it's binding to, with no luck. From my understanding, shouldn't their BindingContext's be to the ProductViewModel? I haven't managed to find anything substantial online for this kind of binding, unless I suck at Google haha, any help would be appreciated!

how I can do my WebView app multi language?

$
0
0

Hello

I want do my Xamarin form app multi language, no only display information by on url ( Spanish on this casi) but I will like display Spanish url if device is in Spanish and if not display English url, how I can do it?

Now I have this on MainPage.xaml.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;

namespace APPNAME
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();

        WebView webView = new WebView
        {
            Source = new UrlWebViewSource
            {
                Url = "SPANISH URL"
            },
            VerticalOptions = LayoutOptions.FillAndExpand
        };

        // Build the page.
        this.Content = new StackLayout
        {
            Children =
            {
                webView
            }
        };
    }
}

Thanks for your help

How do I integrate the Stripe API into Xamarin.Forms PCL?

$
0
0

Hello community! I noticed recently that the Xamarin Stripe component and documentation no longer exist. Can someone provide an example on how to integrate the Stripe API into a Xamarin.Forms PCL application please? I must be able to process credit card payment from users when they click a Button view. I have a page with Entry views, such as Name on Card, Credit Card Number, etc. and a Button at the bottom. Thank you!

Viewing all 91519 articles
Browse latest View live


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