Comments (10)
The library no longer works in that manner. I hope to provide a future update to bring that functionality back.
from xamarin.plugins.
I am planning on getting some documentation together but it's basically a port of Iconify. So to add an icon (or more than one) you just put it in the text. Ex: "{fa-500px} 500px"
See Iconify here: http://joanzapata.com/android-iconify/
from xamarin.plugins.
I tried that one and others combinations several times without success;
<iconize:IconButton Text="{fa-500px} 500px" />
above code throw this: System.Exception: Expression must end with '}'
this code doesn't fail at compile time but just print: {fa-500px} 500px and desired is to replace {fa-500px} for font icon:
<iconize:IconButton Text="{}{fa-500px} 500px" />
<iconize:IconButton Text="{Binding Key, StringFormat='{}{{{0}}} {0}'}" />
<iconize:IconButton Text="{Binding Key, StringFormat='{{{0}}} {0}'}" />
from xamarin.plugins.
Tried to pass text from ViewModel fail too:
xaml: <iconize:IconButton Text="{Binding TestIcon}" />
ViewModel: TestIcon = "{fa-500px} fa-500px";
from xamarin.plugins.
I too wrapped the font key in brackets and this is the final output.
from xamarin.plugins.
How do you add an Icon to a button in the current implementation then?
from xamarin.plugins.
<iconize:IconButton Text="fa-lock" />
from xamarin.plugins.
Maybe this will save someone else the trouble- and I don't want to create an issue because it's not an issue with Iconize, but I spent a good chunk of yesterday figuring out that using any of the Themes that Xamarin is currently previewing interferes with Iconize.
It pretty much prevents any Font from replacing the Theme font- even if done programmatically.
Just a heads up for anyone else that runs up on this issue- and thinks it may have to do with their configuration or some missing step.
https://developer.xamarin.com/guides/xamarin-forms/themes/
from xamarin.plugins.
@jsmarcus I cant use IconButton with a custom text inside?
from xamarin.plugins.
use fas instead of fa
<iconize:IconButton Text="fas-info-circle"/>
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.