2025-08-30 21:14:02 +08:00
|
|
|
|
#pragma checksum "..\..\..\winTitleBar.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "0113F0EC14F19DA45F9A3B87D49B6502FD7C9B95"
|
2025-08-29 14:57:55 +08:00
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
// <auto-generated>
|
2025-10-29 17:07:22 +08:00
|
|
|
|
// This code was generated by a tool.
|
2025-08-29 14:57:55 +08:00
|
|
|
|
//
|
2025-10-29 17:07:22 +08:00
|
|
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
|
|
|
// the code is regenerated.
|
2025-08-29 14:57:55 +08:00
|
|
|
|
// </auto-generated>
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
2025-08-30 21:14:02 +08:00
|
|
|
|
using Ramitta;
|
2025-08-29 14:57:55 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Automation;
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Controls.Primitives;
|
|
|
|
|
|
using System.Windows.Controls.Ribbon;
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
|
using System.Windows.Ink;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
using System.Windows.Markup;
|
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
using System.Windows.Media.Animation;
|
|
|
|
|
|
using System.Windows.Media.Effects;
|
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
|
using System.Windows.Media.Media3D;
|
|
|
|
|
|
using System.Windows.Media.TextFormatting;
|
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
using System.Windows.Shell;
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-08-30 21:14:02 +08:00
|
|
|
|
namespace Ramitta {
|
2025-08-29 14:57:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// winTitleBar
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class winTitleBar : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#line 9 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
2025-08-30 21:14:02 +08:00
|
|
|
|
internal Ramitta.winTitleBar root;
|
2025-08-29 14:57:55 +08:00
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
|
|
|
|
|
|
private bool _contentLoaded;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// InitializeComponent
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
2025-10-29 17:07:22 +08:00
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.0.0")]
|
2025-08-29 14:57:55 +08:00
|
|
|
|
public void InitializeComponent() {
|
|
|
|
|
|
if (_contentLoaded) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
_contentLoaded = true;
|
|
|
|
|
|
System.Uri resourceLocater = new System.Uri("/Ramitta;component/wintitlebar.xaml", System.UriKind.Relative);
|
|
|
|
|
|
|
|
|
|
|
|
#line 1 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
|
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
2025-10-29 17:07:22 +08:00
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "10.0.0.0")]
|
2025-08-29 14:57:55 +08:00
|
|
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
|
|
|
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
|
|
|
|
|
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
|
|
|
|
|
switch (connectionId)
|
|
|
|
|
|
{
|
|
|
|
|
|
case 1:
|
2025-08-30 21:14:02 +08:00
|
|
|
|
this.root = ((Ramitta.winTitleBar)(target));
|
2025-08-29 14:57:55 +08:00
|
|
|
|
return;
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
|
|
|
|
#line 66 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MinimizeCommand_Executed);
|
|
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
return;
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
|
|
|
|
#line 67 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MaximizeCommand_Executed);
|
|
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
return;
|
|
|
|
|
|
case 4:
|
|
|
|
|
|
|
|
|
|
|
|
#line 68 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CloseCommand_Executed);
|
|
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
return;
|
|
|
|
|
|
case 5:
|
|
|
|
|
|
|
|
|
|
|
|
#line 71 "..\..\..\winTitleBar.xaml"
|
|
|
|
|
|
((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseLeftButtonDown);
|
|
|
|
|
|
|
|
|
|
|
|
#line default
|
|
|
|
|
|
#line hidden
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
this._contentLoaded = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|