programming-examples/c-sharp/Others/Set Text value for TextBlock.cs
2019-11-15 12:59:38 +01:00

17 lines
556 B
C#

Set Text value for TextBlock
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="200" Width="440">
<Grid>
<TextBlock Foreground="Cyan"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ToolTip="This is a custom tooltip"
Text="Mouse Over for tooltip"/>
</Grid>
</Window>