| File was renamed from WPFProject/Controls/InnerWindow.xaml.cs |
| | |
| | | using HandyControl.Controls; |
| | | using Plugin.TestBuilder.Entity; |
| | | using System; |
| | | using System.ComponentModel; |
| | | using System.Runtime.CompilerServices; |
| | | using System.Windows; |
| | | using System.Windows.Controls; |
| | | using System.Windows.Controls.Primitives; |
| | | using System.Windows.Documents; |
| | | using System.Windows.Input; |
| | | using System.Windows.Media; |
| | | using System.Windows.Shapes; |
| | | using WPFProject.Models; |
| | | using WPFProject.UI.Test; |
| | | using WPFProject.Utils; |
| | | using static WPFProject.Utils.Resize.Resizeable; |
| | | |
| | | namespace WPFProject.Controls |
| | | namespace Plugin.TestBuilder.UI |
| | | { |
| | | /// <summary> |
| | | /// InnerWindow.xaml 的交互逻辑 |
| | |
| | | public CanvasPosition canvasPosition; |
| | | private Canvas canvas; |
| | | public WindowState WindowState { get; set; } = WindowState.Normal; |
| | | public AdornerDecorator ResizeAdornerDecorator { get => VisualTreeHelper.GetChild(this, 0) as AdornerDecorator; } |
| | | public AdornerDecorator ResizeAdornerDecorator |
| | | { |
| | | get |
| | | { |
| | | return this.Template.FindName("PART_Adorner", this) as AdornerDecorator; |
| | | } |
| | | } |
| | | |
| | | private string _Title; |
| | | public string Title |
| | |
| | | } |
| | | |
| | | public static readonly DependencyProperty HeaderBackgroundProperty = |
| | | DependencyProperty.Register("HeaderBackground", typeof(Brush), typeof(ProgramList), |
| | | DependencyProperty.Register("HeaderBackground", typeof(Brush), typeof(InnerWindow), |
| | | new PropertyMetadata(new SolidColorBrush(Color.FromRgb(54, 146, 225)))); |
| | | |
| | | public Brush HeaderFontColor |
| | |
| | | } |
| | | |
| | | public static readonly DependencyProperty HeaderFontColorProperty = |
| | | DependencyProperty.Register("HeaderFontColor", typeof(Brush), typeof(ProgramList), |
| | | DependencyProperty.Register("HeaderFontColor", typeof(Brush), typeof(InnerWindow), |
| | | new PropertyMetadata(new SolidColorBrush(Color.FromRgb(255, 255, 225)))); |
| | | #endregion |
| | | |