S
Siegfried Heintze
Can someone help me convert this to the latest C# syntax using
predicate/delegate? You can see my attempt in the comments.
Also: how would I set a new font for q_ul? q_ul is a WPF TextBlock and I
want to change its font.
//q_ul.FontFamily.FamilyTypefaces.All<System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>>(System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>
ftf, bool x=>MessageBox.Show(ftf); );
foreach
(System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,
string> fft in q_ll.FontFamily.FamilyNames)
{
var key = fft.Key.ToString();
var val = fft.Value.ToString();
MessageBox.Show("key = \"" + key + "\" value= \"" + val+"\"");
}
predicate/delegate? You can see my attempt in the comments.
Also: how would I set a new font for q_ul? q_ul is a WPF TextBlock and I
want to change its font.
//q_ul.FontFamily.FamilyTypefaces.All<System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>>(System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,string>
ftf, bool x=>MessageBox.Show(ftf); );
foreach
(System.Collections.Generic.KeyValuePair<System.Windows.Markup.XmlLanguage,
string> fft in q_ll.FontFamily.FamilyNames)
{
var key = fft.Key.ToString();
var val = fft.Value.ToString();
MessageBox.Show("key = \"" + key + "\" value= \"" + val+"\"");
}