| 
														
															@@ -1,21 +1,32 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 using System; 
														 | 
														
														 | 
														
															 using System; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+using System.Runtime.InteropServices; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 using Avalonia; 
														 | 
														
														 | 
														
															 using Avalonia; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 using Avalonia.Controls; 
														 | 
														
														 | 
														
															 using Avalonia.Controls; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-using Avalonia.Interactivity; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 using Avalonia.Markup.Xaml; 
														 | 
														
														 | 
														
															 using Avalonia.Markup.Xaml; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-using Avalonia.Rendering; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+using Avalonia.Threading; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 namespace IntegrationTestApp 
														 | 
														
														 | 
														
															 namespace IntegrationTestApp 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 { 
														 | 
														
														 | 
														
															 { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public class ShowWindowTest : Window 
														 | 
														
														 | 
														
															     public class ShowWindowTest : Window 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     { 
														 | 
														
														 | 
														
															     { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        private readonly DispatcherTimer? _timer; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        private readonly TextBox? _orderTextBox; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+         
														 | 
													
												
											
												
													
														| 
														 | 
														
															         public ShowWindowTest() 
														 | 
														
														 | 
														
															         public ShowWindowTest() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             InitializeComponent(); 
														 | 
														
														 | 
														
															             InitializeComponent(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             DataContext = this; 
														 | 
														
														 | 
														
															             DataContext = this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             PositionChanged += (s, e) => this.GetControl<TextBox>("Position").Text = $"{Position}"; 
														 | 
														
														 | 
														
															             PositionChanged += (s, e) => this.GetControl<TextBox>("Position").Text = $"{Position}"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                _orderTextBox = this.GetControl<TextBox>("Order"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                _timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(250) }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                _timer.Tick += TimerOnTick; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                _timer.Start(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+         
														 | 
													
												
											
												
													
														| 
														 | 
														
															         private void InitializeComponent() 
														 | 
														
														 | 
														
															         private void InitializeComponent() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         { 
														 | 
														
														 | 
														
															         { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             AvaloniaXamlLoader.Load(this); 
														 | 
														
														 | 
														
															             AvaloniaXamlLoader.Load(this); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -36,5 +47,16 @@ namespace IntegrationTestApp 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 ownerRect.Text = $"{owner.Position}, {PixelSize.FromSize(owner.FrameSize!.Value, scaling)}"; 
														 | 
														
														 | 
														
															                 ownerRect.Text = $"{owner.Position}, {PixelSize.FromSize(owner.FrameSize!.Value, scaling)}"; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             } 
														 | 
														
														 | 
														
															             } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } 
														 | 
														
														 | 
														
															         } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        protected override void OnClosed(EventArgs e) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            base.OnClosed(e); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            _timer?.Stop(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        private void TimerOnTick(object? sender, EventArgs e) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            _orderTextBox!.Text = MacOSIntegration.GetOrderedIndex(this).ToString(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |