LunarMind/Comment.cs
(开头部分) 57KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Documents;
using System.ComponentModel;
using System.Windows.Controls;
using System.Xml;
using System.Windows;
using System.Windows.Media;
using System.Windows.Shapes;
using SHomeWorkshop.LunarTools;
using System.Windows.Input;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace SHomeWorkshop.LunarMind
{
public class Comment : AdornerDecorator, INotifyPropertyChanged
{
public Comment(MainWindow editor, Title masterTitle)
{
this.editor = editor;
this.masterTitle = masterTitle;
this.masterTitleID = masterTitle.ID;
this.connectLine.Stroke = this.borderColor;
this.connectLine.StrokeThickness = 2.4;
this.connectLine.StrokeDashArray = dashArray;
//this.mainTextBlock.Foreground = Brushes.Brown;
//this.mainTextBlock.Background = Brushes.Transparent;
//this.mainTextBlock.ToolTip = "编辑文本:Ctrl+Enter(或双击)";
//this.mainTextBlock.Cursor = Cursors.Hand;
//this.mainTextBlock.MouseEnter += new MouseEventHandler(mainTextBlock_MouseEnter);
//this.mainTextBlock.MouseLeave += new MouseEventHandler(mainTextBlock_MouseLeave);
//this.mainTextBlock.MouseRightButtonUp += new MouseButtonEventHandler(mainTextBlock_MouseRightButtonUp);
//this.mainTextBlock.MouseDown += new System.Windows.Input.MouseButtonEventHandler(mainTextBlock_MouseDown);
//this.mainTextBlock.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(mainTextBlock_MouseLeftButtonDown);
//this.Child = this.mainTextBlock;
this.mainTextPanel.SizeChanged += new SizeChangedEventHandler(mainTextPanel_SizeChanged);
this.Child = this.mainTextPanel;
//AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(this.mainTextBlock);
AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(this.mainTextPanel);
//this.borderAdorner = new Adorners.CommentBorderAdorner(this.mainTextBlock, this);
this.borderAdorner = new Adorners.CommentBorderAdorner(this.mainTextPanel, this);
this.borderAdorner.MouseLeftButtonDown += new MouseButtonEventHandler(borderAdorner_MouseLeftButtonDown);
//this.sizeHandlerAdorner = new Adorners.CommentSizeHandlerAdorner(this.mainTextBlock, this);
this.sizeHandlerAdorner = new Adorners.CommentSizeHandlerAdorner(this.mainTextPanel, this);
//this.summaryAdorner = new Adorners.CommentSummaryAdorner(this.mainTextBlock, this);
this.summaryAdorner = new Adorners.CommentSummaryAdorner(this.mainTextPanel, this);
后面还有 1572 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。