Comments (7)
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.
I have the same problem here. I have done all configurations @chrisfoulds any suggestion to do more?
from xamarin.plugins.
No, I just added the bit I was missing as mentioned above.
from xamarin.plugins.
@chrisfoulds but, you just did do what you said and the problem was solved?
from xamarin.plugins.
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.
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.
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:
-
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. -
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)
- UWP: MasterDetailPage and IconToolbarItem can't work together.
- Unable to set global styles HOT 1
- Is it possible to add gesture to the image icon? HOT 1
- MTOUCH : error MT3001: Could not AOT the assembly - How do I resolve?
- Feather icons support
- IconToolBarItem disappeares when command's canExecute changes
- Adding Medical icons
- Fontawesome 5.0 support
- Fontawesome is not rendering in IOS
- Can't install with latest .net framework HOT 1
- Fontawesome Pro Collection HOT 1
- .NET Standard support? HOT 2
- Exception has been thrown by the target of an invocation. Invalid Cast Exception
- Binding Is Not Functional? HOT 1
- Support for Forms 3.0? HOT 3
- Unable to toggle visibility on IconToolbarItem
- IconToolbarItems not refreshed properly
- IconToolbarItem in ViewCell.ContextActions
- Compile app iOs in MacBook
- [CRITICAL] - repository out of date! Last commit 2 years ago - latest nuget 3 days ago!! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin.plugins.