using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace dataBinding { /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); Label1.Background = Brushes.Red; Label1.Foreground = Brushes.White; Label1.FontSize = 20; Label2.Background = Brushes.Yellow; Label2.Foreground = Brushes.Red; Label2.FontSize = 20; Label3.Background = Brushes.Aqua; Label3.Foreground = Brushes.Blue; Label3.FontSize = 20; } } }