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

System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.Rep

$
0
0

I am trying to create a database connection to an online MySQL database. I have already added System.Data and MySQL.Data references to my project. This is my code:

            MySqlConnection con = new MySqlConnection("Server=mydomain; Database=mydb; Uid=myusername; Pwd=mydbpassword; CharSet=utf8");
                        try
                        {
                            con.Open();
                            DisplayAlert("Success", "Database connection is active!", "OK");

                }
                catch(MySqlException ex)
                {
                    DisplayAlert("Database Error", ex.ToString(), "OK");
                }
                finally
                {
                    con.Close();
                }

When I run the code there are no errors but this is what I see:
Unhandled Exception:

System.TypeInitializationException: The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception.

Kindly assist on how to fix this.


XForms iOS project not building with Prism

$
0
0

Hi guys, I have an iOS app I have built and it keeps crashing at app initialisation, I created a new xforms prism iOS app to make sure I did everythin right and that the packages installed were also correct, and they were. Somebody please help me out.

Additional Information
*Prism.DryIoc.Forms v7.2.0.1367 installed in iOS and .NET Standard project
*Prism.Core and Prism.Forms installed in .NET standard project
*App.xaml.cs is the same in both projects (mine and the one created from Prism Template Pack extension which works)

The exception is DryIoc.Container Exception
Message : "Undefined Method "GetDefault" in Type Dry.Ioc.ReflectionTools"
Source : "DryIoc"

The code breaks at `public App(IPlatformInitializer initializer) : base(initializer) {}

App.xaml.cs (for non working solution)

namespace TestApp
{
    public partial class App
    {
        public App() : this(null) { }
        public App(IPlatformInitializer initializer) : base(initializer) { }
        protected override async void OnInitialized()
        {
            InitializeComponent();

            //Navigation code
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }

        protected override void OnStart()
        {
        }

        protected override void OnSleep()
        {
            // Handle when your app sleeps
        }

        protected override void OnResume()
        {
            // Handle when your app resumes
        }
    }
}

how do i do it ? run in the background if the program is closed.

$
0
0

Hello, I am writing from Turkey.
my english is very bad.
code is running in the background when you click the button.
this code is running in the background.
screenshot:

code doesn't work when I fully exit the program. this code does not work if I close the program completely.

question :
How do I run this code even if I exit the program completely ? I want this code to run even if the application exits. how do i do it ? this code does not work when you close the application.

Removing the second Log-in

$
0
0

Hi Xamarin forum

I just found a chat plugin in google and I want to modify it, (tried but unsuccessful when I modify it) coz I want to remove that popup window that ask what would be the name to be displayed in the chatroom and it triggers connection to the api of the chat what I want is

  1. remove that popup window
  2. the credentials of my login will be used to connect to the chat

anyway I will post the code of my login and that chat codes

Login.cs

async void LogIn(object sender, EventArgs e)
        {
            Pipeline databaseConnect = new Pipeline();

            var page = new LoadingPage();

            var user = new User
            {
                Username = usernameEntry.Text,
                Password = passwordEntry.Text
            };

            try
            {
                await PopupNavigation.Instance.PushAsync(page);

                SqlCommand selectTbl = new SqlCommand("SELECT Username, Password, Firstname, Lastname FROM tblname WHERE Username='"+user.Username+"'AND Password='"+user.Password+"'", databaseConnect.connectDB());
                SqlDataAdapter sqlDataAdapter = new SqlDataAdapter(selectTbl);
                DataTable dataTable = new DataTable();
                sqlDataAdapter.Fill(dataTable);

                if (dataTable.Rows.Count > 0)
                {
                    App.IsUserLoggedIn = true;
                    App.Username = usernameEntry.Text.ToString();
                    App.Password = passwordEntry.Text.ToString();

                    App.FirstName = dataTable.Rows[0]["Firstname"].ToString();
                    App.LastName = dataTable.Rows[0]["Lastname"].ToString();

                    Navigation.InsertPageBefore(new LoadingDataPage(), this);
                    await PopupNavigation.Instance.PopAsync();
                    await Navigation.PopAsync();

                }
                else
                {
                    await DisplayAlert("Wrong Password","Please type your Username / Password","OK");
                    await PopupNavigation.Instance.PopAsync();
                }
                databaseConnect.connectDB().Dispose();

            }
            catch(Exception ex)
            {
              await DisplayAlert("Error","There's something wrong with the internet, Please try again.","OK");
                await PopupNavigation.Instance.PopAsync();
            }
        }

ChatView Model

public class ChatViewModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private string _name;
        private string _message;
        private ObservableCollection<ChatMessage> _messages;
        private bool _isConnected;

        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
                OnPropertyChanged();
            }
        }


        public string Message
        {
            get
            {
                return _message;
            }
            set
            {
                _message = value;
                OnPropertyChanged();
            }
        }

        public ObservableCollection<ChatMessage> Messages
        {
            get
            {
                return _messages;
            }
            set
            {
                _messages = value;
                OnPropertyChanged();
            }
        }
        public bool IsConnected
        {
            get
            {
                return _isConnected;
            }
            set
            {
                _isConnected = value;
                OnPropertyChanged();
            }
        }

        private HubConnection hubConnection;

        public Command SendMessageCommand { get; }
        public Command ConnectCommand { get; }
        public Command DisconnectCommand { get; }

        public ChatViewModel()
        {
            Messages = new ObservableCollection<ChatMessage>();
            SendMessageCommand = new Command(async () => { await SendMessage(Name, Message); });
            ConnectCommand = new Command(async () => await Connect());
            DisconnectCommand = new Command(async () => await Disconnect());

            IsConnected = true;

            hubConnection = new HubConnectionBuilder()
         .WithUrl($"http://xxx.xx.xxx.xxx:5000/Hub")
         .Build();


            hubConnection.On<string>("JoinChat", (user) =>
            {
                Messages.Add(new ChatMessage() { User = Name, Message = $"{user} has joined the chat", IsSystemMessage = true });
            });

            hubConnection.On<string>("LeaveChat", (user) =>
            {
                Messages.Add(new ChatMessage() { User = Name, Message = $"{user} has left the chat", IsSystemMessage = true });
            });

            hubConnection.On<string, string>("ReceiveMessage", (user, message) =>
            {
                Messages.Add(new ChatMessage() { User = user, Message = message, IsSystemMessage = false, IsOwnMessage = Name == user });
            });


        }

        async Task Connect()
        {
            var page = new LoadingPage();
            await PopupNavigation.Instance.PushAsync(page);
            await hubConnection.StartAsync();
            await hubConnection.InvokeAsync("JoinChat", Name);
            await PopupNavigation.Instance.PopAsync();
            IsConnected = true;
        }

        async Task SendMessage(string user, string message)
        {
            await hubConnection.InvokeAsync("SendMessage", user, message);

            Pipeline sqlConnection = new Pipeline();

            if (sqlConnection.connectDB().State == System.Data.ConnectionState.Open)
            {
                SqlCommand sqlInsert = new SqlCommand("INSERT INTO tblname(chatName, messageContent)" +
                        "VALUES(@chatName, @MessageChat)", sqlConnection.connectDB());
                //sqlInsert.Parameters.AddWithValue("@chatName", emailfield.Text);
                sqlInsert.Parameters.AddWithValue("@chatName", user);
                sqlInsert.Parameters.AddWithValue("@MessageChat", message);
                int i = sqlInsert.ExecuteNonQuery();
                sqlConnection.connectDB().Close();
            }

        }

        async Task Disconnect()
        {
            await hubConnection.InvokeAsync("LeaveChat", Name);
            await hubConnection.StopAsync();
            var homepage = new HomePage();
            var page = new LoadingPage();
            await PopupNavigation.Instance.PushAsync(page);
            Application.Current.MainPage = new NavigationPage(homepage);
            await PopupNavigation.Instance.PopAsync();
            IsConnected = false;
        }

        protected virtual void OnPropertyChanged([CallerMemberName]string propertyName = "")
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }

Chat.xaml

<ContentPage.Resources>
        <ResourceDictionary>
            <converters:InverseBoolConverter x:Key="InverseBool" />
        </ResourceDictionary>
    </ContentPage.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <BoxView BackgroundColor="Black"/>
        <Label
            Margin="10"
            FontSize="20"
            HorizontalOptions="FillAndExpand"
            HorizontalTextAlignment="Start"

            TextColor="White" />
        <Label
            Margin="10"
            FontSize="20"
            HorizontalOptions="End"
            HorizontalTextAlignment="Start"
            Text="Close"
            TextColor="White">
            <Label.GestureRecognizers>
                <TapGestureRecognizer Command="{Binding DisconnectCommand}" />
            </Label.GestureRecognizers>
        </Label>
        <ListView
            Grid.Row="1"
            FlowDirection="RightToLeft"
            HasUnevenRows="True"
            ItemsSource="{Binding Messages}"
            SeparatorVisibility="None"
            VerticalOptions="End">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <Grid>
                            <Grid IsVisible="{Binding IsSystemMessage}">
                                <Label
                                    Margin="20,5"
                                    FontSize="16"
                                    HorizontalOptions="CenterAndExpand"
                                    HorizontalTextAlignment="Center"
                                    Text="{Binding Message}"
                                    TextColor="#969daf" />
                            </Grid>
                            <Grid IsVisible="{Binding IsSystemMessage, Converter={StaticResource InverseBool}}">
                                <Grid IsVisible="{Binding IsOwnMessage, Converter={StaticResource InverseBool}}" RowSpacing="0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="5*" />
                                        <ColumnDefinition Width="5*" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label
                                        Grid.Column="1"
                                        Margin="10,0"
                                        HorizontalOptions="End"
                                        HorizontalTextAlignment="End"
                                        Text="{Binding User}"
                                        TextColor="#969daf" />
                                    <Grid
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Margin="20,5"
                                        Padding="10"
                                        HorizontalOptions="End"
                                        VerticalOptions="FillAndExpand">
                                        <BoxView
                                            BackgroundColor="#f5f9fa"
                                            CornerRadius="30"
                                            HorizontalOptions="FillAndExpand" />
                                        <Label
                                            Margin="10"
                                            LineBreakMode="CharacterWrap"
                                            Text="{Binding Message}"
                                            TextColor="#696f7f"
                                            VerticalOptions="FillAndExpand" />
                                    </Grid>
                                </Grid>

                                <Grid IsVisible="{Binding IsOwnMessage}" RowSpacing="0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="5*" />
                                        <ColumnDefinition Width="5*" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                    <Label
                                        Margin="10,0"
                                        HorizontalOptions="Start"
                                        Text="{Binding User}"
                                        TextColor="#969daf" />
                                    <Grid
                                        Grid.Row="1"
                                        Margin="20,5"
                                        Padding="10"
                                        HorizontalOptions="Start"
                                        VerticalOptions="FillAndExpand">
                                        <BoxView
                                            BackgroundColor="#2ac2c5"
                                            CornerRadius="30"
                                            HorizontalOptions="FillAndExpand" />
                                        <Label
                                            Margin="10"
                                            LineBreakMode="CharacterWrap"
                                            Text="{Binding Message}"
                                            TextColor="White"
                                            VerticalOptions="FillAndExpand" />
                                    </Grid>
                                </Grid>
                            </Grid>
                        </Grid>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <Grid
            Grid.Row="2"
            ColumnSpacing="0"
            RowSpacing="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="70" />
            </Grid.ColumnDefinitions>
            <Entry
                BackgroundColor="#f5f9fa"
                Placeholder="Message"
                PlaceholderColor="#969daf"
                Text="{Binding Message}"
                 x:Name="ChatEntry"
                TextColor="Black" />
            <Button
                Grid.Column="1"
                Command="{Binding SendMessageCommand}"
                HorizontalOptions="FillAndExpand"
                Text="Send"
                VerticalOptions="FillAndExpand" />
        </Grid>

    The following line is the one that triggers the pop up windows

        <Grid
            Grid.RowSpan="3"
            BackgroundColor="#99FFFFFF"
            IsVisible="{Binding IsConnected, Converter={StaticResource InverseBool}}">
            <StackLayout
                Margin="20,40"
                BackgroundColor="White"
                HorizontalOptions="Center"
                VerticalOptions="Center">
                <Label
                    HorizontalOptions="Center"
                    Text="Continue As"
                    TextColor="Black"
                    VerticalOptions="Center" />
                <Entry
                    BackgroundColor="#f5f9fa"
                    Placeholder="Name"
                    x:Name="NameHolder"
                    PlaceholderColor="#969daf"
                    Text="{Binding Name}"
                    WidthRequest="150" />
                <Button
                    Grid.Column="1"
                    Command="{Binding ConnectCommand}"
                    HorizontalOptions="FillAndExpand"
                    Text="Submit"
                    VerticalOptions="FillAndExpand" />

End of popup code

            </StackLayout>
        </Grid>
    </Grid>

Hope someone can help me out here

Thanks in advance

Loaction error

$
0
0

Hello everyone i am trying to get the location of the device of user but when i use this code

 var loc = await Geolocation.GetLocationAsync();
                LongMAP = loc.Longitude.ToString();
                LatMAP = loc.Latitude.ToString();

i got this error "object reference not set to an instance of an object"
i used others Nuget but i am geting the same error

using Xamarin.Essentials;
using Plugin.Geolocator;

iOS Large title with Shell

$
0
0

Hi guys,

I'm playing with shell and i'm facing an issue when i try to put a large title on my content page (iOS).

According to the documentation https://docs.microsoft.com/fr-fr/xamarin/xamarin-forms/platform/ios/page-large-title, i can use
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:NavigationPage.PrefersLargeTitles="true" or ios:Page.LargeTitleDisplay="Always" to make it work, but as i'm doing everything based on a Shell app, i only have contentPage and not NavigationPage

`

<TabBar>
    <Tab Title="1">
        <ShellContent ContentTemplate="{DataTemplate pages:Page1}"/>
    </Tab>
    <Tab Title="2">
        <ShellContent ContentTemplate="{DataTemplate pages:Page2}"/>
    </Tab>
</TabBar>

`

I try to set it directly in the code behind but i have the same result. And if i embedded my ShellApp in a navigationPage in the App.xaml.cs, i have a NavigationPage must have a root Page before being used. Either call PushAsync with a valid Page, or pass a Page to the constructor before usage exception. Does anyone manage to make it works?

Thanks !

A little yellow circle on left botton on info.plist name

$
0
0

I have a yellow circle on the info.plist name. What means this?

Xamarin.Forms with Navigation TitleView is having left and bottom space in UWP.

$
0
0

Navigation page in UWP is creating space in left and bottom if I use NavigationPage.TitleView to customize the title view.
Can anyone help me in removing space?


Oauth2.0 with Xamarin.Forms iOS/Android

$
0
0

Hi everyone,

I've been trying these days to build a client application using OAuth2.0, but I can say that I succeeded. Firstly, I want to present the context:

I have an OAuth2.0 web page. I created an Xamarin.Forms project from where I open that page in browser by calling the following url:
https://link-to-web-page.com/csc/v0/oauth2/authorize response_type=token&client_id=ClientID&clientSecret=ClientSecret&redirect_uri=http://test-signer/ . I set in the AndroidManifest file an intent filter with the following lines of code:

  <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http"/>
        <data android:host="test-signer"/>
      </intent-filter>

After opening the web page for OAuth2.0, the user must complete username (phone number) and password and he gets an OTP code on the phone and he gets redirected to a page to complete that OTP code. After the user completes OTP code, he gets redirected to the redirect URI set in the calling URL (set in client application with the intent filter -https://test-signer/) and he's now able to select client application to open. Now, in OnCreate method of MainActivity class I can capture the intent that opened the app and get the authorization-code from it. Now I have to call another method which calls the next uri:https://link-to-web-page.com/csc/v0/oauth2/token with a HttpClient().PostAsync(uri, content). The content is a StringContent of JSON type which must contain the next data: "{ \"grant_type\": \"authorization_code\", \"code\": \"" + code + "\", \"client_id\": \""+clientID+"\", \"client_secret\": \""+clientSecret+"\", \"redirect_uri\": \""+redirectUri+"\"}". If that post call is successful, I get the access token and I can do requests to a specified server.

My problem with this approach is that: I open client app, I press the Authorize button, I do the steps on the OAuth2.0 web page and when I get redirected back to client app, I get another instance of the client app (I redirected it to another page of app, not the MainPage which opens when I first start the app).

I tried to do the same thing using nuget Xamarin.Auth following the next link:https://docs.microsoft.com/en-us/xamarin/xamarin-forms/data-cloud/authentication/oauth, but I didn't succeed. I need to implement that solution cross-platform and with intent-filter, now it works just on Android.

Is there anyone who has an ideea of how may I do it? I think it should work with that OAuth2Authenticator but probably I have no idea how to configure it to work. They explain it how to use it for Google, Facebook etc, but not for a particular OAuth2.0 solution.

Thank you very much!

Text doesn't display in entry when pushed up by soft keyboard

$
0
0

I have a scrollview with several entries inside it. When the user taps one of these entries and the soft keyboard appears, the view scrolls up to keep the entry in view as expected. However when the user types some text it is not displayed in the entry. Once the user is finished typing and the keyboard is dismissed, the text shows up in the field. If the screen does not have to scroll everything works just fine. This only happens on android.

My question: Is this a known bug? Or is there something I'm missing? I can't seem to find any information on this particular issue.

Here is a simplified example of my page. In this case the Mobile phone entry would not display text if scrolled up by the keyboard

    <ContentPage.Content>
        <ScrollView>
            <StackLayout>
                <Frame Margin="5" BorderColor="#586B8D" CornerRadius="8">
                    <StackLayout>
                        <Label Text="Mobile Phone Number" />
                        <Entry Text="{Binding MobilePhone}" />
                    </StackLayout>
                </Frame>
            </StackLayout>
        </ScrollView>
    </ContentPage.Content>

Some things I've tried:

  • Removing the binding to see if it is related to that
  • Removing the Entry from the frame

How to create and run a service in xamarin forms ? Can you share sample codes ?

$
0
0

question 2:

How to create and run a service in xamarin forms ?

Can you share sample codes

Plugin - Matcha.BackgroundService - How to use?

How can i Rename an App IOS

$
0
0

I have an app IOS. I tried to Rename in plist file, but in my device the App remain same name(old). How can i do?

Visual Studio for Mac

Image in carousel view fit to the screen size

$
0
0

I am using a carousel view inside a grid view. My carousel view consists of list of images which will be showed horizontaly. It run well in big screen size phone but when come to a small screen hp like iphone 5 c the images cant fully show. Any idea of how can I solve this?

            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="2*"></RowDefinition>
                <RowDefinition Height="2*"></RowDefinition>
                <RowDefinition Height="3*" ></RowDefinition>
            </Grid.RowDefinitions>~~~~
    <CarouselView  
                Margin="24,13,23,13"
                    Grid.Row="1"
                    HeightRequest="50" WidthRequest="50"
                x:Name="CV">
                        <CarouselView.ItemsLayout>
                        <GridItemsLayout Orientation="Horizontal"  SnapPointsAlignment="Center" SnapPointsType="MandatorySingle"/>
                    </CarouselView.ItemsLayout>
                    <CarouselView.ItemTemplate>
                        <DataTemplate x:Name="data">
                                <StackLayout Grid.Row="1" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
                                    <StackLayout.GestureRecognizers>
                                    <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/>
                                </StackLayout.GestureRecognizers>
                                    <Frame  Grid.Row="1" Margin="0,0,16,0"  x:Name="frame"  BorderColor="LightGray" BackgroundColor="#BCE0FD"  HasShadow="False" 
                                            HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" >
                                        <StackLayout Grid.Row="1" HeightRequest="50" WidthRequest="50" Orientation="Horizontal" Spacing="0">
                                            <Image x:Name="childImage" Source="{Binding .}"  Aspect="AspectFill" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" >
                                            </Image>
                                    </StackLayout>
                                </Frame>
                            </StackLayout>
                        </DataTemplate>
                    </CarouselView.ItemTemplate>
                </CarouselView>

Styling Xamarin.Forms ListView

$
0
0

I'm trying to style the xamarin's default ListView such that when an item is selected, the background color changes to the color I set.

By default, the background color changes to light orange when an item is selected. How can I set that to whatever color I want?


How to customise the Toolbar so all icons/text fits on one line?

$
0
0

I have a tabbed page that uses a collection of ToolbarItems to be added to the navigation bar. These are added successfully but some are not being displayed due to the amount of ToolbarItems added and the length of text on some of them. I have been researching possible solutions for this problem and haven't had much luck, I was hoping it would be as straight forward as padding, margin or LineBreakModes. The only real solution I have been pondering on is a custom renderer (I have never had to do one and don't really know what they are and if I can even apply a custom renderer to a ToolbarItem/Navigation bar).

I have attached an image to this post to show you an example of what I'm referring to. It cannot fit "Assessment" on one line and the Secondary Toolbar (ellipsis menu) is not being shown.

I've googled this problem a lot and didn't come across any posts similar or any suggested solutions but I apologies if this becomes a duplicated post.

Any help will be massively appreciated :)

With XF 4.2.x.x the busy spinning wheel displayed on an app is loaded and run.

$
0
0

This was happening in both Android and iOS. But currently with XF 4.2.0.848062, I see it only in Android. The busy icon goes off if I either go to a page and come back or change the ItemTemplate of the ListViewItem.

Any trick to avoid it? This was not the case with XF 4.1.x.x.

Min and Max time for TimePicker Xamarin Forms.

$
0
0

Hi,
how can I set min and max value for timepicker in xamarin forms ? please suggest.

iOS 13 Upgrade

$
0
0

Hi everyone !

I tested my application developed with Xamarin forms only on the emulator in iOS. I am using Xcode 10.2.1. I need to update my xcode to test my app on iOS 13. After this update I will be able to test my application on real ios phones.

Do you think I should do visual studio 2019(For Mac) updates (iOS sdk etc ...) and xcode update?
Will my app still work properly after I make these updates? Because dark mode and innovations like this came to the ios side.

I'm waiting for your precious advice.
Best regards

Xamarin.Forms page with TitleView accessibility on iOS not working

$
0
0

Hello,

I have a ContentPage which uses NavigationPage.TitleView. Everything is working fine except we are not able to perform UI/automated testing on it. We set all the AutomationIds in the XAML and also tried setting AutomationProperties.IsInAccessibleTree in the code behind, but XCode's Accessibility Inspector tool is still unable to detect the content of the titleView.

Here is the XAML for the title view:

<NavigationPage.TitleView>

<StackLayout.Padding>

0,0,15,0

</StackLayout.Padding>

Our goal is to do ui testing using Appium. So far it is working properly on Android. Any help is appreciated.

Thanks,
Wil

Viewing all 76418 articles
Browse latest View live


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