Advertisement
Guest User

MyTextBox.cs

a guest
Sep 30th, 2011
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Controls;
  6. using System.Windows.Media;
  7.  
  8. namespace Rendertest
  9. {
  10.     public class MyTextbox : TextBox
  11.     {
  12.         public MyTextbox()
  13.         {
  14.             Text = "text";
  15.         }
  16.  
  17.         protected override void OnRender(System.Windows.Media.DrawingContext drawingContext)
  18.         {
  19.             //base.OnRender(drawingContext);
  20.             this.BorderBrush = Brushes.Red;
  21.         }
  22.     }
  23. }
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement