Helper/NewButton.cs

(开头部分) 19KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Input;

namespace WpfApplication2.Helper
{
    public class NewButton:Image
    {
        public static List<NewButton> button_list;
        public static bool Selected = false;
        public static String name = null;
        public static String CurrentCamps;
        public static NewButton Button_Selected;
        public static NewButton Iskilled;
        public String Camps_type;
        public bool Checked = false;
        /// <summary>
        /// 半径
        /// </summary>
        public NewButton()
        {
            this.Height = 50;
            this.Width = 50;
        }
        public static readonly DependencyProperty centerpoint =
DependencyProperty.Register("CenterPoint", typeof(Point), typeof(NewButton),
new PropertyMetadata(new Point(0,0), new PropertyChangedCallback(PointMethod)));
        public static readonly DependencyProperty ImageUri=
DependencyProperty.Register("ImageUri", typeof(Uri), typeof(NewButton),
new PropertyMetadata(null, new PropertyChangedCallback(ContentMethod)));
        



        public Point point
        {
            get
            {
                return (Point)base.GetValue(centerpoint);
            }
            set
            {
                base.SetValue(centerpoint, value);
            }
        }
        public Uri imageUri
        {
            get
            {
                return (Uri)base.GetValue(ImageUri);
            }
            set
            {
                base.SetValue(ImageUri, value);
            }
后面还有 416 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。