TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
VerenaJam
NA
94
3.8k
change one fontface to another fontface in c# wpf
Oct 15 2014 7:31 AM
I want to change one LTibetan fontface to Arial black fontface in c# WPF but rest Fontfaces are remains same as. I have used below code to achieve the purpose:So anybody kindly give me a help
void ChangeFontFamily(object sender, RoutedEventArgs e)
{
FontFamily ffamily = new FontFamily();
ffamily = btn2.FontFamily;
ffamily = richTextBox1.FontFamily;
string str = ffamily.ToString();
if (str == ("LTibetan"))
{
btn2.FontFamily = new FontFamily("Arial Black");
richTextBox1.FontFamily = new FontFamily("Arial Black");
btn2.Content = " Arial Black";
}
Reply
Answers (
1
)
How to save Dynamic Created TextBox Value into DataBase
Not displaying Google graph