wie verwenden Sie das Symbol [Font-awesome] in WPF

Ich bin neu in WPF. Ich möchte die Font-awesome-Icon im Textfeld und button. aber das Symbol ist nicht die Bindung mit meiner textbox

Ich install Font-awesome Ressource zu meiner Anwendung.

Lassen Sie mich wissen, die Art und Weise wie kann ich es nutzen

Danke,

Ich es wirklich brauchen bitte helft mir..

Beispiel

Schritt 1 : Download Der Font-Awesome

Tools -> Bibliotheks-Paket-Manager -> Paket-Manager-Konsole
Installieren

PM > Install-Paket FontAwesome.WPF

Schritt 2 : Ressource Hinzufügen

<Application> xmlns:fa="http://schemas.fontawesome.io/icons/" </Application>

Schritt 3 : App.xaml

<Application.Resources>

    <Style x:Key="FontAwesome">
        <Setter Property="TextElement.FontFamily" Value="pack://application:,,,/fonts/#FontAwesome" />
    </Style>

</Application.Resources>

Schritt 4 : Verwenden Sie es in der Demo.xaml

<TextBlock Style="{StaticResource FontAwesome}"
FontSize="75"
Text="&#xf133;" />

Schritt 5 :- Ausgabe

wie verwenden Sie das Symbol [Font-awesome] in WPF

InformationsquelleAutor shivani | 2016-07-11
Schreibe einen Kommentar