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

SkiaSharp SKCanvasView loading inconsistancies in Android emulators

$
0
0

Hello,

Strange error happening with SkiaSharp SKCanvasView on Android device emulators.

SKCanvasView implemeted in a contentView like this:

<StackLayout Orientation="Vertical" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" BackgroundColor="#414141" >
                            <skia:SKCanvasView x:Name="canvasView" Grid.Column="0" Grid.Row="0" PaintSurface="OnCanvasViewPaintSurface" Touch="OnCanvasTouch" EnableTouchEvents="True" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" BackgroundColor="#414141" />
</StackLayout>

When the contentView loads, I use a pre-defined _resourceId which is simply a string pointing at an embeddedResource image in the shared project.
The base image is 600px x 300px

            Assembly assembly = GetType().GetTypeInfo().Assembly;

            using (Stream stream = assembly.GetManifestResourceStream(_resourceID))
            using (SKManagedStream skStream = new SKManagedStream(stream))
            {
                _resourceBitmap = SKBitmap.Decode(skStream);
            }

After the constructor completes, the OnCanvasViewPaintSurface() method fires to draw the image onto the canvas.
Note the _resourceBitmap now used to fill the SKCanvasView control...

    void OnCanvasViewPaintSurface(object sender, SKPaintSurfaceEventArgs args)
    {
        SKImageInfo info = args.Info;
        SKSurface surface = args.Surface;
        SKCanvas canvas = surface.Canvas;

        canvas.Clear();

        try
        {
            //base control size
            var baseFrame = SKRect.Create(0, 0, info.Width, info.Height);
            var imageSize = new SKSize(_resourceBitmap.Width, _resourceBitmap.Height);
            var aspect = baseFrame.AspectFit(imageSize);

            var pictureFrame = SKRect.Create(0, 0, aspect.Width, aspect.Height);

            //expand control to the available area
            canvasView.WidthRequest = pictureFrame.Width;
            canvasView.HeightRequest = pictureFrame.Height;

            var paint = new SKPaint { FilterQuality = SKFilterQuality.High };
            paint.IsAntialias = true;
            paint.IsStroke = true;

            //load the base image
            canvas.DrawBitmap(_resourceBitmap, pictureFrame, paint);

        }
        catch (Exception ex)
        {
            string s = ex.Message;
        }

    }

As already stated, _resourceBitmap is 600px x 300px.
The SKImageInfo info object shows an initial size of 40x40.

The SKRect pictureFrame used to transform the image when loaded in the DrawBitmap() method, is scaled using the aspect object. This enlarges as does the info object as the method is called each time, thus the image is animated as it opens and is displayed. Finally, the image is actually enlarged and displayed filling the space available to it. In the Nexus5x case, final dimensions are 1200x600.

Here's the issue - if I run this in a Nexus5x emulator using API 26 Android 8.0, the OnCanvasViewPaintSurface() is called 5 times as the SKCanvasView animates up to full view. No problems, works as expected.

If I run this in a 7" Tablet or 10" Tablet emulator also running API 26 Android 8.0, the OnCanvasViewPaintSurface() is only called twice and the base image is never displayed at it's full size and certainly never fills the space available.

No idea why this is happening. Same code, same OS version, different emulators, different display results.

Any ideas?

Questions:
How can I turn OFF animation on the SKCanvasView? it ALWAYS animates on opening.
I want it to load to max available size/space and only call the OnCanvasViewPaintSurface() once and not twice or five times... OR call/invoke the OnCanvasViewPaintSurface() method as many time as needed as long as it displays the image in full.

How can I determine the max size the SKCanvasView can expand to PRIOR to loading any image? This will vary from device to device obviously.

Any advice or insights would be welcome!

Thank you.


Testing Modified xamarin cross plat library/plugin using DLL referencing

$
0
0

If I fork one of the open source xamarin forms plugin (ex. JamesMontemagno's connectivity plugin)

And If I make some modification to it,

How can I test the modified plugin on PCL project using reference to DLL not nuget?

How to wrap the text in EditText Control in Xamarin.Forms?

$
0
0

Hi All,

I have tried to wrap the text in EditText class in Xamarin.Forms. But it is not working in XForms.Android and Xamarin.Android(Native).

I have tried with Gravity property of EditText class and googled lot. But i didnot get any idea on this.

Textwrapping is working fine in XForms.UWP and XForms.IOS.

Is there any way to achieve this?

Regards,
Srinivasan

Forms project and obfuscation

$
0
0

I have some experience obfuscating Xamarin Android projects but I'm hitting a wall with Xamarin Forms. The linker does not accept the obfuscated DLL.

Has anyone gotten an obfuscator to work with Xamarin Forms? If so, which?

Thank you all.

When I add a second activity for android target, it has not TitleBar

$
0
0

Hey,

Because I want to create a native Android Preference screen in my xamarin forms app, I added a second Activity:

    [Activity(Label = "Unicat OM Settings", Icon = "@drawable/icon", Theme = "@style/MainTheme", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
    public class SettingsActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            RequestWindowFeature(WindowFeatures.ActionBar);
            this.Title = "Title";
            base.OnCreate(bundle);

            // Display the fragment as the main content.
            PrefsFragment prefsFragment = new PrefsFragment();
            this.FragmentManager.BeginTransaction().Replace(global::Android.Resource.Id.Content, prefsFragment).Commit();
        }
    }

The theme @style/MainTheme is set to:

 <style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
...

Unfortunately, the activity does not have a Titlebar. As you can see in the code, I tried to add the Titlebar via RequestWindowFeature, but no luck.

How can I add the titlebar?

I just realize, I kind of double post with here: https://forums.xamarin.com/discussion/106180/adding-a-actionbar-to-a-preferenceactivity#latest
Sorry for that.

DataTemplateSelector ListView Xamarin Forms Setup

$
0
0

https://burkharts.net/apps/blog/advanced-listview-bindings/

https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/templates/data-templates/selector

Used the previous two links as a guide.

Am trying to set up list view using a DataTemplateSelector purely in XAML (apart from the DataTemplateSelector code).
However, I am receiving the following exception with no additional information:
Fixed: Value cannot be null Parameter Name: source

Posted my code below. I have removed parts that aren't relative to the list view in an attempt to make it easier to read. Something of note, it works when I don't use the DataTemplateSelector. In the code below, in the section label Main List View, you'll see I have my DataTemplateSelector version of the list view commented out.

For this reason I know my viewcell level bindings are working correctly so I have omitted my viewcell level view and viewModel.

Main List ViewModel below

` public class AboutViewModel : BaseViewModel
{
public ImageSource ProfileImage { get; set;}
public ObservableCollection PostViewModelList { get; set; }
public AboutViewModel()
{
Title = "Profile";
ProfileImage = UriImageSource.FromUri(new Uri("https://nxtathlete-dev.s3-us-west-2.amazonaws.com/users/avatars/000/000/015/medium/download.jpg?1522613035"));
MoreCommand = new Command(() => Device.OpenUri(new Uri("https://xamarin.com/platform")));

        ListAllPostsCommand = new Command(async () => await ListLatestPosts());
        ListVideosCommand = new Command(async () => await ListLatestPosts());
        ListStatsCommand = new Command(async () => await ListLatestPosts());

        PostViewModelList = new ObservableCollection<PostViewModel>
        {
            new PostViewModel(null, ProfileImage),
            new PostViewModel(null, ProfileImage),
            new PostViewModel(null, ProfileImage),
            new PostViewModel(null, ProfileImage)
        };
    }`

Main List VIEW

`<ContentPage.BindingContext>
    <vm:AboutViewModel />
</ContentPage.BindingContext>


<!--<ContentPage.Resources>
    <ResourceDictionary>
        <DataTemplate x:Key="videoPostTemplate">
            <local:PostViewCell BindingContext = "{Binding}" />
        </DataTemplate>
        <DataTemplate x:Key="statsPostTemplate">
            <local:PostViewCell BindingContext = "{Binding}" />
        </DataTemplate>
        <local:PostTemplateSelector x:Key="postTemplateSelector" 
            VideoPostTemplate="{StaticResource videoPostTemplate}"
            StatsPostTemplate="{StaticResource statsPostTemplate}" />
    </ResourceDictionary>
</ContentPage.Resources>-->


            <StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="Center">
                <ListView ItemsSource="{Binding PostViewModelList}" HasUnevenRows="True" SeparatorColor="White">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <local:PostViewCell BindingContext = "{Binding}" />
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>

            </StackLayout>`

Data Template selector

`namespace myApp.Views
{
class PostTemplateSelector : DataTemplateSelector
{
public DataTemplate VideoPostTemplate { get; set; }
public DataTemplate StatsPostTemplate { get; set; }

    protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
    {
        var postViewModel = item as ViewModels.PostViewModel;
        return (postViewModel).Type == "video" ? VideoPostTemplate : StatsPostTemplate;
    }

}

}`

ZXing.Net.Mobile bar code scanner problem

$
0
0

I had implement the bar code scanner and it work fine for the first time, based on what I know is you need to have ZXing scanner page to activate the camera to scan.

However when you scan the bar code second time it will show you the previous scanner page and you need to press back to show back the page which display the result. It doesn't remove that page from the navigation stack even I apply POPASYNC.

Anyone can help?

Use EntryCell for password and change visibility?

$
0
0

Hello,

I have a settings page in my app where I want to display several entry fields, toggle switches and change the visibility of some entry fields depending on the state of the toggle switch.

I had so far managed this without table views and cells using a simple grid layout and placing my items (entry, label and switch) in there. I was able to solve the visibility by setting it to a binding.

However, I recently learned about cells and I would like to use the entrycell and switchcell for its simple and implementation and the ability to show text next to a switch.

Is there any way to derive a class from Entrycell and only change the IsPassword property of the entry?

Is there any way to change the visibility of a cell item? I thought about wrapping it inside something that has a IsVisible Property (e.g. Grid or StackLayout) but cannot figure out how to add these to a cell.


Pairing to Mac for Xamarin.forms fails with vague error

$
0
0

I have followed a microsoft guide which i cant link attempting to connect my windows VS2017 to a macbook pro running High Sierra. I have installed the latest version of Xcode and VS for mac on the macbook. Both have the same version of Xamarin.IOS. I have never successfully paired the Mac. I get past authentication and it dies with non specific error:

Couldnt connect to {MacBook Name}. Please Try again.
There was an error while trying to connect the client vs2017068xxx to the 
server.

I can git bash in just fine, Here are the Xamarin logs, of which i can see nothing useful;

Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to 'sMacBook'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on sMacBook (192.168.1.9)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host 'sMacBook' is configured correctly
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on sMacBook (192.168.1.9)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'sMacBook'...
Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting connection to sMacBook...
System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client vs17068ab294 - Created new client session
System.Net.Mqtt.Sdk.Bindings.TcpChannel|Warning|0|The underlying communication stream has completed sending bytes. The observable sequence will be completed and the channel will be disposed
System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs17068ab294 - Packet Channel observable sequence has been completed
System.Net.Mqtt.Sdk.MqttClientImpl|Warning|0|Client - Packet observable sequence has been completed, hence closing the channel
System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client  - Disposing. Reason: RemoteDisconnected
System.Net.Mqtt.Sdk.ClientPacketListener|Information|0|Disposing System.Net.Mqtt.Sdk.ClientPacketListener...
System.Net.Mqtt.Sdk.PacketChannel|Information|0|Disposing System.Net.Mqtt.Sdk.PacketChannel...
System.Net.Mqtt.Sdk.Bindings.TcpChannel|Information|0|Disposing System.Net.Mqtt.Sdk.Bindings.TcpChannel...
System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttClientException: The client vs17068ab294 has been disconnected while trying to perform the connection
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__28.MoveNext()
System.Net.Mqtt.Sdk.MqttClientImpl|Information|0|Client  - Disposing. Reason: Error
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConnectingState to DisconnectedState on sMacBook (192.168.1.9)
Xamarin.Messaging.Ssh.MessagingService|Error|0|An error occurred on the underlying client while executing an operation. Details: The client vs17068ab294 has been disconnected while trying to perform the connection
Xamarin.Messaging.Client.MessagingConnection|Error|0|There was an error while trying to connect the client vs17068ab294 to the Server.
System.Net.Mqtt.MqttClientException: The client vs17068ab294 has been disconnected while trying to perform the connection
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__20.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Client\MessagingConnection.cs:line 65
Xamarin.Messaging.Ssh.MessagingService|Warning|0|The underlying client has been disconnected by the remote host
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to 'sMacBook'...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to DisconnectingState on sMacBook (192.168.1.9)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from sMacBook...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting disconnection from sMacBook...
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectingState to DisconnectedState on sMacBook (192.168.1.9)
Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The connection to 'sMacBook' has been finished
Xamarin.Messaging.Integration.State.ServerStateContext|Error|0|Couldn't connect to sMacBook. Please try again.
Xamarin.Messaging.Exceptions.MessagingException: There was an error while trying to connect the client vs17068ab294 to the Server. ---> System.Net.Mqtt.MqttClientException: The client vs17068ab294 has been disconnected while trying to perform the connection
   at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__28.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__20.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Client\MessagingConnection.cs:line 65
   --- End of inner exception stack trace ---
   at Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__20.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Client\MessagingConnection.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Ssh.SshMessagingConnection.<ConnectAsync>d__41.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Ssh\SshMessagingConnection.cs:line 172
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Ssh.MessagingService.<ConnectMqttAsync>d__79.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingService.cs:line 461
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Messaging.Ssh.MessagingService.<ConnectAsync>d__64.MoveNext() in E:\A\_work\16\s\External\messaging\src\Xamarin.Messaging.Ssh\MessagingService.cs:line 192

Set navigation bar title position to center in xamarin forms is it possible? If possible how to do??

$
0
0
How to set navigation bar title position to center in xamarin forms?

MainPage.xaml.cs sharing with MainActivity.cs

$
0
0

I noticed I can only access objects (labels etc...) from MainPage.xaml.cs.
Certain things, like a NuGet Bluetooth pacakage i have (Plugin.BLE) Can only be referenced in MainActivity.
So, what I need, is either a way to use my Plugin.BLE in MainPage.xaml.cs...
Or, to be able to access my label etc, from MainActivity.
Any help?

GET webdata - Working on UWP, Android not building connection

$
0
0

I've been requesting some DATA using the a nuget plugin (Binance.NET) in my shared Project. Works flawlessly on UWP aswell as a .net core and asp.net application i am running but for some reason on android debugging it can not get the data.

It throws following error when using it in the constructor or calling the data later on through a button.
"Web error: No response from server"

Is there a obvious Android behaviour that i am not familiar with and am ignoring?

Xamarin form build apk how to reduce file size?

$
0
0

I have a problem when exporting apk file with xamarin form project, file size is too large. Without a linker with a blank application, its capacity is 65 Mb. After I used the linker: Sdk and User Assemblies the capacity has dropped to 11 Mb (it is still huge for a blank application). I have read through some articles about skip unused libraries such as Mono.android and mscorlib, when I inserted the configuration "Skip linking Assemblies -> Mono.Android.dll; mscorlib.dll" File size remains unchanged. Can the file size be reduced again? Or is it a minimum or average file size when exporting to apk? Anyone can help me?
Sorry for my bad english.
Thank you in advance.

Add Tabbed Page Inside Content page.

$
0
0

I want to tabbed item Inside Content Page Because i have to Display Some Button Inside Content page with tabbedPage. Anyone suggest me how can i do .i have attached image what exactly i want.please reply as soon as possible. thanx in advance. is it possible to design i have attached ???

Best way to pass info back to previous page

$
0
0

Hello there!

I'm solving troubles by my own, but sometiems I need some advices.
I have to select a list of items, so I create a ListView page, got its ViewModel with a list, and when I got all done, you tap "Ok"and I delete items not selected from the list. Now I need to pass this list to the parent page to work with it.
I found some solutions, but I wonder what is the best:

  • First option is: parent page has the instance of the child's ViewModel because it was the one who create it. So my first option was to use OnAppearing to check if the child ViewModel exists and it has any element remaining in it's list, to grab them and do whatever it needs.
  • My second though was to pass the parent ViewModel to the child as a parameter, and when the child work is done, call a parent ViewModel command with the selected item list to work with, and when it finish, use Navigation.PopAsync().
  • Lastly, I read some more, and I found Navigation.GoBackAsync. It looks good because it can call the parent ViewModel command when it's returning only from a child, but I'm not sure if it works the same way as PopAsync method but adding an event and parameters.

What's the best option to get the code as simple as possible (keep in mind that I'm a noob in Xamarin and I'm learning bit by bit ^^U).
Thank you!!


Unable to solve the 'System.AccessViolationException' while validating Sign In credentials..

$
0
0

Execution stops when I am clicking the Sign In with the following exception output:

An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

The program '[12516] Day2_SQLite.UWP.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

using System;
using System.Collections.Generic;
using System.Linq;
using SQLite;
using Day2_SQLite.Models;

namespace Day2_SQLite
{
public class RegistrationRepository
{
public string StatusMessage { get; set; }
private bool SigninIsValid;

    SQLiteConnection conn,conn_validate;

    public RegistrationRepository(string dbPath)
    {
        // TODO: Initialize a new SQLiteConnection
        conn = new SQLiteConnection(dbPath);
        conn_validate = new SQLiteConnection(dbPath);
        // TODO: Create the registration table
        conn.CreateTable<Registration>();
    }

    public void AddNewPerson(string name, string email, string password, string gender, string mobile)
    {
        int result = 0;
        try
        {
            //basic validation to ensure a name was entered
            if (string.IsNullOrEmpty(name))
                throw new Exception("Valid name required");
            else if (string.IsNullOrEmpty(email))
                throw new Exception("Valid email required");
            else if (string.IsNullOrEmpty(password))
                throw new Exception("Valid password required");
            else if (string.IsNullOrEmpty(gender))
                throw new Exception("Valid gender required");
            else if (string.IsNullOrEmpty(mobile))
                throw new Exception("Valid mobile no. required");

            // TODO: insert a new person into the Person table

            result = conn.Insert(new Registration { Name = name, Email = email, Password = password, Gender = gender, Mobile = mobile  });

            StatusMessage = string.Format("{0} record(s) added [Name: {1}]", result, name);
        }
        catch (Exception ex)
        {
            StatusMessage = string.Format("Failed to add {0}. Error: {1}", name, ex.Message);
        }

    }

    public IEnumerable<Registration> GetPeople(string email)
    {
        // TODO: return a list of people saved to the Person table in the database
        try
        {
            var result = conn.Query<Registration>("select * from registration where Email=?", email);
            return result;
        }
        catch(Exception ex)
        {
            StatusMessage = string.Format("Failed to retrieve data. {0}", ex.Message);
        }
        return null;

    }

    public bool LoginValidate(string email, string password)
    {

        SigninIsValid = false;
        try
        {
            var data = conn_validate.Table<Registration>();
            var found = data.Where(x => x.Email == email && x.Password == password).FirstOrDefault();
            if (found != null)
            {
                SigninIsValid = true;
            }
        }
        catch (Exception ex)
        {
            StatusMessage = string.Format("Failed to retrieve data. {0}", ex.Message);
        }

        return SigninIsValid;
    }

}

}

Thanks in advance :smile:

Extract Cookie from Web Response in Xamarin.Forms

$
0
0

How can we get cookie from the response header? Is there any way to get cookie other than from web response.
For me web response cookie count is 0.

WebResponse webResponse = request.GetResponse();
CookieContainer cookie = request.CookieContainer; // here cookie is null

Please help.

How to do dependency injection in App.xaml using Prism

$
0
0
Hi,

I need to check a db entry to decide which Navigation page to open on App startup. How can I access a service from the container to get the flag’s value?


If (isProvisioned)
{
await NavigationService .navigateasync(“Navigation/main”);
}
else
{
await NavigationService .navigateasync(“Navigation/signup”);
}


Private static bool IsProvisioned()
{
//1. Call service to get value
// 2. Set return to value
}

How to change navigation bar title from cs code?

$
0
0

I want to change navigation page title from code,so how to do this in xamarin forms?

In-App Purchase failed submit app on Store

$
0
0

I have ask this question on MSDN Forum this is link of MSDN, I post here to find more solution!
My app is live on Microsoft Store few month ago. Now when I release update it's failed. I only change some grammar, I don't change any thing about In App Purchase. But I get this warning from Microsoft. I using Plugin.InAppBilling of Jame I think he is a Microsoft Staff here is the link

Please take the following action

We reviewed your submission and identified some changes that are needed before we can publish or update the app. Please make these changes and resubmit your app. For more information, contact reportapp@microsoft.com Please include your app ID so we can act quickly.

App Policies: 10.8.1 In-App Purchase: Digital Goods & Services

Notes To Developer

Your app enables in-app purchase of digital goods or services but does not use the Microsoft Store in-app purchase API.

Tested Devices: Windows 10 Desktop, Windows 10 Mobile

Please Note
Your current certification results might differ from earlier submissions because Windows Store policy requirements can change over time. When policies change, we might re-test according to the new requirements regardless of the submission type. Please always rely on your most recent certification results.

Viewing all 89864 articles
Browse latest View live


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