简体   繁体   中英

How to Custom Paint in the TextBox of an WUP - XAML - C# Project

I have just started onto C# & Windows Universal Apps. I just can't seem to find a way to Override the onPaint or onRender of the TextBox . Is it that XAML - WUP just supports styles or is there some problem in my syntax.

using Windows.UI.Xaml.Controls;

namespace GotIt
{
    class CutomText : TextBox
    {

        protected override onRender ... Gives no suitable method found

        protected override onPaint...Gives no suitable method found
    }
}

I am getting the job done using Win2D . Great Package Indeed .

Screenshot 1

Screenshot 2

Thanks Grace . Yaba Daba Doo .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM