All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
How to get a vaule form TextBlock for FontSize.
I need to get number 14 !
<TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5" Name="TextBlockAbout" FontSize="14"> </TextBlock>
var fSize = TextBlockAbout.GetProperty<TextBlock>("FontSize");
Regards,
Peter
// finding and casting the element to TextBlock
var myBox = ActiveApplication.MainWindow.Find.ByName(
"TextBlockAbout"
).CastAs<ArtOfTest.WebAii.Controls.Xaml.Wpf.TextBlock>();
// printing its font size property
Console.WriteLine(myBox.FontSize.ToString());