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

HybridWebView not work properly

$
0
0

Hey,

I have a HybridWebView like the MS example.

But my website is made with ASP Core, and I can't call C# Action from Javascript in my website.

So I ask if someone as already done this. And something which is weird is I did reverse I implement call javascript from C# and it works so I don't understand very well.

The code :

My custom render :

const string JavascriptFunction = "function invokeCSharpAction(data){jsBridge.invokeAction(data);}";
if (Control == null)
            {
                // Instantiate the native control and assign it to the Control property with
                // the SetNativeControl method

                var webView = new Android.Webkit.WebView(_context);
                webView.Settings.JavaScriptEnabled = true;

                // Implement WebViewClient who receive notification and request in JS with personalize function => JavascriptFunction
                //webView.SetWebViewClient(new JavascriptWebViewClient($"javascript: {JavascriptFunction}"));
                webView.SetWebViewClient(new JavascriptWebViewClient(JavascriptFunction));
                webView.SetWebChromeClient(new JavascriptWebChromeClient());

                SetNativeControl(webView);
            }
            if (e.OldElement != null)
            {
                // Unsubscribe from event handlers and cleanup any resources
                Control.RemoveJavascriptInterface("jsBridge");
                var hybridWebView = e.OldElement as HybridWebView;
                //var context = hybridWebView.BindingContext as ViewModelBase;

                // Clean old action to execute in JS
                //context.CleanAllActionInJS();
                hybridWebView.Cleanup();
            }
            if (e.NewElement != null)
            {
                // Configure the control and subscribe to event handlers
                Control.AddJavascriptInterface(new JSBridge(this), "jsBridge");
                var view = e.NewElement as HybridWebView;

                //Control.LoadUrl($"file:///android_asset/Content/{Element.Url}");
                // Add Url to hybridWebview
                Control.LoadUrl(Element.Url);
            }


    public class JavascriptWebViewClient : WebViewClient
        {
            private string _javascript;

            public JavascriptWebViewClient(string javascript)
            {
                _javascript = javascript;
            }

            /// <summary>
            /// When page is charged, execute JS
            /// </summary>
            /// <param name="view"></param>
            /// <param name="url"></param>
            public override void OnPageFinished(WebView view, string url)
            {
                base.OnPageFinished(view, url);
                view.EvaluateJavascript(_javascript, null);

            }
    }


 public class JSBridge : Java.Lang.Object
    {
        readonly WeakReference<HybridWebViewRenderer> hybridWebViewRenderer;

        public JSBridge (HybridWebViewRenderer hybridRenderer)
        {
            hybridWebViewRenderer = new WeakReference <HybridWebViewRenderer> (hybridRenderer);
        }

        [JavascriptInterface]
        [Export ("invokeAction")]
        public void InvokeAction (string data)
        {
            HybridWebViewRenderer hybridRenderer;

            if (hybridWebViewRenderer != null && hybridWebViewRenderer.TryGetTarget (out hybridRenderer))
            {
                //var context = hybridRenderer.Element.BindingContext as ViewModelBase;

                // Depending if pass or not data
                if (!string.IsNullOrEmpty(data)) hybridRenderer.Element.InvokeAction(data);
                else hybridRenderer.Element.InvokeAction();
            }
        }
}

So when I use this in my website the way I think is to do : invokeCSharpAction(mydata) in a JS function.

Thanks


how can i pass a string data from c# to WebView ?

$
0
0

I'm using a WebView that hosting a local Html file . i want to control in the content of local html using c#
for example i want to pass a list of string data to webview and display them as a list of paragraph tags (

<

p>) inside html file
how can i do that ?

Xamarin Forms C# Live calculating Geo location distance

$
0
0

I'm building a Taxi app and wanted to calculate the distance while the trip is going and update from the driver app side

I used Geolocator for live updates from https://github.com/jamesmontemagno/GeolocatorPlugin, I'm getting random locations and it's not stable on live updates so I changed getting the location after a minute.

I'm not getting the current location but a random location and the distance produces more 5000km in 2 minutes before the driver starts moving

` private async Task StartTrackingAsync(bool tracking)
{
try
{
PermissionStatus hasPermission = await CrossPermissions.Current.CheckPermissionStatusAsync(Permission.Location);
if (hasPermission != PermissionStatus.Denied)
{
// Permission Granted
// check for req
if (tracking)
{
// Check is listening...
if (CrossGeolocator.Current.IsListening)
{
// Start

                        CrossGeolocator.Current.PositionChanged += CrossGeolocator_Current_PositionChanged;
                        CrossGeolocator.Current.PositionError += CrossGeolocator_Current_PositionError;
                    }
                    else
                    {
                        CrossGeolocator.Current.PositionChanged += CrossGeolocator_Current_PositionChanged;
                        CrossGeolocator.Current.PositionError += CrossGeolocator_Current_PositionError;

                        object aType = "Automotive Navigation";
                        if (await CrossGeolocator.Current.StartListeningAsync(TimeSpan.FromSeconds(5), 50,
                            true, new ListenerSettings
                            {
                                ActivityType = ActivityType.AutomotiveNavigation,
                                AllowBackgroundUpdates = true,
                                DeferLocationUpdates = true,
                                DeferralDistanceMeters = 100,
                                DeferralTime = TimeSpan.FromSeconds(50),
                                ListenForSignificantChanges = true,
                                PauseLocationUpdatesAutomatically = false
                            }))
                        {

                            tracking = true;
                        }
                    }

                }
                else
                {
                    CrossGeolocator.Current.PositionChanged -= CrossGeolocator_Current_PositionChanged;
                    CrossGeolocator.Current.PositionError -= CrossGeolocator_Current_PositionError;

                    await CrossGeolocator.Current.StopListeningAsync();


                    tracking = false;

                }

            }
            else
            {
                // Permission Denied
                await DisplayAlert("Location Error", "Error Getting Location", "OK");
            }

        }
        catch (Exception ex)
        {
            // Error Accured
            await DisplayAlert("Location Error", "Error Getting Location: " + ex.Message, "OK");
        }
    }

    private void CrossGeolocator_Current_PositionError(object sender, PositionErrorEventArgs e)
    {

    }

    private void CrossGeolocator_Current_PositionChanged(object sender, PositionEventArgs e)
    {
        Device.BeginInvokeOnMainThread(async () =>
        {

            Plugin.Geolocator.Abstractions.Position position = e.Position;

            if (Cposition != e.Position)
            {
                Cposition = e.Position;
                mainmap.MoveToRegion(MapSpan.FromCenterAndRadius(new Xamarin.Forms.Maps.Position(position.Latitude, position.Longitude), Distance.FromMiles(1)).WithZoom(2));

                loader.IsVisible = false;
                mainmap.IsVisible = true;
                local.Lat = position.Latitude;
                local.Lng = position.Longitude;
            }


        });
    }

    private void DistanceUpdate(bool w = false)
    {
        Device.StartTimer(new TimeSpan(0, 0, 1), () =>
        {
            UpdateDistance();
            return w;
        });
    }

    private async  void UpdateDistance()
    {
        // Get Trip Location
        Models.Location SLocal = Trip.Location;

        Xamarin.Essentials.Location startTrip = new Xamarin.Essentials.Location(SLocal.Lat, SLocal.Lng);

        try
        {
            if (local != null)
            {

                Xamarin.Essentials.Location OnTrip = new Xamarin.Essentials.Location(local.Lat, local.Lng);

                double distance = Xamarin.Essentials.Location.CalculateDistance(startTrip, OnTrip, DistanceUnits.Kilometers);
                double t = tdistance + distance;

                tdistance = Math.Round(t, 2);

                if (Trip.Key != null)
                {
                    _firebaseDatabase.UpdateTripDriverLocation(Trip.Key, local);

                    if (Trip.Status == "Started")
                    {
                        _firebaseDatabase.UpdateTripLocation(Trip.Key, local);
                    }
                }
            }
        }
        catch (Exception ex)
        {
            // Unable to get location

            await DisplayAlert(ex.Source, "ERROR: " + ex.Message, "OK");

        }
    }

`

Share from Xamarin Essentials mysteriously quit working after updates, but only on iPad on iOS13.2

$
0
0

I updated my iPad to 13.2, updated to latest XCode on my mac, updated VS, updated to XF 4.3.

I know, not smart.

Everything appeared to work, until I tried the SHARE function of my app on iPad. The pop-over does not appear. An older version of my app works OK, and the new version works OK on my iPhone running 13.1.3.

I did try rolling back XF to what I was using (since it was easy), no help there.

Oh, and well there's another part to this mystery. To share multiple files, I wrote my own code using the iOS api, including creating an Activity Vew Controller (the pop-over). This doesn't work either.

Is there some kind of iPad settings or Info.plist thing I'm missing here? Got me very confused.

Shell Content page destruction

$
0
0

Using 4.3, say I have 3 tab items, each of them having 2 ShellContent items.
I am using ContentTemplate to only create the times when I click on them.

Now since we have quite a large application we would like to destroy the Tab Items Shell Contents if they select another Tab, is this possible? In general how can we destroy a Content page once it gets the disappear event?

thanks

Does anyone have experience with SfRadialMenu?

$
0
0

I need a complex menu with multiple options so the toolbar is not really an option.
I have a Radial menu configured using SyncFusion's SfRadialMenu, but I am having SERIOUS issues trying to get it to display....
Every sample I can find just shows the menu as the only object on a page, so I've been doing a lot of experimenting, but would like to see if anyone has some sample code or advice to help with my issues?

I have created a ContentView that I have my menu built in so I can call it from multiple other pages, but because of my page layouts the menu is having 2 major issues.
1: The menu will not move, even with dragenabled turned on.
2: The menu has a Z layer below everything else, so some of my experimentation has the menu behind other controls.

Is there a way to specify a Z layer? and I assume that the lack of mobility has to do with the implementation constraining to the bounds of what ever control it's parent is. How can I place the menu and have it dragable over the rest of the page?
pseudo code for the implementation would look like this
[app.xaml]

    ...
    <ContentPage.Content>
            <StackLayout>
                    <ScrollView Orientation="Both">
                        <AbsoluteLayout>
                                <Grid>
                    <!-- this is my radial menu content.view -->
                                <converter:RadialMenuPage/>

                    <grid layout page conent.....>

Thanks again!

Why text box rendering process become slow and delay?

$
0
0

I have xamarin android mobile app in my hand. I have no idea why the latest update causing my app slow response in text box. I have a text box which value will be set before the text box showing up. However, the text box did show but with half of the text from top at first, after 3 seconds the complete one only show up. This should not happen in any mobile app as it affects user experience. Any idea guys? Where should I start the investigation in this kind of situation? Thanks.

Error java.exe exit with code 2

$
0
0

What's this error

Error java.exe exit with code 2

How can i fix this?


Removing Underlines From Entry Control

$
0
0

I want an Entry control that is just a simple rectangle. I can manage to wait to deal with the small details of the appearance, but my main concern about the default appearance is the underline (or bottom border, or whatever it actually is). I am assuming I will need to use a custom renderer for this, so here is what I have right now. In my main project I have the following class:
using System.ComponentModel;
using Xamarin.Forms;
namespace ScorePad
{
[DesignTimeVisible(true)]
public class PlayerNameEntry : Entry { }
}
And in my Android project I have the following:
using Android.Content;
using ScorePad;
using ScorePad.Droid;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;

[assembly: ExportRenderer(typeof(PlayerNameEntry), typeof(PlayerNameEntryRenderer))]
namespace ScorePad.Droid
{
    public class PlayerNameEntryRenderer : EntryRenderer
    {
        public PlayerNameEntryRenderer(Context context) : base(context) { }

        protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
        {
            base.OnElementChanged(e);
        }
    }
}
I am very new to Xamarin, so please forgive me for any obvious mistakes. I know that I have not added anything to the OnElementChanged method, but when I did, it didn't make any difference, and I wasn't sure what to put there anyway (since I don't know exactly what the "underline" actually is). What am I doing wrong? Thanks.

Webservice call gets abruptly cancelled when app goes to background and comes to foreground(ios)

$
0
0

For a registration page , on click of register it calls the rest API to register the user. But after clicking on register if i goes to background and comes to foreground it throws web exception that operation can not be completed and software caused connection abort. Any suggestions how to handle this scenario. It occurs only in iOS. Android works fine. I have enabled background modes also, and provided the interval also for background fetch but it stills throws error. TIA. @JamesMontemagno @JohnMiller @RHudson @jezh @JoeManke

Writing to Android External Storage

$
0
0

I'm trying to copy an sqlite database file to an accessible location in the external storage.

Here's the code below:

`private void CopyDatabaseFile(string dbPath)
{
    var destPath = System.IO.Path.Combine(Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).AbsolutePath, "database.db");

    // Destination
    var destFile = new Java.IO.File(destPath);
    var canWrite = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).CreateNewFile();
    var canRead = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDocuments).CanRead();
    if (!destFile.Exists())
    {
        try
        {
            var result = destFile.CanWrite();
            destFile.CreateNewFile();
        }
        catch (Java.IO.IOException ex)
        {
            System.Diagnostics.Debug.WriteLine($"Error Message: {ex.Message}");
            System.Diagnostics.Debug.WriteLine($"Error Source: {ex.Source}");
        }
    }
}`

This is catching a Java.IO.IOException and the error message is Permission denied.

Although i have tried enabling read / write permission for external storage in androidmanifest.xml like this:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

However, i'm getting the same error message.

Any suggestion would be appreciated. :)

Is it possible to combine Xamarin Forms views and Native views?

$
0
0

Hi all. i have a question regarding combining views from Xamarin Forms and native UWP views.
i have one Xamarin forms control with a bunch of labels and buttons, however, i want to display them in a "Pivot" UWP control. i managed to get a Pivot control working with xamarin, however i have not been able to put my xamarin forms control as the content of the pivot control. i have tried with Platform.GetRenderer and GetNativeElement, but this is not succesfull, see the code below:

                foreach (View view in e.NewElement.Children)
                {             
                    var renderer = Platform.GetRenderer(view);
                    renderer.ElementChanged += Renderer_ElementChanged;
                    var native = renderer.GetNativeElement();

                    pivot.Items.Add(new PivotItem() {Header ="Item", Content = native });
                    Debug.WriteLine("Children found");
                }
                SetNativeControl(pivot);

xamarin control:

uwp control:

is this possible or do i have to resort to other methods?

Kind regards, Rick

IconImageSource from FontImageSource

$
0
0

I would like to use IconImageSource from FontImageSource for a Shell enclosed ContentPage's tab with implicit conversion operator, but this way it displays nothing, i have attached a picture to better explain my situation! Thank you!

CollectionView.EmptyView is not showing despite count of items is 0.

$
0
0

Gathered from the documentation:

EmptyView, of type object, the string, binding, or view that will be displayed when the ItemsSource property is null, or when the collection specified by the ItemsSource property is null or empty. The default value is null.

So, im working on a Xamarin Forms app which only has the Android Module right now, I wanted to display a message like the example shown in the documentation by just providing the value of EmptyView like this:

EmptyView="No combos to display. Why don't you add some?"

This is added in the following code:

<CollectionView ItemsSource="{Binding ComboList}" 
               IsGrouped="True" SelectionMode="None"
               EmptyView="No combos to display. Why don't you add some?"
                           RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=1}"
                           RelativeLayout.HeightConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=1}">
                    <CollectionView.Header>
                        <StackLayout>
                            <Label Text="{xt:Translate character_facing_right}"
                                   Margin="{StaticResource HeaderLabelMargin}"
                                   FontSize="Medium"
                                   HorizontalOptions="Center"/>
                        </StackLayout>
                    </CollectionView.Header>
                    <CollectionView.GroupHeaderTemplate>
                         ...
                    </CollectionView.GroupHeaderTemplate>
                    <CollectionView.ItemTemplate>
                        <DataTemplate x:DataType="models:ComboView">
                            <controls:ComboItem Title="{Binding Title}"
                                                Combo="{Binding Combo}"
                                                IsStock="{Binding IsStock}"
                                                Type="{Binding Type}"
                                                UniqueId="{Binding UniqueId}"
                                                Comment="{Binding Comment}"/>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                    <CollectionView.Footer>
                        ...
                    </CollectionView.Footer>
                </CollectionView>

However, when testing, i can see the header of my list but not the EmptyView, even though the list is empty. What am i missing?

Xamarin Forms: Footer image is not displaying fully

$
0
0

In my login UI, I have a footer image, which is showing perfectly in small devices. But on big screen devices (mainly on iPad) it is not showing fully.
I tried all Aspect property of Image, but not worked.
Screenshot:

I try a lot to fix this but didn't get a solution.
Attaching the LoginPage.xaml file with this question. Please suggest a solution for this issue. :)


AVAudioSession.Notifications.ObserveInterruption does not work with Google Maps

$
0
0

When using speech navigation in Google Maps my audio app does not get an interruption. Incoming calls and other audio apps interrupt fine. Does anybody knows why?

AVAudioSession.SharedInstance().Init();

AVAudioSession.SharedInstance().SetCategory(AVAudioSessionCategory.Playback);

AVAudioSession.Notifications.ObserveInterruption(ToneInterruptionListener);

AVAudioSession.SharedInstance().SetActive(true);

My request to datafeed returns null, when calling from my own android device

$
0
0

I have made an app which makes a request to a xmlfeed. When I try to send a request through the app from my own android device returns a blank result string. But when i try from the android emulator or UWP on my laptop, it returns the xmlstring. Im using Httpclient.

I have tried to call the request in the browser on the device, and it also returns the string with the correct values. When i debug it breaks at the deserializing, because the result string is "".

 public async Task<XmlData> GetAllDataForToday(DateTime dt)
 {
    HttpClient client = GetClient();
    string result = await client.GetStringAsync(Url + "getData.aspx? + "fromDate=" + dt + "&toDate=" + dt);
    XmlSerializer Deserializer = new XmlSerializer(typeof(XmlData), new XmlRootAttribute("XmlData"));
    var reader = new StringReader(result);
    XmlData DataCollection = (XmlData)Deserializer.Deserialize(reader);
    return DataCollection;
}

What could be the issue?

Picker when placed inside Listview is not working properly.

$
0
0

Xamarin.Forms: I have used a ListView and created a DataTemplate as custom ViewCell with Grid inside the same.
In my Grid I have created 3 Columns with picker inside first column and Entry as second and third column.
Whenever I click upon entry cell or TextChanged event is triggered, Picker in other column is also focused and picker item selection pop up is displayed.

App crashes on Android 9

$
0
0

Hi Xamarin forum

my xamarin app crashes when i deploy it to an android ver 9 but works flawlessly in lower version of Android what could it be doing wrong it just login then after login a splash screen will appear then after splash screen Home Screen will follow but when I ran it to Android 9 after successfully logging in splash screen will display then few seconds past the app crashes.. anyway here is the code for logging in, splash screen and home, hope someone can help

Login

Xaml

<StackLayout>
            <Grid>
                <Image Source="CityLoads.jpg" HeightRequest="300" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Aspect="AspectFill"/>
            </Grid>
            <StackLayout Margin="0,20,0,0">

                <controls:CustomEntry x:Name="usernameEntry" TextColor="Black" Margin="20,0,20,0" BackgroundColor="WhiteSmoke" Placeholder="Username" WidthRequest="200"/>
                <Entry x:Name="passwordEntry" IsPassword="true" TextColor="Black" Margin="20,0,20,0" BackgroundColor="WhiteSmoke" Placeholder="Password"/>
                <Button Text="LOGIN" Clicked="LogIn" WidthRequest="20" HeightRequest="50" Margin="20,50,20,0"/>
                <StackLayout Orientation="Horizontal" Margin="20,10,0,0">
                    <Image Source="line.png" WidthRequest="150"/>
                    <Label Text="OR"/>
                    <Image Source="line.png" WidthRequest="140"/>
                </StackLayout>
                <Label Text="SIGNUP TO REGISTER" FontAttributes="Bold" Margin="0,10,0,0" HorizontalOptions="CenterAndExpand">
                    <Label.GestureRecognizers>
                        <TapGestureRecognizer Tapped="Register"/>
                    </Label.GestureRecognizers>
                </Label>
            </StackLayout>
        </StackLayout>

Codebehind

 using ProjectX.Services;
 using Rg.Plugins.Popup.Services;
 using System;
 using System.Data;
 using System.Data.SqlClient;
 using Xamarin.Forms;
 using Plugin.Connectivity;

   namespace ProjectX.Views
   {
  public partial class LoginPage : ContentPage
  {
    public LoginPage ()
    {
        InitializeComponent ();
        CheckConnection();
      }

    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 tableNameWHERE 
            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();
          }
         }

        void Register(object sender, EventArgs args)
      {
        Navigation.PushAsync(new RegisterPage());
       }

    private async void CheckConnection()
    {
        if (!CrossConnectivity.Current.IsConnected)
            await Navigation.PushAsync(new NetworkProblem());
        else
            return;
      }
   }
 }

Splashscreen code behind

public partial class LoadingDataPage : ContentPage
{

    string json;
    string PostsLatest;
    public List<t_Post> postslist;

    public LoadingDataPage ()
    {
        InitializeComponent ();

    }

    protected async override void OnAppearing()
    {
        base.OnAppearing();
        //await Task.Run(() => BindPost());
        await this.Navigation.PushAsync(new MainPage());
    }

}

Main or Home Page Xaml

<controls:ExtendedTabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:controls="clr-namespace:ProjectX"
             xmlns:views="clr-namespace:ProjectX.Views"
             x:Class="ProjectX.MainPage"
             xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
             NavigationPage.HasNavigationBar="False"
             android:TabbedPage.ToolbarPlacement="Bottom"
             android:TabbedPage.IsSwipePagingEnabled="False">
    <controls:ExtendedTabbedPage.Children>
        <NavigationPage Title="HOME">
            <NavigationPage.Icon>
                <OnPlatform x:TypeArguments="FileImageSource">
                    <On Platform="iOS" Value="Home.png"/>
                    <On Platform="Android" Value="Home.png"/>
                </OnPlatform>
            </NavigationPage.Icon>
            <x:Arguments>
                <views:HomePage />
            </x:Arguments>
        </NavigationPage>
        <NavigationPage Title="SEARCH">
            <NavigationPage.Icon>
                <OnPlatform x:TypeArguments="FileImageSource">
                    <On Platform="iOS" Value="search.png"/>
                    <On Platform="Android" Value="search2.png"/>
                </OnPlatform>
            </NavigationPage.Icon>
            <x:Arguments>
                <views:SearchPage />
            </x:Arguments>
        </NavigationPage>
        <NavigationPage Title="PROFILE">
            <NavigationPage.Icon>
                <OnPlatform x:TypeArguments="FileImageSource">
                    <On Platform="iOS" Value="Profile.png"/>
                    <On Platform="Android" Value="Profile.png"/>
                </OnPlatform>
            </NavigationPage.Icon>
            <x:Arguments>
                <views:ProfilePage />
            </x:Arguments>
        </NavigationPage>
    </controls:ExtendedTabbedPage.Children>
</controls:ExtendedTabbedPage>

Codebehind

     public partial class MainPage : ExtendedTabbedPage
      {
        public MainPage()
        {
            InitializeComponent();
            this.SelectedItem = this.Children[0];
        }

        protected override void OnCurrentPageChanged()
        {
            base.OnCurrentPageChanged();

        }

        protected override void OnAppearing()
        {
            base.OnAppearing();
            NavigationPage.SetHasBackButton(this, true);
            //this.CurrentPageChanged += MainPage_CurrentPageChanged;
        }

     }

Where Xamarin.Forms GitHub bug report has moved

$
0
0

I logged a bug report related to the Xamarin XAML previewer on Nov 1, 2019 in the Xamarin.Forms GitHub repository. But now, I can't see that report and say "This issue has been moved to a repository you don't have access to". I'm wondering where the report moved and how to track the report? No information available in that report. Is there someone who helps me to find the report or has to raise the report on the other side?

Report : https://github.com/xamarin/Xamarin.Forms/issues/8348

Viewing all 91519 articles
Browse latest View live


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