Git Product home page Git Product logo

Comments (7)

chrisfoulds avatar chrisfoulds commented on August 18, 2024

Had the same, I was missing
FormsPlugin.Iconize.iOS.IconControls.Init();
after forms init , make sure you have that and have added the font in info.plist

from xamarin.plugins.

candidodmv avatar candidodmv commented on August 18, 2024

I have the same problem here. I have done all configurations @chrisfoulds any suggestion to do more?

from xamarin.plugins.

chrisfoulds avatar chrisfoulds commented on August 18, 2024

No, I just added the bit I was missing as mentioned above.

from xamarin.plugins.

candidodmv avatar candidodmv commented on August 18, 2024

@chrisfoulds but, you just did do what you said and the problem was solved?

from xamarin.plugins.

chrisfoulds avatar chrisfoulds commented on August 18, 2024

Yes, that is why I posted what I did, I added the missing init and made sure the font was in the plist

from xamarin.plugins.

candidodmv avatar candidodmv commented on August 18, 2024

It's funny. I'm using tabbed page, and when I use static xaml markup, works very well, but when i use c# code to create the tabs the problem raised. It no make sense, by the simple fact that i use c# and create on the fly controls the plugin doesn't work.

from xamarin.plugins.

candidodmv avatar candidodmv commented on August 18, 2024

Hi @chrisfoulds, I've discovered what was happening(after a lot of head bang). The problem is related with another plugin that I use on my application: FreshMVVM
There are two issues with the working together with this two plugins:

  1. IconTabbedPage
    1.1)The problem: not render icon
    The Iconize implmentation of TabbedPage custom render has a logic for register tabbed icons when the control is created but, on my application the tabs are created on runtime, so on the moment of the tabbed page is created by FreshMVVM, the tabs no exist yet, because of this static tabs declaration works.
    1.2) The solution: for you use dynamic tabs with FreshMVVM and Iconize, you MUST create the children tabs BEFORE instance the IconTabbedControl, and create an overload constructor of IconTabbedControlPage to receive the children and set them on this moment.

  2. IconToolbarItem
    2.1) The problem: not render the icon
    The FreshMVVM plugin has your own NavigationContainer as well the Iconize require yours to works the
    IconToolbarItem, as is described on README.
    2.2) Basically what you need is create an custom navigation container that put together this containers, for this create a new class that inherits from IconNavigationPage and implements the interface IFreshNavigationService and finally as described by @chrisfoulds above do not forget to Initialize the plugin on both platforms that you are using the Iconize:
    iOS->AppDelegate->FinishedLaunching:
    FormsPlugin.Iconize.iOS.IconControls.Init();
    Android->MainActivity->OnCreate:
    FormsPlugin.Iconize.Droid.IconControls.Init(Resource.Id.toolbar, Resource.Id.tabMode);
    both before Forms.Init(this, bundle);

I hope that this tips be useful for someone!

from xamarin.plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.