国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開(kāi)發(fā) > 綜合 > 正文

高仿Windows Phone QQ登錄界面實(shí)例代碼

2024-07-21 02:04:43
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

給 TextBox文本框前添加圖片

擴(kuò)展PhoneTextBox:添加一個(gè)類“ExtentPhoneTextBox”繼承 PhoneTextBox ,在“ExtentPhoneTextBox”類中添加屬性項(xiàng):
代碼如下:
public class ExtentPhoneTextBox : PhoneTextBox
    {
        /// <summary>
        /// 文本框圖片屬性
        /// </summary>
        public static readonly DependencyProperty TextHeadImageProperty =
            DependencyProperty.Register("TextHeadImage", typeof(ImageSource), typeof(ExtentPhoneTextBox), new PropertyMetadata(null)
            );

        /// <summary>
        /// 文本框頭圖片
        /// </summary>
        public ImageSource TextHeadImage
        {
            get { return base.GetValue(TextHeadImageProperty) as ImageSource; }
            set { base.SetValue(TextHeadImageProperty, value); }
        }

        /// <summary>
        /// 文本圖片寬度
        /// </summary>
        public double TextHeadImageWidth
        {
            get { return (double)GetValue(TextHeadImageWidthProperty); }
            set { SetValue(TextHeadImageWidthProperty, value); }
        }

        // Using a DependencyProperty as the backing store for TextHeadImageWidth.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TextHeadImageWidthProperty =
            DependencyProperty.Register("TextHeadImageWidth", typeof(double), typeof(ExtentPhoneTextBox), new PropertyMetadata(null));

        /// <summary>
        /// 文本圖片高度
        /// </summary>
        public double TextHeadImageHeight
        {
            get { return (double)GetValue(TextHeadImageHeightProperty); }

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 靖远县| 绥化市| 吴旗县| 马公市| 广昌县| 益阳市| 昌都县| 茌平县| 民勤县| 福建省| 绍兴市| 昌江| 厦门市| 阿荣旗| 台州市| 响水县| 海门市| 普陀区| 太原市| 闵行区| 郧西县| 寻乌县| 卢龙县| 武穴市| 怀安县| 祁阳县| 阿克| 邳州市| 定陶县| 镇原县| 城步| 临清市| 集安市| 杭州市| 海口市| 平邑县| 金溪县| 张家界市| 尼木县| 巴马| 康定县|