Search found 4 matches

by bzhkl
10 Jul 2020, 04:49
Forum: General Discussion
Replies: 5
Views: 1715

Re: I write a hello world , and found StaticResource not work, why

In c++ project , you just write <CheckBox Content="&#xf110;" FontFamily="./#FontAwesome"/> then it worked. Do not need to declare Font resource anywhere. I think because We already have compiled the font file in to the .h file. It's already in the EXE file , so just ./#FontAw...
by bzhkl
09 Jul 2020, 14:25
Forum: General Discussion
Replies: 5
Views: 1715

Re: I write a hello world , and found StaticResource not work, why

Do you mean a Noesis C# project, or a Blend WPF project? Blend WPF project works. <StackPanel.Resources> <FontFamily x:Key="FontAwesome">FontAwesome</FontFamily> </StackPanel.Resources> I add this , then c++ project work! I don't need to have FontAwesome installed in my operating system. ...
by bzhkl
09 Jul 2020, 14:06
Forum: General Discussion
Replies: 5
Views: 1715

I write a hello world , and found StaticResource not work, why

https://github.com/iomeone/gui/blob/7608b0c141582c5597e381679c7ca886f9f7fee8/Data/MainWindow.xaml#L24 <CheckBox Content="abc1234" FontFamily="{StaticResource FontAwesome}"/> <CheckBox Content="abc1234" FontFamily="FontAwesome"/> these two line both work in c# ...