Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom style for one key (Read 1904 times)
MisteryGuy_07
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Jan 21st, 2019
Custom style for one key
Feb 1st, 2019 at 4:39pm
Print Post  
Is there any way to set a custom font on a key? I probably will do it with a DataTrigger but I wonder if there's a better way Smiley
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Custom style for one key
Reply #1 - Feb 4th, 2019 at 11:14am
Print Post  
If you mean for just one specific key instance, you'll have to add a data trigger indeed, something like <DataTrigger Binding="{Binding LowerCase}" Value="a">. Inside the trigger try adding FontFamily property setter for the rootGrid shown at https://mindfusion.eu/Forum/YaBB.pl?num=1478183033/1#1 , or if it doesn't work on the grid, set a name for the TextBlock element which you could then use as a TargetName.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint