LunarPresentation/Expressions/Expander.cs

(开头部分) 18KB

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

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Xml;
using SHomeWorkshop.LunarPresentation.Converts;
using SHomeWorkshop.LunarPresentation.Interfaces;

namespace SHomeWorkshop.LunarPresentation.Expressions
{
    public class Expander : MSExpression, ICollapsed
    {
        public Expander(SubPanel rootPanel, SubPanel parentPanel, Editor editor)
            : base(rootPanel, parentPanel, editor)
        {
            // 基类构造方法会调用“InitializeMSPanels”这个虚方法。

            this.chineseName = "扩展式";
        }

        private TextBlock expandButton;

        public TextBlock ExpandButton
        {
            get { return expandButton; }
        }

        private StackPanel topPanel;

        /// <summary>
        /// 放置按钮和主面板。
        /// </summary>
        public StackPanel TopPanel
        {
            get { return topPanel; }
        }

        private Border bottomBorder;

        /// <summary>
        /// 放置从面板。
        /// </summary>
        public Border BottomBorder
        {
            get { return bottomBorder; }
        }

        private StackPanel bottomPanel;

        private Rectangle handleRectangle;

        public Rectangle HandleRectangle
        {
            get { return handleRectangle; }
        }

        private static Thickness expanderBtnMargin = new Thickness(3, 0, 2, 0);

后面还有 492 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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