国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 锡林浩特市| 健康| 乐平市| 烟台市| 边坝县| 衡山县| 潞城市| 营口市| 中牟县| 隆子县| 汉源县| 永丰县| 云龙县| 谷城县| 鱼台县| 尼玛县| 崇阳县| 扎赉特旗| 龙海市| 乳源| 胶州市| 城步| 长泰县| 余干县| 中方县| 黔西县| 延川县| 巩留县| 泸水县| 遂宁市| 楚雄市| 诸暨市| 谷城县| 长兴县| 磐石市| 开江县| 甘谷县| 深泽县| 常熟市| 偃师市| 宿州市|