Last-Modified: Thu, 23 Jul 2026 01:02:15 GMT Expires: Sun, 20 Jul 2036 01:02:15 GMT Document « Tango.Scripting.Editors « Tango.Scripting « TEMP « Visual_Studio « Software - Tango - Twine softwares
aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/TEMP/Tango.Scripting/Tango.Scripting.Editors/Document
ModeNameSize
-rw-r--r--ChangeTrackingCheckpoint.cs5713logstatsplain
-rw-r--r--DocumentChangeEventArgs.cs3990logstatsplain
-rw-r--r--DocumentChangeOperation.cs1515logstatsplain
-rw-r--r--DocumentLine.cs6777logstatsplain
-rw-r--r--DocumentLineTree.cs19337logstatsplain
-rw-r--r--GapTextBuffer.cs5852logstatsplain
-rw-r--r--ILineTracker.cs2343logstatsplain
-rw-r--r--ISegment.cs6071logstatsplain
-rw-r--r--ITextSource.cs9696logstatsplain
-rw-r--r--IUndoableOperation.cs739logstatsplain
-rw-r--r--LineManager.cs9880logstatsplain
-rw-r--r--LineNode.cs2968logstatsplain
-rw-r--r--NewLineFinder.cs4519logstatsplain
-rw-r--r--OffsetChangeMap.cs11937logstatsplain
-rw-r--r--TextAnchor.cs6665logstatsplain
-rw-r--r--TextAnchorNode.cs2258logstatsplain
-rw-r--r--TextAnchorTree.cs24172logstatsplain
-rw-r--r--TextDocument.cs28485logstatsplain
-rw-r--r--TextDocumentWeakEventManager.cs4886logstatsplain
-rw-r--r--TextLocation.cs3764logstatsplain
-rw-r--r--TextSegment.cs7638logstatsplain
-rw-r--r--TextSegmentCollection.cs29939logstatsplain
-rw-r--r--TextUtilities.cs13448logstatsplain
-rw-r--r--UndoOperationGroup.cs1463logstatsplain
-rw-r--r--UndoStack.cs13859logstatsplain
-rw-r--r--WeakLineTracker.cs2613logstatsplain
pan class="w"> { var startTime = Process.GetCurrentProcess().StartTime; if (_loaded) return; _loaded = true; var handle = new WindowInteropHelper(System.Windows.Application.Current.MainWindow).Handle; System.Windows.Application.Current.MainWindow.LocationChanged += MainWindow_LocationChanged; Visibility v = Visibility; var xaml = FrameworkElementSerializer.Serialize(Content as FrameworkElement); object dc = this.DataContext; Content = null; var main_dispatcher = System.Windows.Application.Current.Dispatcher; System.Windows.Application.Current.MainWindow.RegisterForLoadedOrNow((_,__) => { Thread thread = new Thread(() => { main_dispatcher.ShutdownFinished += (x, y) => { if (_window != null) { _window.Invoke(() => { _window.Close(); }); } }; _window = new Window(); _window.WindowStyle = WindowStyle.None; _window.ResizeMode = ResizeMode.NoResize; _window.ShowInTaskbar = false; _window.AllowsTransparency = true; _window.Background = Brushes.Transparent; _window.WindowStartupLocation = WindowStartupLocation.Manual; SyncBounds(); if (v != Visibility.Visible) { _window.Opacity = 0; } new WindowInteropHelper(_window).Owner = handle; _window.ShowActivated = false; var cloned = FrameworkElementSerializer.Deserialize(xaml); cloned.DataContext = dc; _window.Content = cloned; _window.Show(); SyncBounds(); System.Windows.Threading.Dispatcher.Run(); }); thread.SetApartmentState(ApartmentState.STA); thread.IsBackground = true; thread.Start(); }); } } /// <summary> /// Handles the LocationChanged event of the MainWindow control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void MainWindow_LocationChanged(object sender, EventArgs e) { SyncBounds(); } /// <summary> /// Synchronizes the bounds of the window with the bounds of the original control. /// </summary> public void SyncBounds() { if (_window != null) { this.BeginInvoke(() => { Point location = PointToScreen(new Point(0, 0)); Size size = new Size(ActualWidth, ActualHeight); _window.BeginInvoke(() => { _window.Top = location.Y; _window.Left = location.X; _window.Width = size.Width; _window.Height = size.Height; }); }); } } /// <summary> /// Hides the element window. /// </summary> private void HideWindow() { if (_window != null) { _window.BeginInvoke(() => { _window.Hide(); }); } } /// <summary> /// Shows the element window. /// </summary> private void ShowWindow() { if (_window != null) { _window.BeginInvoke(() => { _window.Opacity = 1; _window.Show(); }); } } } }