Search code examples
windowsmicrosoft-metrowindows-store-appswindows-store

Font weight in windows store app


I'm tryign to set my font weight propert to bold. But can't do that. So How can i set my font weight property to bold in c# code?

tbgc1.FontWeight.Weight = ?;


Solution

  • using Windows.UI.Text;
    
    ....
    
    tbgc1.FontWeight = FontWeights.Bold;
    

    See FontWeight class on MSDN