Git Product home page Git Product logo

Comments (10)

jsmarcus avatar jsmarcus commented on August 18, 2024 2

The library no longer works in that manner. I hope to provide a future update to bring that functionality back.

from xamarin.plugins.

jsmarcus avatar jsmarcus commented on August 18, 2024

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.

lecniers avatar lecniers commented on August 18, 2024

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.

lecniers avatar lecniers commented on August 18, 2024

Tried to pass text from ViewModel fail too:

xaml: <iconize:IconButton Text="{Binding TestIcon}" />
ViewModel: TestIcon = "{fa-500px} fa-500px";

from xamarin.plugins.

cklenk avatar cklenk commented on August 18, 2024

image

I too wrapped the font key in brackets and this is the final output.

from xamarin.plugins.

thedracle avatar thedracle commented on August 18, 2024

How do you add an Icon to a button in the current implementation then?

from xamarin.plugins.

jsmarcus avatar jsmarcus commented on August 18, 2024

<iconize:IconButton Text="fa-lock" />

from xamarin.plugins.

thedracle avatar thedracle commented on August 18, 2024

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.

AlbertoMonteiro avatar AlbertoMonteiro commented on August 18, 2024

@jsmarcus I cant use IconButton with a custom text inside?

from xamarin.plugins.

kgbuddhima avatar kgbuddhima commented on August 18, 2024

use fas instead of fa
<iconize:IconButton Text="fas-info-circle"/>

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.