SORU
11 HAZİRAN 2009, PERŞEMBE


C WPF Textbox arkaplan rengini ayarlamak# kodu

Nasıl bir WPF Textbox programlama yoluyla c arka plan ve ön plan renklerini değiştirebilir miyim#?

CEVAP
11 HAZİRAN 2009, PERŞEMBE


textBox1.Background = Brushes.Blue;
textBox1.Foreground = Brushes.Yellow;

WPF Ön plan ve arka Plan 3 ** tür. Bu gibi başka bir renk ayarlayabilirsiniz:

// using System.Windows.Media;

textBox1.Background = Brushes.White;
textBox1.Background = new SolidColorBrush(Color.White);
textBox1.Background = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0, 0);
textBox1.Background = System.Windows.SystemColors.MenuHighlightBrush;

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Commander Chalkboard

    Commander Ch

    20 Ocak 2014
  • Elly Awesome

    Elly Awesome

    15 ŞUBAT 2010
  • WestsideMrArO

    WestsideMrAr

    6 EKİM 2010