Answers for "set label text in wpf c#"

C#
1

c# wpf change label text color

(name label).Foreground = new SolidColorBrush(Color.FromRgb(0, 0, 0));
Posted by: Guest on October-29-2020
0

label wpf

<Window x:Class="WpfTutorialSamples.Basic_controls.LabelControlSample"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LabelControlSample" Height="100" Width="200">
    <Grid>
		<Label Content="This is a Label control." />
	</Grid>
</Window>
Posted by: Guest on June-30-2021

C# Answers by Framework

Browse Popular Code Answers by Language