Does Silverlight have a System.Console class? Why?

Answer

Yes. Silverlight have System.Console class. It is cocooned in the SecurityCritical attribute. It is so for using for internal uses and making it useless for remote usage.

Is it possible to load external OTF or TTF in Silverlight? How

It is possible to load external OTF or TTF in Silverlight. The process is:

  • Right click on Silverlight application project folder. Select “Add->New Item…”.
  • Browse and select the font and click on OK buton
  • Select the font and set the grid property Build Action = “Resource”, and “Copy to Output Directory” = “Copy if newer”:
  • Use the following syntax in the FontFamily attribute of XAML file
    FontFamily=”[FontFileName]#[FontFriendlyName]”
    Example: <TextBlock Text="Hello" FontFamily="Century.ttf#Century"></TextBlock>
  • To find the exact font name, double click on the font to open the font viewer. 

All silverlight Questions

Ask your interview questions on silverlight

Write Your comment or Questions if you want the answers on silverlight from silverlight Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---