win32more-Microsoft.WindowsAppSDK 0.6.1.7.250310001__py2.py3-none-any.whl → 0.7.1.7.251107005__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. win32more/Microsoft/Foundation/__init__.py +1 -1
  2. win32more/Microsoft/Graphics/DirectX/__init__.py +1 -1
  3. win32more/Microsoft/Graphics/Display/__init__.py +9 -9
  4. win32more/Microsoft/Graphics/Imaging/__init__.py +77 -0
  5. win32more/Microsoft/Security/Authentication/OAuth/__init__.py +111 -111
  6. win32more/Microsoft/UI/Composition/Core/__init__.py +3 -3
  7. win32more/Microsoft/UI/Composition/Diagnostics/__init__.py +1 -1
  8. win32more/Microsoft/UI/Composition/Effects/__init__.py +3 -3
  9. win32more/Microsoft/UI/Composition/Interactions/__init__.py +1 -1
  10. win32more/Microsoft/UI/Composition/Scenes/__init__.py +10 -10
  11. win32more/Microsoft/UI/Composition/SystemBackdrops/__init__.py +8 -8
  12. win32more/Microsoft/UI/Composition/__init__.py +134 -134
  13. win32more/Microsoft/UI/Content/__init__.py +39 -39
  14. win32more/Microsoft/UI/Dispatching/__init__.py +11 -11
  15. win32more/Microsoft/UI/Input/DragDrop/__init__.py +7 -7
  16. win32more/Microsoft/UI/Input/Interop/__init__.py +1 -1
  17. win32more/Microsoft/UI/Input/__init__.py +103 -99
  18. win32more/Microsoft/UI/System/__init__.py +5 -5
  19. win32more/Microsoft/UI/Text/__init__.py +30 -30
  20. win32more/Microsoft/UI/Windowing/__init__.py +27 -27
  21. win32more/Microsoft/UI/Xaml/Automation/Peers/__init__.py +56 -55
  22. win32more/Microsoft/UI/Xaml/Automation/Provider/__init__.py +19 -19
  23. win32more/Microsoft/UI/Xaml/Automation/Text/__init__.py +1 -1
  24. win32more/Microsoft/UI/Xaml/Automation/__init__.py +41 -41
  25. win32more/Microsoft/UI/Xaml/Controls/AnimatedVisuals/__init__.py +17 -17
  26. win32more/Microsoft/UI/Xaml/Controls/Primitives/__init__.py +108 -107
  27. win32more/Microsoft/UI/Xaml/Controls/__init__.py +744 -744
  28. win32more/Microsoft/UI/Xaml/Data/__init__.py +31 -30
  29. win32more/Microsoft/UI/Xaml/Documents/__init__.py +38 -37
  30. win32more/Microsoft/UI/Xaml/Hosting/__init__.py +7 -7
  31. win32more/Microsoft/UI/Xaml/Input/__init__.py +38 -31
  32. win32more/Microsoft/UI/Xaml/Interop/__init__.py +3 -3
  33. win32more/Microsoft/UI/Xaml/Markup/__init__.py +19 -17
  34. win32more/Microsoft/UI/Xaml/Media/Animation/__init__.py +111 -109
  35. win32more/Microsoft/UI/Xaml/Media/Imaging/__init__.py +11 -11
  36. win32more/Microsoft/UI/Xaml/Media/Media3D/__init__.py +2 -1
  37. win32more/Microsoft/UI/Xaml/Media/__init__.py +34 -28
  38. win32more/Microsoft/UI/Xaml/Navigation/__init__.py +1 -1
  39. win32more/Microsoft/UI/Xaml/Printing/__init__.py +7 -7
  40. win32more/Microsoft/UI/Xaml/Resources/__init__.py +3 -3
  41. win32more/Microsoft/UI/Xaml/Shapes/__init__.py +1 -1
  42. win32more/Microsoft/UI/Xaml/XamlTypeInfo/__init__.py +2 -2
  43. win32more/Microsoft/UI/Xaml/__init__.py +190 -186
  44. win32more/Microsoft/UI/__init__.py +8 -5
  45. win32more/Microsoft/Windows/AI/ContentSafety/__init__.py +197 -0
  46. win32more/Microsoft/Windows/AI/Imaging/__init__.py +366 -0
  47. win32more/Microsoft/Windows/AI/Text/__init__.py +261 -0
  48. win32more/Microsoft/Windows/AI/__init__.py +49 -0
  49. win32more/Microsoft/Windows/AppLifecycle/__init__.py +21 -21
  50. win32more/Microsoft/Windows/AppNotifications/Builder/__init__.py +99 -99
  51. win32more/Microsoft/Windows/AppNotifications/__init__.py +45 -45
  52. win32more/Microsoft/Windows/ApplicationModel/Background/UniversalBGTask/__init__.py +1 -1
  53. win32more/Microsoft/Windows/ApplicationModel/Background/__init__.py +7 -7
  54. win32more/Microsoft/Windows/ApplicationModel/DynamicDependency/__init__.py +22 -21
  55. win32more/Microsoft/Windows/ApplicationModel/Resources/__init__.py +59 -59
  56. win32more/Microsoft/Windows/ApplicationModel/WindowsAppRuntime/__init__.py +32 -7
  57. win32more/Microsoft/Windows/BadgeNotifications/__init__.py +1 -1
  58. win32more/Microsoft/Windows/Globalization/__init__.py +9 -9
  59. win32more/Microsoft/Windows/Management/Deployment/__init__.py +86 -85
  60. win32more/Microsoft/Windows/Media/Capture/__init__.py +1 -1
  61. win32more/Microsoft/Windows/PushNotifications/__init__.py +6 -5
  62. win32more/Microsoft/Windows/Security/AccessControl/__init__.py +7 -6
  63. win32more/Microsoft/Windows/Storage/__init__.py +27 -27
  64. win32more/Microsoft/Windows/System/Power/__init__.py +23 -12
  65. win32more/Microsoft/Windows/System/__init__.py +15 -15
  66. win32more/Microsoft/Windows/Widgets/Feeds/Providers/__init__.py +65 -65
  67. win32more/Microsoft/Windows/Widgets/Notifications/__init__.py +25 -25
  68. win32more/Microsoft/Windows/Widgets/Providers/__init__.py +91 -67
  69. win32more/Microsoft/Windows/Widgets/__init__.py +2 -2
  70. win32more/Microsoft/Windows/Workloads/__init__.py +11 -0
  71. win32more/appsdk/versioninfo.py +1 -1
  72. win32more/dll/arm64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  73. win32more/dll/arm64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  74. win32more/dll/x64/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  75. win32more/dll/x64/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  76. win32more/dll/x86/Microsoft.Windows.ApplicationModel.Background.UniversalBGTask.dll +0 -0
  77. win32more/dll/x86/Microsoft.WindowsAppRuntime.Bootstrap.dll +0 -0
  78. win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/METADATA +6 -0
  79. win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info/RECORD +81 -0
  80. {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/licenses/LICENSE (Microsoft.WindowsAppSDK).txt +1 -1
  81. win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/METADATA +0 -6
  82. win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info/RECORD +0 -75
  83. {win32more_microsoft_windowsappsdk-0.6.1.7.250310001.dist-info → win32more_microsoft_windowsappsdk-0.7.1.7.251107005.dist-info}/WHEEL +0 -0
@@ -1,5 +1,5 @@
1
1
  from __future__ import annotations
2
- from win32more.winrt.prelude import *
2
+ from win32more._prelude import *
3
3
  import win32more.Microsoft.UI.Composition
4
4
  import win32more.Microsoft.UI.Content
5
5
  import win32more.Microsoft.UI.Dispatching
@@ -123,8 +123,8 @@ class Application(ComPtr, metaclass=_Application_Meta_):
123
123
  RequestedTheme = property(get_RequestedTheme, put_RequestedTheme)
124
124
  Resources = property(get_Resources, put_Resources)
125
125
  _Application_Meta_.Current = property(get_Current, None)
126
- UnhandledException = event()
127
- ResourceManagerRequested = event()
126
+ ResourceManagerRequested = event(add_ResourceManagerRequested, remove_ResourceManagerRequested)
127
+ UnhandledException = event(add_UnhandledException, remove_UnhandledException)
128
128
  class ApplicationHighContrastAdjustment(Enum, UInt32):
129
129
  None_ = 0
130
130
  Auto = 4294967295
@@ -189,7 +189,7 @@ class BindingFailedEventArgs(ComPtr):
189
189
  default_interface: win32more.Microsoft.UI.Xaml.IBindingFailedEventArgs
190
190
  _classid_ = 'Microsoft.UI.Xaml.BindingFailedEventArgs'
191
191
  @winrt_mixinmethod
192
- def get_Message(self: win32more.Microsoft.UI.Xaml.IBindingFailedEventArgs) -> WinRT_String: ...
192
+ def get_Message(self: win32more.Microsoft.UI.Xaml.IBindingFailedEventArgs) -> hstr: ...
193
193
  Message = property(get_Message, None)
194
194
  class BindingFailedEventHandler(MulticastDelegate):
195
195
  extends: IUnknown
@@ -446,6 +446,7 @@ class ColorPaletteResources(ComPtr):
446
446
  ListLow = property(get_ListLow, put_ListLow)
447
447
  ListMedium = property(get_ListMedium, put_ListMedium)
448
448
  class CornerRadius(Structure):
449
+ _name_ = 'Microsoft.UI.Xaml.CornerRadius'
449
450
  TopLeft: Double
450
451
  TopRight: Double
451
452
  BottomRight: Double
@@ -572,8 +573,8 @@ class DebugSettings(ComPtr):
572
573
  IsXamlResourceReferenceTracingEnabled = property(get_IsXamlResourceReferenceTracingEnabled, put_IsXamlResourceReferenceTracingEnabled)
573
574
  LayoutCycleDebugBreakLevel = property(get_LayoutCycleDebugBreakLevel, put_LayoutCycleDebugBreakLevel)
574
575
  LayoutCycleTracingLevel = property(get_LayoutCycleTracingLevel, put_LayoutCycleTracingLevel)
575
- BindingFailed = event()
576
- XamlResourceReferenceFailed = event()
576
+ BindingFailed = event(add_BindingFailed, remove_BindingFailed)
577
+ XamlResourceReferenceFailed = event(add_XamlResourceReferenceFailed, remove_XamlResourceReferenceFailed)
577
578
  class DependencyObject(ComPtr):
578
579
  extends: IInspectable
579
580
  default_interface: win32more.Microsoft.UI.Xaml.IDependencyObject
@@ -652,7 +653,7 @@ class DependencyObjectCollection(ComPtr):
652
653
  @winrt_mixinmethod
653
654
  def First(self: win32more.Windows.Foundation.Collections.IIterable[win32more.Microsoft.UI.Xaml.DependencyObject]) -> win32more.Windows.Foundation.Collections.IIterator[win32more.Microsoft.UI.Xaml.DependencyObject]: ...
654
655
  Size = property(get_Size, None)
655
- VectorChanged = event()
656
+ VectorChanged = event(add_VectorChanged, remove_VectorChanged)
656
657
  class _DependencyProperty_Meta_(ComPtr.__class__):
657
658
  pass
658
659
  class DependencyProperty(ComPtr, metaclass=_DependencyProperty_Meta_):
@@ -664,9 +665,9 @@ class DependencyProperty(ComPtr, metaclass=_DependencyProperty_Meta_):
664
665
  @winrt_classmethod
665
666
  def get_UnsetValue(cls: win32more.Microsoft.UI.Xaml.IDependencyPropertyStatics) -> IInspectable: ...
666
667
  @winrt_classmethod
667
- def Register(cls: win32more.Microsoft.UI.Xaml.IDependencyPropertyStatics, name: WinRT_String, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, typeMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
668
+ def Register(cls: win32more.Microsoft.UI.Xaml.IDependencyPropertyStatics, name: hstr, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, typeMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
668
669
  @winrt_classmethod
669
- def RegisterAttached(cls: win32more.Microsoft.UI.Xaml.IDependencyPropertyStatics, name: WinRT_String, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, defaultMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
670
+ def RegisterAttached(cls: win32more.Microsoft.UI.Xaml.IDependencyPropertyStatics, name: hstr, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, defaultMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
670
671
  _DependencyProperty_Meta_.UnsetValue = property(get_UnsetValue, None)
671
672
  class DependencyPropertyChangedCallback(MulticastDelegate):
672
673
  extends: IUnknown
@@ -723,7 +724,7 @@ class DispatcherTimer(ComPtr):
723
724
  def Stop(self: win32more.Microsoft.UI.Xaml.IDispatcherTimer) -> Void: ...
724
725
  Interval = property(get_Interval, put_Interval)
725
726
  IsEnabled = property(get_IsEnabled, None)
726
- Tick = event()
727
+ Tick = event(add_Tick, remove_Tick)
727
728
  class DragEventArgs(ComPtr):
728
729
  extends: win32more.Microsoft.UI.Xaml.RoutedEventArgs
729
730
  default_interface: win32more.Microsoft.UI.Xaml.IDragEventArgs
@@ -813,9 +814,9 @@ class DragUIOverride(ComPtr):
813
814
  default_interface: win32more.Microsoft.UI.Xaml.IDragUIOverride
814
815
  _classid_ = 'Microsoft.UI.Xaml.DragUIOverride'
815
816
  @winrt_mixinmethod
816
- def get_Caption(self: win32more.Microsoft.UI.Xaml.IDragUIOverride) -> WinRT_String: ...
817
+ def get_Caption(self: win32more.Microsoft.UI.Xaml.IDragUIOverride) -> hstr: ...
817
818
  @winrt_mixinmethod
818
- def put_Caption(self: win32more.Microsoft.UI.Xaml.IDragUIOverride, value: WinRT_String) -> Void: ...
819
+ def put_Caption(self: win32more.Microsoft.UI.Xaml.IDragUIOverride, value: hstr) -> Void: ...
819
820
  @winrt_mixinmethod
820
821
  def get_IsContentVisible(self: win32more.Microsoft.UI.Xaml.IDragUIOverride) -> Boolean: ...
821
822
  @winrt_mixinmethod
@@ -850,6 +851,7 @@ class DropCompletedEventArgs(ComPtr):
850
851
  def get_DropResult(self: win32more.Microsoft.UI.Xaml.IDropCompletedEventArgs) -> win32more.Windows.ApplicationModel.DataTransfer.DataPackageOperation: ...
851
852
  DropResult = property(get_DropResult, None)
852
853
  class Duration(Structure):
854
+ _name_ = 'Microsoft.UI.Xaml.Duration'
853
855
  TimeSpan: win32more.Windows.Foundation.TimeSpan
854
856
  Type: win32more.Microsoft.UI.Xaml.DurationType
855
857
  class _DurationHelper_Meta_(ComPtr.__class__):
@@ -1024,7 +1026,7 @@ class ExceptionRoutedEventArgs(ComPtr):
1024
1026
  default_interface: win32more.Microsoft.UI.Xaml.IExceptionRoutedEventArgs
1025
1027
  _classid_ = 'Microsoft.UI.Xaml.ExceptionRoutedEventArgs'
1026
1028
  @winrt_mixinmethod
1027
- def get_ErrorMessage(self: win32more.Microsoft.UI.Xaml.IExceptionRoutedEventArgs) -> WinRT_String: ...
1029
+ def get_ErrorMessage(self: win32more.Microsoft.UI.Xaml.IExceptionRoutedEventArgs) -> hstr: ...
1028
1030
  ErrorMessage = property(get_ErrorMessage, None)
1029
1031
  class ExceptionRoutedEventHandler(MulticastDelegate):
1030
1032
  extends: IUnknown
@@ -1114,9 +1116,9 @@ class FrameworkElement(ComPtr, metaclass=_FrameworkElement_Meta_):
1114
1116
  @winrt_mixinmethod
1115
1117
  def put_Tag(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: IInspectable) -> Void: ...
1116
1118
  @winrt_mixinmethod
1117
- def get_Language(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> WinRT_String: ...
1119
+ def get_Language(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> hstr: ...
1118
1120
  @winrt_mixinmethod
1119
- def put_Language(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: WinRT_String) -> Void: ...
1121
+ def put_Language(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: hstr) -> Void: ...
1120
1122
  @winrt_mixinmethod
1121
1123
  def get_ActualWidth(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> Double: ...
1122
1124
  @winrt_mixinmethod
@@ -1158,9 +1160,9 @@ class FrameworkElement(ComPtr, metaclass=_FrameworkElement_Meta_):
1158
1160
  @winrt_mixinmethod
1159
1161
  def put_Margin(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: win32more.Microsoft.UI.Xaml.Thickness) -> Void: ...
1160
1162
  @winrt_mixinmethod
1161
- def get_Name(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> WinRT_String: ...
1163
+ def get_Name(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> hstr: ...
1162
1164
  @winrt_mixinmethod
1163
- def put_Name(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: WinRT_String) -> Void: ...
1165
+ def put_Name(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, value: hstr) -> Void: ...
1164
1166
  @winrt_mixinmethod
1165
1167
  def get_BaseUri(self: win32more.Microsoft.UI.Xaml.IFrameworkElement) -> win32more.Windows.Foundation.Uri: ...
1166
1168
  @winrt_mixinmethod
@@ -1246,7 +1248,7 @@ class FrameworkElement(ComPtr, metaclass=_FrameworkElement_Meta_):
1246
1248
  @winrt_mixinmethod
1247
1249
  def remove_EffectiveViewportChanged(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
1248
1250
  @winrt_mixinmethod
1249
- def FindName(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, name: WinRT_String) -> IInspectable: ...
1251
+ def FindName(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, name: hstr) -> IInspectable: ...
1250
1252
  @winrt_mixinmethod
1251
1253
  def SetBinding(self: win32more.Microsoft.UI.Xaml.IFrameworkElement, dp: win32more.Microsoft.UI.Xaml.DependencyProperty, binding: win32more.Microsoft.UI.Xaml.Data.BindingBase) -> Void: ...
1252
1254
  @winrt_mixinmethod
@@ -1260,7 +1262,7 @@ class FrameworkElement(ComPtr, metaclass=_FrameworkElement_Meta_):
1260
1262
  @winrt_mixinmethod
1261
1263
  def OnApplyTemplate(self: win32more.Microsoft.UI.Xaml.IFrameworkElementOverrides) -> Void: ...
1262
1264
  @winrt_mixinmethod
1263
- def GoToElementStateCore(self: win32more.Microsoft.UI.Xaml.IFrameworkElementOverrides, stateName: WinRT_String, useTransitions: Boolean) -> Boolean: ...
1265
+ def GoToElementStateCore(self: win32more.Microsoft.UI.Xaml.IFrameworkElementOverrides, stateName: hstr, useTransitions: Boolean) -> Boolean: ...
1264
1266
  @winrt_classmethod
1265
1267
  def get_TagProperty(cls: win32more.Microsoft.UI.Xaml.IFrameworkElementStatics) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
1266
1268
  @winrt_classmethod
@@ -1372,14 +1374,14 @@ class FrameworkElement(ComPtr, metaclass=_FrameworkElement_Meta_):
1372
1374
  _FrameworkElement_Meta_.TagProperty = property(get_TagProperty, None)
1373
1375
  _FrameworkElement_Meta_.VerticalAlignmentProperty = property(get_VerticalAlignmentProperty, None)
1374
1376
  _FrameworkElement_Meta_.WidthProperty = property(get_WidthProperty, None)
1375
- Loaded = event()
1376
- Unloaded = event()
1377
- DataContextChanged = event()
1378
- SizeChanged = event()
1379
- LayoutUpdated = event()
1380
- Loading = event()
1381
- ActualThemeChanged = event()
1382
- EffectiveViewportChanged = event()
1377
+ ActualThemeChanged = event(add_ActualThemeChanged, remove_ActualThemeChanged)
1378
+ DataContextChanged = event(add_DataContextChanged, remove_DataContextChanged)
1379
+ EffectiveViewportChanged = event(add_EffectiveViewportChanged, remove_EffectiveViewportChanged)
1380
+ LayoutUpdated = event(add_LayoutUpdated, remove_LayoutUpdated)
1381
+ Loaded = event(add_Loaded, remove_Loaded)
1382
+ Loading = event(add_Loading, remove_Loading)
1383
+ SizeChanged = event(add_SizeChanged, remove_SizeChanged)
1384
+ Unloaded = event(add_Unloaded, remove_Unloaded)
1383
1385
  class FrameworkTemplate(ComPtr):
1384
1386
  extends: win32more.Microsoft.UI.Xaml.DependencyObject
1385
1387
  default_interface: win32more.Microsoft.UI.Xaml.IFrameworkTemplate
@@ -1411,7 +1413,7 @@ class FrameworkView(ComPtr):
1411
1413
  @winrt_mixinmethod
1412
1414
  def SetWindow(self: win32more.Windows.ApplicationModel.Core.IFrameworkView, window: win32more.Windows.UI.Core.CoreWindow) -> Void: ...
1413
1415
  @winrt_mixinmethod
1414
- def Load(self: win32more.Windows.ApplicationModel.Core.IFrameworkView, entryPoint: WinRT_String) -> Void: ...
1416
+ def Load(self: win32more.Windows.ApplicationModel.Core.IFrameworkView, entryPoint: hstr) -> Void: ...
1415
1417
  @winrt_mixinmethod
1416
1418
  def Run(self: win32more.Windows.ApplicationModel.Core.IFrameworkView) -> Void: ...
1417
1419
  @winrt_mixinmethod
@@ -1432,6 +1434,7 @@ class FrameworkViewSource(ComPtr):
1432
1434
  @winrt_mixinmethod
1433
1435
  def CreateView(self: win32more.Windows.ApplicationModel.Core.IFrameworkViewSource) -> win32more.Windows.ApplicationModel.Core.IFrameworkView: ...
1434
1436
  class GridLength(Structure):
1437
+ _name_ = 'Microsoft.UI.Xaml.GridLength'
1435
1438
  Value: Double
1436
1439
  GridUnitType: win32more.Microsoft.UI.Xaml.GridUnitType
1437
1440
  class _GridLengthHelper_Meta_(ComPtr.__class__):
@@ -1527,7 +1530,7 @@ class IApplication(ComPtr):
1527
1530
  HighContrastAdjustment = property(get_HighContrastAdjustment, put_HighContrastAdjustment)
1528
1531
  RequestedTheme = property(get_RequestedTheme, put_RequestedTheme)
1529
1532
  Resources = property(get_Resources, put_Resources)
1530
- UnhandledException = event()
1533
+ UnhandledException = event(add_UnhandledException, remove_UnhandledException)
1531
1534
  class IApplication2(ComPtr):
1532
1535
  extends: IInspectable
1533
1536
  _classid_ = 'Microsoft.UI.Xaml.IApplication2'
@@ -1536,7 +1539,7 @@ class IApplication2(ComPtr):
1536
1539
  def add_ResourceManagerRequested(self, handler: win32more.Windows.Foundation.TypedEventHandler[IInspectable, win32more.Microsoft.UI.Xaml.ResourceManagerRequestedEventArgs]) -> win32more.Windows.Foundation.EventRegistrationToken: ...
1537
1540
  @winrt_commethod(7)
1538
1541
  def remove_ResourceManagerRequested(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
1539
- ResourceManagerRequested = event()
1542
+ ResourceManagerRequested = event(add_ResourceManagerRequested, remove_ResourceManagerRequested)
1540
1543
  class IApplication3(ComPtr):
1541
1544
  extends: IInspectable
1542
1545
  _classid_ = 'Microsoft.UI.Xaml.IApplication3'
@@ -1580,7 +1583,7 @@ class IBindingFailedEventArgs(ComPtr):
1580
1583
  _classid_ = 'Microsoft.UI.Xaml.IBindingFailedEventArgs'
1581
1584
  _iid_ = Guid('{a7bf50f3-dbc0-5b44-be74-56e8f80fd716}')
1582
1585
  @winrt_commethod(6)
1583
- def get_Message(self) -> WinRT_String: ...
1586
+ def get_Message(self) -> hstr: ...
1584
1587
  Message = property(get_Message, None)
1585
1588
  class IBringIntoViewOptions(ComPtr):
1586
1589
  extends: IInspectable
@@ -1918,7 +1921,7 @@ class IDebugSettings(ComPtr):
1918
1921
  FailFastOnErrors = property(get_FailFastOnErrors, put_FailFastOnErrors)
1919
1922
  IsBindingTracingEnabled = property(get_IsBindingTracingEnabled, put_IsBindingTracingEnabled)
1920
1923
  IsTextPerformanceVisualizationEnabled = property(get_IsTextPerformanceVisualizationEnabled, put_IsTextPerformanceVisualizationEnabled)
1921
- BindingFailed = event()
1924
+ BindingFailed = event(add_BindingFailed, remove_BindingFailed)
1922
1925
  class IDebugSettings2(ComPtr):
1923
1926
  extends: IInspectable
1924
1927
  _classid_ = 'Microsoft.UI.Xaml.IDebugSettings2'
@@ -1932,7 +1935,7 @@ class IDebugSettings2(ComPtr):
1932
1935
  @winrt_commethod(9)
1933
1936
  def remove_XamlResourceReferenceFailed(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
1934
1937
  IsXamlResourceReferenceTracingEnabled = property(get_IsXamlResourceReferenceTracingEnabled, put_IsXamlResourceReferenceTracingEnabled)
1935
- XamlResourceReferenceFailed = event()
1938
+ XamlResourceReferenceFailed = event(add_XamlResourceReferenceFailed, remove_XamlResourceReferenceFailed)
1936
1939
  class IDebugSettings3(ComPtr):
1937
1940
  extends: IInspectable
1938
1941
  _classid_ = 'Microsoft.UI.Xaml.IDebugSettings3'
@@ -2009,9 +2012,9 @@ class IDependencyPropertyStatics(ComPtr):
2009
2012
  @winrt_commethod(6)
2010
2013
  def get_UnsetValue(self) -> IInspectable: ...
2011
2014
  @winrt_commethod(7)
2012
- def Register(self, name: WinRT_String, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, typeMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
2015
+ def Register(self, name: hstr, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, typeMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
2013
2016
  @winrt_commethod(8)
2014
- def RegisterAttached(self, name: WinRT_String, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, defaultMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
2017
+ def RegisterAttached(self, name: hstr, propertyType: win32more.Windows.UI.Xaml.Interop.TypeName, ownerType: win32more.Windows.UI.Xaml.Interop.TypeName, defaultMetadata: win32more.Microsoft.UI.Xaml.PropertyMetadata) -> win32more.Microsoft.UI.Xaml.DependencyProperty: ...
2015
2018
  UnsetValue = property(get_UnsetValue, None)
2016
2019
  class IDispatcherTimer(ComPtr):
2017
2020
  extends: IInspectable
@@ -2033,7 +2036,7 @@ class IDispatcherTimer(ComPtr):
2033
2036
  def Stop(self) -> Void: ...
2034
2037
  Interval = property(get_Interval, put_Interval)
2035
2038
  IsEnabled = property(get_IsEnabled, None)
2036
- Tick = event()
2039
+ Tick = event(add_Tick, remove_Tick)
2037
2040
  class IDispatcherTimerFactory(ComPtr):
2038
2041
  extends: IInspectable
2039
2042
  _classid_ = 'Microsoft.UI.Xaml.IDispatcherTimerFactory'
@@ -2124,9 +2127,9 @@ class IDragUIOverride(ComPtr):
2124
2127
  _classid_ = 'Microsoft.UI.Xaml.IDragUIOverride'
2125
2128
  _iid_ = Guid('{3260b18b-70df-5df2-b98a-56beb0601f79}')
2126
2129
  @winrt_commethod(6)
2127
- def get_Caption(self) -> WinRT_String: ...
2130
+ def get_Caption(self) -> hstr: ...
2128
2131
  @winrt_commethod(7)
2129
- def put_Caption(self, value: WinRT_String) -> Void: ...
2132
+ def put_Caption(self, value: hstr) -> Void: ...
2130
2133
  @winrt_commethod(8)
2131
2134
  def get_IsContentVisible(self) -> Boolean: ...
2132
2135
  @winrt_commethod(9)
@@ -2292,7 +2295,7 @@ class IExceptionRoutedEventArgs(ComPtr):
2292
2295
  _classid_ = 'Microsoft.UI.Xaml.IExceptionRoutedEventArgs'
2293
2296
  _iid_ = Guid('{e8bcb6d2-d3f5-5393-a84f-dfcd44a2df34}')
2294
2297
  @winrt_commethod(6)
2295
- def get_ErrorMessage(self) -> WinRT_String: ...
2298
+ def get_ErrorMessage(self) -> hstr: ...
2296
2299
  ErrorMessage = property(get_ErrorMessage, None)
2297
2300
  class IExceptionRoutedEventArgsFactory(ComPtr):
2298
2301
  extends: IInspectable
@@ -2313,9 +2316,9 @@ class IFrameworkElement(ComPtr):
2313
2316
  @winrt_commethod(10)
2314
2317
  def put_Tag(self, value: IInspectable) -> Void: ...
2315
2318
  @winrt_commethod(11)
2316
- def get_Language(self) -> WinRT_String: ...
2319
+ def get_Language(self) -> hstr: ...
2317
2320
  @winrt_commethod(12)
2318
- def put_Language(self, value: WinRT_String) -> Void: ...
2321
+ def put_Language(self, value: hstr) -> Void: ...
2319
2322
  @winrt_commethod(13)
2320
2323
  def get_ActualWidth(self) -> Double: ...
2321
2324
  @winrt_commethod(14)
@@ -2357,9 +2360,9 @@ class IFrameworkElement(ComPtr):
2357
2360
  @winrt_commethod(32)
2358
2361
  def put_Margin(self, value: win32more.Microsoft.UI.Xaml.Thickness) -> Void: ...
2359
2362
  @winrt_commethod(33)
2360
- def get_Name(self) -> WinRT_String: ...
2363
+ def get_Name(self) -> hstr: ...
2361
2364
  @winrt_commethod(34)
2362
- def put_Name(self, value: WinRT_String) -> Void: ...
2365
+ def put_Name(self, value: hstr) -> Void: ...
2363
2366
  @winrt_commethod(35)
2364
2367
  def get_BaseUri(self) -> win32more.Windows.Foundation.Uri: ...
2365
2368
  @winrt_commethod(36)
@@ -2445,7 +2448,7 @@ class IFrameworkElement(ComPtr):
2445
2448
  @winrt_commethod(76)
2446
2449
  def remove_EffectiveViewportChanged(self, token: win32more.Windows.Foundation.EventRegistrationToken) -> Void: ...
2447
2450
  @winrt_commethod(77)
2448
- def FindName(self, name: WinRT_String) -> IInspectable: ...
2451
+ def FindName(self, name: hstr) -> IInspectable: ...
2449
2452
  @winrt_commethod(78)
2450
2453
  def SetBinding(self, dp: win32more.Microsoft.UI.Xaml.DependencyProperty, binding: win32more.Microsoft.UI.Xaml.Data.BindingBase) -> Void: ...
2451
2454
  @winrt_commethod(79)
@@ -2481,14 +2484,14 @@ class IFrameworkElement(ComPtr):
2481
2484
  Triggers = property(get_Triggers, None)
2482
2485
  VerticalAlignment = property(get_VerticalAlignment, put_VerticalAlignment)
2483
2486
  Width = property(get_Width, put_Width)
2484
- Loaded = event()
2485
- Unloaded = event()
2486
- DataContextChanged = event()
2487
- SizeChanged = event()
2488
- LayoutUpdated = event()
2489
- Loading = event()
2490
- ActualThemeChanged = event()
2491
- EffectiveViewportChanged = event()
2487
+ ActualThemeChanged = event(add_ActualThemeChanged, remove_ActualThemeChanged)
2488
+ DataContextChanged = event(add_DataContextChanged, remove_DataContextChanged)
2489
+ EffectiveViewportChanged = event(add_EffectiveViewportChanged, remove_EffectiveViewportChanged)
2490
+ LayoutUpdated = event(add_LayoutUpdated, remove_LayoutUpdated)
2491
+ Loaded = event(add_Loaded, remove_Loaded)
2492
+ Loading = event(add_Loading, remove_Loading)
2493
+ SizeChanged = event(add_SizeChanged, remove_SizeChanged)
2494
+ Unloaded = event(add_Unloaded, remove_Unloaded)
2492
2495
  class IFrameworkElementFactory(ComPtr):
2493
2496
  extends: IInspectable
2494
2497
  _classid_ = 'Microsoft.UI.Xaml.IFrameworkElementFactory'
@@ -2506,7 +2509,7 @@ class IFrameworkElementOverrides(ComPtr):
2506
2509
  @winrt_commethod(8)
2507
2510
  def OnApplyTemplate(self) -> Void: ...
2508
2511
  @winrt_commethod(9)
2509
- def GoToElementStateCore(self, stateName: WinRT_String, useTransitions: Boolean) -> Boolean: ...
2512
+ def GoToElementStateCore(self, stateName: hstr, useTransitions: Boolean) -> Boolean: ...
2510
2513
  class IFrameworkElementProtected(ComPtr):
2511
2514
  extends: IInspectable
2512
2515
  _classid_ = 'Microsoft.UI.Xaml.IFrameworkElementProtected'
@@ -2643,7 +2646,7 @@ class ILaunchActivatedEventArgs(ComPtr):
2643
2646
  _classid_ = 'Microsoft.UI.Xaml.ILaunchActivatedEventArgs'
2644
2647
  _iid_ = Guid('{d505cea9-1bcb-5b29-a8be-944e00f06f78}')
2645
2648
  @winrt_commethod(6)
2646
- def get_Arguments(self) -> WinRT_String: ...
2649
+ def get_Arguments(self) -> hstr: ...
2647
2650
  @winrt_commethod(7)
2648
2651
  def get_UWPLaunchActivatedEventArgs(self) -> win32more.Windows.ApplicationModel.Activation.LaunchActivatedEventArgs: ...
2649
2652
  Arguments = property(get_Arguments, None)
@@ -2653,7 +2656,7 @@ class IMediaFailedRoutedEventArgs(ComPtr):
2653
2656
  _classid_ = 'Microsoft.UI.Xaml.IMediaFailedRoutedEventArgs'
2654
2657
  _iid_ = Guid('{a1dce737-539b-5e54-99af-75ece428bf9b}')
2655
2658
  @winrt_commethod(6)
2656
- def get_ErrorTrace(self) -> WinRT_String: ...
2659
+ def get_ErrorTrace(self) -> hstr: ...
2657
2660
  ErrorTrace = property(get_ErrorTrace, None)
2658
2661
  class IPointHelper(ComPtr):
2659
2662
  extends: IInspectable
@@ -2700,14 +2703,14 @@ class IPropertyPath(ComPtr):
2700
2703
  _classid_ = 'Microsoft.UI.Xaml.IPropertyPath'
2701
2704
  _iid_ = Guid('{8b0712f6-9e57-53b0-80b1-966a79f60b96}')
2702
2705
  @winrt_commethod(6)
2703
- def get_Path(self) -> WinRT_String: ...
2706
+ def get_Path(self) -> hstr: ...
2704
2707
  Path = property(get_Path, None)
2705
2708
  class IPropertyPathFactory(ComPtr):
2706
2709
  extends: IInspectable
2707
2710
  _classid_ = 'Microsoft.UI.Xaml.IPropertyPathFactory'
2708
2711
  _iid_ = Guid('{08a8ccab-7ff8-5cec-bd3c-72c98804d989}')
2709
2712
  @winrt_commethod(6)
2710
- def CreateInstance(self, path: WinRT_String) -> win32more.Microsoft.UI.Xaml.PropertyPath: ...
2713
+ def CreateInstance(self, path: hstr) -> win32more.Microsoft.UI.Xaml.PropertyPath: ...
2711
2714
  class IRectHelper(ComPtr):
2712
2715
  extends: IInspectable
2713
2716
  _classid_ = 'Microsoft.UI.Xaml.IRectHelper'
@@ -3094,9 +3097,9 @@ class IUIElement(ComPtr):
3094
3097
  @winrt_commethod(57)
3095
3098
  def put_AccessKeyScopeOwner(self, value: win32more.Microsoft.UI.Xaml.DependencyObject) -> Void: ...
3096
3099
  @winrt_commethod(58)
3097
- def get_AccessKey(self) -> WinRT_String: ...
3100
+ def get_AccessKey(self) -> hstr: ...
3098
3101
  @winrt_commethod(59)
3099
- def put_AccessKey(self, value: WinRT_String) -> Void: ...
3102
+ def put_AccessKey(self, value: hstr) -> Void: ...
3100
3103
  @winrt_commethod(60)
3101
3104
  def get_KeyTipPlacementMode(self) -> win32more.Microsoft.UI.Xaml.Input.KeyTipPlacementMode: ...
3102
3105
  @winrt_commethod(61)
@@ -3501,46 +3504,46 @@ class IUIElement(ComPtr):
3501
3504
  XYFocusUp = property(get_XYFocusUp, put_XYFocusUp)
3502
3505
  XYFocusUpNavigationStrategy = property(get_XYFocusUpNavigationStrategy, put_XYFocusUpNavigationStrategy)
3503
3506
  XamlRoot = property(get_XamlRoot, put_XamlRoot)
3504
- KeyUp = event()
3505
- KeyDown = event()
3506
- GotFocus = event()
3507
- LostFocus = event()
3508
- DragStarting = event()
3509
- DropCompleted = event()
3510
- CharacterReceived = event()
3511
- DragEnter = event()
3512
- DragLeave = event()
3513
- DragOver = event()
3514
- Drop = event()
3515
- PointerPressed = event()
3516
- PointerMoved = event()
3517
- PointerReleased = event()
3518
- PointerEntered = event()
3519
- PointerExited = event()
3520
- PointerCaptureLost = event()
3521
- PointerCanceled = event()
3522
- PointerWheelChanged = event()
3523
- Tapped = event()
3524
- DoubleTapped = event()
3525
- Holding = event()
3526
- ContextRequested = event()
3527
- ContextCanceled = event()
3528
- RightTapped = event()
3529
- ManipulationStarting = event()
3530
- ManipulationInertiaStarting = event()
3531
- ManipulationStarted = event()
3532
- ManipulationDelta = event()
3533
- ManipulationCompleted = event()
3534
- AccessKeyDisplayRequested = event()
3535
- AccessKeyDisplayDismissed = event()
3536
- AccessKeyInvoked = event()
3537
- ProcessKeyboardAccelerators = event()
3538
- GettingFocus = event()
3539
- LosingFocus = event()
3540
- NoFocusCandidateFound = event()
3541
- PreviewKeyDown = event()
3542
- PreviewKeyUp = event()
3543
- BringIntoViewRequested = event()
3507
+ AccessKeyDisplayDismissed = event(add_AccessKeyDisplayDismissed, remove_AccessKeyDisplayDismissed)
3508
+ AccessKeyDisplayRequested = event(add_AccessKeyDisplayRequested, remove_AccessKeyDisplayRequested)
3509
+ AccessKeyInvoked = event(add_AccessKeyInvoked, remove_AccessKeyInvoked)
3510
+ BringIntoViewRequested = event(add_BringIntoViewRequested, remove_BringIntoViewRequested)
3511
+ CharacterReceived = event(add_CharacterReceived, remove_CharacterReceived)
3512
+ ContextCanceled = event(add_ContextCanceled, remove_ContextCanceled)
3513
+ ContextRequested = event(add_ContextRequested, remove_ContextRequested)
3514
+ DoubleTapped = event(add_DoubleTapped, remove_DoubleTapped)
3515
+ DragEnter = event(add_DragEnter, remove_DragEnter)
3516
+ DragLeave = event(add_DragLeave, remove_DragLeave)
3517
+ DragOver = event(add_DragOver, remove_DragOver)
3518
+ DragStarting = event(add_DragStarting, remove_DragStarting)
3519
+ Drop = event(add_Drop, remove_Drop)
3520
+ DropCompleted = event(add_DropCompleted, remove_DropCompleted)
3521
+ GettingFocus = event(add_GettingFocus, remove_GettingFocus)
3522
+ GotFocus = event(add_GotFocus, remove_GotFocus)
3523
+ Holding = event(add_Holding, remove_Holding)
3524
+ KeyDown = event(add_KeyDown, remove_KeyDown)
3525
+ KeyUp = event(add_KeyUp, remove_KeyUp)
3526
+ LosingFocus = event(add_LosingFocus, remove_LosingFocus)
3527
+ LostFocus = event(add_LostFocus, remove_LostFocus)
3528
+ ManipulationCompleted = event(add_ManipulationCompleted, remove_ManipulationCompleted)
3529
+ ManipulationDelta = event(add_ManipulationDelta, remove_ManipulationDelta)
3530
+ ManipulationInertiaStarting = event(add_ManipulationInertiaStarting, remove_ManipulationInertiaStarting)
3531
+ ManipulationStarted = event(add_ManipulationStarted, remove_ManipulationStarted)
3532
+ ManipulationStarting = event(add_ManipulationStarting, remove_ManipulationStarting)
3533
+ NoFocusCandidateFound = event(add_NoFocusCandidateFound, remove_NoFocusCandidateFound)
3534
+ PointerCanceled = event(add_PointerCanceled, remove_PointerCanceled)
3535
+ PointerCaptureLost = event(add_PointerCaptureLost, remove_PointerCaptureLost)
3536
+ PointerEntered = event(add_PointerEntered, remove_PointerEntered)
3537
+ PointerExited = event(add_PointerExited, remove_PointerExited)
3538
+ PointerMoved = event(add_PointerMoved, remove_PointerMoved)
3539
+ PointerPressed = event(add_PointerPressed, remove_PointerPressed)
3540
+ PointerReleased = event(add_PointerReleased, remove_PointerReleased)
3541
+ PointerWheelChanged = event(add_PointerWheelChanged, remove_PointerWheelChanged)
3542
+ PreviewKeyDown = event(add_PreviewKeyDown, remove_PreviewKeyDown)
3543
+ PreviewKeyUp = event(add_PreviewKeyUp, remove_PreviewKeyUp)
3544
+ ProcessKeyboardAccelerators = event(add_ProcessKeyboardAccelerators, remove_ProcessKeyboardAccelerators)
3545
+ RightTapped = event(add_RightTapped, remove_RightTapped)
3546
+ Tapped = event(add_Tapped, remove_Tapped)
3544
3547
  class IUIElementFactory(ComPtr):
3545
3548
  extends: IInspectable
3546
3549
  _classid_ = 'Microsoft.UI.Xaml.IUIElementFactory'
@@ -3564,7 +3567,7 @@ class IUIElementOverrides(ComPtr):
3564
3567
  @winrt_commethod(12)
3565
3568
  def OnBringIntoViewRequested(self, e: win32more.Microsoft.UI.Xaml.BringIntoViewRequestedEventArgs) -> Void: ...
3566
3569
  @winrt_commethod(13)
3567
- def PopulatePropertyInfoOverride(self, propertyName: WinRT_String, animationPropertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
3570
+ def PopulatePropertyInfoOverride(self, propertyName: hstr, animationPropertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
3568
3571
  class IUIElementProtected(ComPtr):
3569
3572
  extends: IInspectable
3570
3573
  _classid_ = 'Microsoft.UI.Xaml.IUIElementProtected'
@@ -3835,7 +3838,7 @@ class IUnhandledExceptionEventArgs(ComPtr):
3835
3838
  @winrt_commethod(6)
3836
3839
  def get_Exception(self) -> win32more.Windows.Foundation.HResult: ...
3837
3840
  @winrt_commethod(7)
3838
- def get_Message(self) -> WinRT_String: ...
3841
+ def get_Message(self) -> hstr: ...
3839
3842
  @winrt_commethod(8)
3840
3843
  def get_Handled(self) -> Boolean: ...
3841
3844
  @winrt_commethod(9)
@@ -3868,7 +3871,7 @@ class IVisualState(ComPtr):
3868
3871
  _classid_ = 'Microsoft.UI.Xaml.IVisualState'
3869
3872
  _iid_ = Guid('{4bb32ae8-0e28-5521-a7f5-66b661372994}')
3870
3873
  @winrt_commethod(6)
3871
- def get_Name(self) -> WinRT_String: ...
3874
+ def get_Name(self) -> hstr: ...
3872
3875
  @winrt_commethod(7)
3873
3876
  def get_Storyboard(self) -> win32more.Microsoft.UI.Xaml.Media.Animation.Storyboard: ...
3874
3877
  @winrt_commethod(8)
@@ -3905,7 +3908,7 @@ class IVisualStateGroup(ComPtr):
3905
3908
  _classid_ = 'Microsoft.UI.Xaml.IVisualStateGroup'
3906
3909
  _iid_ = Guid('{8dfd691b-710c-5d6d-b71a-7a7f5ed54ac7}')
3907
3910
  @winrt_commethod(6)
3908
- def get_Name(self) -> WinRT_String: ...
3911
+ def get_Name(self) -> hstr: ...
3909
3912
  @winrt_commethod(7)
3910
3913
  def get_Transitions(self) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.UI.Xaml.VisualTransition]: ...
3911
3914
  @winrt_commethod(8)
@@ -3924,8 +3927,8 @@ class IVisualStateGroup(ComPtr):
3924
3927
  Name = property(get_Name, None)
3925
3928
  States = property(get_States, None)
3926
3929
  Transitions = property(get_Transitions, None)
3927
- CurrentStateChanged = event()
3928
- CurrentStateChanging = event()
3930
+ CurrentStateChanged = event(add_CurrentStateChanged, remove_CurrentStateChanged)
3931
+ CurrentStateChanging = event(add_CurrentStateChanging, remove_CurrentStateChanging)
3929
3932
  class IVisualStateManager(ComPtr):
3930
3933
  extends: IInspectable
3931
3934
  _classid_ = 'Microsoft.UI.Xaml.IVisualStateManager'
@@ -3941,7 +3944,7 @@ class IVisualStateManagerOverrides(ComPtr):
3941
3944
  _classid_ = 'Microsoft.UI.Xaml.IVisualStateManagerOverrides'
3942
3945
  _iid_ = Guid('{e3f8e9c9-9432-514c-923e-142cd8c82730}')
3943
3946
  @winrt_commethod(6)
3944
- def GoToStateCore(self, control: win32more.Microsoft.UI.Xaml.Controls.Control, templateRoot: win32more.Microsoft.UI.Xaml.FrameworkElement, stateName: WinRT_String, group: win32more.Microsoft.UI.Xaml.VisualStateGroup, state: win32more.Microsoft.UI.Xaml.VisualState, useTransitions: Boolean) -> Boolean: ...
3947
+ def GoToStateCore(self, control: win32more.Microsoft.UI.Xaml.Controls.Control, templateRoot: win32more.Microsoft.UI.Xaml.FrameworkElement, stateName: hstr, group: win32more.Microsoft.UI.Xaml.VisualStateGroup, state: win32more.Microsoft.UI.Xaml.VisualState, useTransitions: Boolean) -> Boolean: ...
3945
3948
  class IVisualStateManagerProtected(ComPtr):
3946
3949
  extends: IInspectable
3947
3950
  _classid_ = 'Microsoft.UI.Xaml.IVisualStateManagerProtected'
@@ -3963,7 +3966,7 @@ class IVisualStateManagerStatics(ComPtr):
3963
3966
  @winrt_commethod(9)
3964
3967
  def SetCustomVisualStateManager(self, obj: win32more.Microsoft.UI.Xaml.FrameworkElement, value: win32more.Microsoft.UI.Xaml.VisualStateManager) -> Void: ...
3965
3968
  @winrt_commethod(10)
3966
- def GoToState(self, control: win32more.Microsoft.UI.Xaml.Controls.Control, stateName: WinRT_String, useTransitions: Boolean) -> Boolean: ...
3969
+ def GoToState(self, control: win32more.Microsoft.UI.Xaml.Controls.Control, stateName: hstr, useTransitions: Boolean) -> Boolean: ...
3967
3970
  CustomVisualStateManagerProperty = property(get_CustomVisualStateManagerProperty, None)
3968
3971
  class IVisualTransition(ComPtr):
3969
3972
  extends: IInspectable
@@ -3978,13 +3981,13 @@ class IVisualTransition(ComPtr):
3978
3981
  @winrt_commethod(9)
3979
3982
  def put_GeneratedEasingFunction(self, value: win32more.Microsoft.UI.Xaml.Media.Animation.EasingFunctionBase) -> Void: ...
3980
3983
  @winrt_commethod(10)
3981
- def get_To(self) -> WinRT_String: ...
3984
+ def get_To(self) -> hstr: ...
3982
3985
  @winrt_commethod(11)
3983
- def put_To(self, value: WinRT_String) -> Void: ...
3986
+ def put_To(self, value: hstr) -> Void: ...
3984
3987
  @winrt_commethod(12)
3985
- def get_From(self) -> WinRT_String: ...
3988
+ def get_From(self) -> hstr: ...
3986
3989
  @winrt_commethod(13)
3987
- def put_From(self, value: WinRT_String) -> Void: ...
3990
+ def put_From(self, value: hstr) -> Void: ...
3988
3991
  @winrt_commethod(14)
3989
3992
  def get_Storyboard(self) -> win32more.Microsoft.UI.Xaml.Media.Animation.Storyboard: ...
3990
3993
  @winrt_commethod(15)
@@ -4021,9 +4024,9 @@ class IWindow(ComPtr):
4021
4024
  @winrt_commethod(13)
4022
4025
  def get_DispatcherQueue(self) -> win32more.Microsoft.UI.Dispatching.DispatcherQueue: ...
4023
4026
  @winrt_commethod(14)
4024
- def get_Title(self) -> WinRT_String: ...
4027
+ def get_Title(self) -> hstr: ...
4025
4028
  @winrt_commethod(15)
4026
- def put_Title(self, value: WinRT_String) -> Void: ...
4029
+ def put_Title(self, value: hstr) -> Void: ...
4027
4030
  @winrt_commethod(16)
4028
4031
  def get_ExtendsContentIntoTitleBar(self) -> Boolean: ...
4029
4032
  @winrt_commethod(17)
@@ -4059,10 +4062,10 @@ class IWindow(ComPtr):
4059
4062
  ExtendsContentIntoTitleBar = property(get_ExtendsContentIntoTitleBar, put_ExtendsContentIntoTitleBar)
4060
4063
  Title = property(get_Title, put_Title)
4061
4064
  Visible = property(get_Visible, None)
4062
- Activated = event()
4063
- Closed = event()
4064
- SizeChanged = event()
4065
- VisibilityChanged = event()
4065
+ Activated = event(add_Activated, remove_Activated)
4066
+ Closed = event(add_Closed, remove_Closed)
4067
+ SizeChanged = event(add_SizeChanged, remove_SizeChanged)
4068
+ VisibilityChanged = event(add_VisibilityChanged, remove_VisibilityChanged)
4066
4069
  class IWindow2(ComPtr):
4067
4070
  extends: IInspectable
4068
4071
  _classid_ = 'Microsoft.UI.Xaml.IWindow2'
@@ -4161,7 +4164,7 @@ class IXamlResourceReferenceFailedEventArgs(ComPtr):
4161
4164
  _classid_ = 'Microsoft.UI.Xaml.IXamlResourceReferenceFailedEventArgs'
4162
4165
  _iid_ = Guid('{1b175ee6-d08b-50ff-8f89-a1ff27edef66}')
4163
4166
  @winrt_commethod(6)
4164
- def get_Message(self) -> WinRT_String: ...
4167
+ def get_Message(self) -> hstr: ...
4165
4168
  Message = property(get_Message, None)
4166
4169
  class IXamlRoot(ComPtr):
4167
4170
  extends: IInspectable
@@ -4183,7 +4186,7 @@ class IXamlRoot(ComPtr):
4183
4186
  IsHostVisible = property(get_IsHostVisible, None)
4184
4187
  RasterizationScale = property(get_RasterizationScale, None)
4185
4188
  Size = property(get_Size, None)
4186
- Changed = event()
4189
+ Changed = event(add_Changed, remove_Changed)
4187
4190
  class IXamlRoot2(ComPtr):
4188
4191
  extends: IInspectable
4189
4192
  _classid_ = 'Microsoft.UI.Xaml.IXamlRoot2'
@@ -4220,7 +4223,7 @@ class LaunchActivatedEventArgs(ComPtr):
4220
4223
  default_interface: win32more.Microsoft.UI.Xaml.ILaunchActivatedEventArgs
4221
4224
  _classid_ = 'Microsoft.UI.Xaml.LaunchActivatedEventArgs'
4222
4225
  @winrt_mixinmethod
4223
- def get_Arguments(self: win32more.Microsoft.UI.Xaml.ILaunchActivatedEventArgs) -> WinRT_String: ...
4226
+ def get_Arguments(self: win32more.Microsoft.UI.Xaml.ILaunchActivatedEventArgs) -> hstr: ...
4224
4227
  @winrt_mixinmethod
4225
4228
  def get_UWPLaunchActivatedEventArgs(self: win32more.Microsoft.UI.Xaml.ILaunchActivatedEventArgs) -> win32more.Windows.ApplicationModel.Activation.LaunchActivatedEventArgs: ...
4226
4229
  Arguments = property(get_Arguments, None)
@@ -4247,7 +4250,7 @@ class MediaFailedRoutedEventArgs(ComPtr):
4247
4250
  default_interface: win32more.Microsoft.UI.Xaml.IMediaFailedRoutedEventArgs
4248
4251
  _classid_ = 'Microsoft.UI.Xaml.MediaFailedRoutedEventArgs'
4249
4252
  @winrt_mixinmethod
4250
- def get_ErrorTrace(self: win32more.Microsoft.UI.Xaml.IMediaFailedRoutedEventArgs) -> WinRT_String: ...
4253
+ def get_ErrorTrace(self: win32more.Microsoft.UI.Xaml.IMediaFailedRoutedEventArgs) -> hstr: ...
4251
4254
  ErrorTrace = property(get_ErrorTrace, None)
4252
4255
  class OpticalMarginAlignment(Enum, Int32):
4253
4256
  None_ = 0
@@ -4306,9 +4309,9 @@ class PropertyPath(ComPtr):
4306
4309
  else:
4307
4310
  raise ValueError('no matched constructor')
4308
4311
  @winrt_factorymethod
4309
- def CreateInstance(cls: win32more.Microsoft.UI.Xaml.IPropertyPathFactory, path: WinRT_String) -> win32more.Microsoft.UI.Xaml.PropertyPath: ...
4312
+ def CreateInstance(cls: win32more.Microsoft.UI.Xaml.IPropertyPathFactory, path: hstr) -> win32more.Microsoft.UI.Xaml.PropertyPath: ...
4310
4313
  @winrt_mixinmethod
4311
- def get_Path(self: win32more.Microsoft.UI.Xaml.IPropertyPath) -> WinRT_String: ...
4314
+ def get_Path(self: win32more.Microsoft.UI.Xaml.IPropertyPath) -> hstr: ...
4312
4315
  Path = property(get_Path, None)
4313
4316
  class _RectHelper_Meta_(ComPtr.__class__):
4314
4317
  pass
@@ -4690,6 +4693,7 @@ class TextWrapping(Enum, Int32):
4690
4693
  Wrap = 2
4691
4694
  WrapWholeWords = 3
4692
4695
  class Thickness(Structure):
4696
+ _name_ = 'Microsoft.UI.Xaml.Thickness'
4693
4697
  Left: Double
4694
4698
  Top: Double
4695
4699
  Right: Double
@@ -4894,9 +4898,9 @@ class UIElement(ComPtr, metaclass=_UIElement_Meta_):
4894
4898
  @winrt_mixinmethod
4895
4899
  def put_AccessKeyScopeOwner(self: win32more.Microsoft.UI.Xaml.IUIElement, value: win32more.Microsoft.UI.Xaml.DependencyObject) -> Void: ...
4896
4900
  @winrt_mixinmethod
4897
- def get_AccessKey(self: win32more.Microsoft.UI.Xaml.IUIElement) -> WinRT_String: ...
4901
+ def get_AccessKey(self: win32more.Microsoft.UI.Xaml.IUIElement) -> hstr: ...
4898
4902
  @winrt_mixinmethod
4899
- def put_AccessKey(self: win32more.Microsoft.UI.Xaml.IUIElement, value: WinRT_String) -> Void: ...
4903
+ def put_AccessKey(self: win32more.Microsoft.UI.Xaml.IUIElement, value: hstr) -> Void: ...
4900
4904
  @winrt_mixinmethod
4901
4905
  def get_KeyTipPlacementMode(self: win32more.Microsoft.UI.Xaml.IUIElement) -> win32more.Microsoft.UI.Xaml.Input.KeyTipPlacementMode: ...
4902
4906
  @winrt_mixinmethod
@@ -5254,9 +5258,9 @@ class UIElement(ComPtr, metaclass=_UIElement_Meta_):
5254
5258
  @winrt_mixinmethod
5255
5259
  def OnBringIntoViewRequested(self: win32more.Microsoft.UI.Xaml.IUIElementOverrides, e: win32more.Microsoft.UI.Xaml.BringIntoViewRequestedEventArgs) -> Void: ...
5256
5260
  @winrt_mixinmethod
5257
- def PopulatePropertyInfoOverride(self: win32more.Microsoft.UI.Xaml.IUIElementOverrides, propertyName: WinRT_String, animationPropertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
5261
+ def PopulatePropertyInfoOverride(self: win32more.Microsoft.UI.Xaml.IUIElementOverrides, propertyName: hstr, animationPropertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
5258
5262
  @winrt_mixinmethod
5259
- def PopulatePropertyInfo(self: win32more.Microsoft.UI.Composition.IAnimationObject, propertyName: WinRT_String, propertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
5263
+ def PopulatePropertyInfo(self: win32more.Microsoft.UI.Composition.IAnimationObject, propertyName: hstr, propertyInfo: win32more.Microsoft.UI.Composition.AnimationPropertyInfo) -> Void: ...
5260
5264
  @winrt_mixinmethod
5261
5265
  def GetVisualInternal(self: win32more.Microsoft.UI.Composition.IVisualElement2) -> win32more.Microsoft.UI.Composition.Visual: ...
5262
5266
  @winrt_classmethod
@@ -5570,46 +5574,46 @@ class UIElement(ComPtr, metaclass=_UIElement_Meta_):
5570
5574
  _UIElement_Meta_.XYFocusRightProperty = property(get_XYFocusRightProperty, None)
5571
5575
  _UIElement_Meta_.XYFocusUpNavigationStrategyProperty = property(get_XYFocusUpNavigationStrategyProperty, None)
5572
5576
  _UIElement_Meta_.XYFocusUpProperty = property(get_XYFocusUpProperty, None)
5573
- KeyUp = event()
5574
- KeyDown = event()
5575
- GotFocus = event()
5576
- LostFocus = event()
5577
- DragStarting = event()
5578
- DropCompleted = event()
5579
- CharacterReceived = event()
5580
- DragEnter = event()
5581
- DragLeave = event()
5582
- DragOver = event()
5583
- Drop = event()
5584
- PointerPressed = event()
5585
- PointerMoved = event()
5586
- PointerReleased = event()
5587
- PointerEntered = event()
5588
- PointerExited = event()
5589
- PointerCaptureLost = event()
5590
- PointerCanceled = event()
5591
- PointerWheelChanged = event()
5592
- Tapped = event()
5593
- DoubleTapped = event()
5594
- Holding = event()
5595
- ContextRequested = event()
5596
- ContextCanceled = event()
5597
- RightTapped = event()
5598
- ManipulationStarting = event()
5599
- ManipulationInertiaStarting = event()
5600
- ManipulationStarted = event()
5601
- ManipulationDelta = event()
5602
- ManipulationCompleted = event()
5603
- AccessKeyDisplayRequested = event()
5604
- AccessKeyDisplayDismissed = event()
5605
- AccessKeyInvoked = event()
5606
- ProcessKeyboardAccelerators = event()
5607
- GettingFocus = event()
5608
- LosingFocus = event()
5609
- NoFocusCandidateFound = event()
5610
- PreviewKeyDown = event()
5611
- PreviewKeyUp = event()
5612
- BringIntoViewRequested = event()
5577
+ AccessKeyDisplayDismissed = event(add_AccessKeyDisplayDismissed, remove_AccessKeyDisplayDismissed)
5578
+ AccessKeyDisplayRequested = event(add_AccessKeyDisplayRequested, remove_AccessKeyDisplayRequested)
5579
+ AccessKeyInvoked = event(add_AccessKeyInvoked, remove_AccessKeyInvoked)
5580
+ BringIntoViewRequested = event(add_BringIntoViewRequested, remove_BringIntoViewRequested)
5581
+ CharacterReceived = event(add_CharacterReceived, remove_CharacterReceived)
5582
+ ContextCanceled = event(add_ContextCanceled, remove_ContextCanceled)
5583
+ ContextRequested = event(add_ContextRequested, remove_ContextRequested)
5584
+ DoubleTapped = event(add_DoubleTapped, remove_DoubleTapped)
5585
+ DragEnter = event(add_DragEnter, remove_DragEnter)
5586
+ DragLeave = event(add_DragLeave, remove_DragLeave)
5587
+ DragOver = event(add_DragOver, remove_DragOver)
5588
+ DragStarting = event(add_DragStarting, remove_DragStarting)
5589
+ Drop = event(add_Drop, remove_Drop)
5590
+ DropCompleted = event(add_DropCompleted, remove_DropCompleted)
5591
+ GettingFocus = event(add_GettingFocus, remove_GettingFocus)
5592
+ GotFocus = event(add_GotFocus, remove_GotFocus)
5593
+ Holding = event(add_Holding, remove_Holding)
5594
+ KeyDown = event(add_KeyDown, remove_KeyDown)
5595
+ KeyUp = event(add_KeyUp, remove_KeyUp)
5596
+ LosingFocus = event(add_LosingFocus, remove_LosingFocus)
5597
+ LostFocus = event(add_LostFocus, remove_LostFocus)
5598
+ ManipulationCompleted = event(add_ManipulationCompleted, remove_ManipulationCompleted)
5599
+ ManipulationDelta = event(add_ManipulationDelta, remove_ManipulationDelta)
5600
+ ManipulationInertiaStarting = event(add_ManipulationInertiaStarting, remove_ManipulationInertiaStarting)
5601
+ ManipulationStarted = event(add_ManipulationStarted, remove_ManipulationStarted)
5602
+ ManipulationStarting = event(add_ManipulationStarting, remove_ManipulationStarting)
5603
+ NoFocusCandidateFound = event(add_NoFocusCandidateFound, remove_NoFocusCandidateFound)
5604
+ PointerCanceled = event(add_PointerCanceled, remove_PointerCanceled)
5605
+ PointerCaptureLost = event(add_PointerCaptureLost, remove_PointerCaptureLost)
5606
+ PointerEntered = event(add_PointerEntered, remove_PointerEntered)
5607
+ PointerExited = event(add_PointerExited, remove_PointerExited)
5608
+ PointerMoved = event(add_PointerMoved, remove_PointerMoved)
5609
+ PointerPressed = event(add_PointerPressed, remove_PointerPressed)
5610
+ PointerReleased = event(add_PointerReleased, remove_PointerReleased)
5611
+ PointerWheelChanged = event(add_PointerWheelChanged, remove_PointerWheelChanged)
5612
+ PreviewKeyDown = event(add_PreviewKeyDown, remove_PreviewKeyDown)
5613
+ PreviewKeyUp = event(add_PreviewKeyUp, remove_PreviewKeyUp)
5614
+ ProcessKeyboardAccelerators = event(add_ProcessKeyboardAccelerators, remove_ProcessKeyboardAccelerators)
5615
+ RightTapped = event(add_RightTapped, remove_RightTapped)
5616
+ Tapped = event(add_Tapped, remove_Tapped)
5613
5617
  class UIElementWeakCollection(ComPtr):
5614
5618
  extends: IInspectable
5615
5619
  implements: Tuple[SequenceProtocol[win32more.Microsoft.UI.Xaml.UIElement]]
@@ -5658,7 +5662,7 @@ class UnhandledExceptionEventArgs(ComPtr):
5658
5662
  @winrt_mixinmethod
5659
5663
  def get_Exception(self: win32more.Microsoft.UI.Xaml.IUnhandledExceptionEventArgs) -> win32more.Windows.Foundation.HResult: ...
5660
5664
  @winrt_mixinmethod
5661
- def get_Message(self: win32more.Microsoft.UI.Xaml.IUnhandledExceptionEventArgs) -> WinRT_String: ...
5665
+ def get_Message(self: win32more.Microsoft.UI.Xaml.IUnhandledExceptionEventArgs) -> hstr: ...
5662
5666
  @winrt_mixinmethod
5663
5667
  def get_Handled(self: win32more.Microsoft.UI.Xaml.IUnhandledExceptionEventArgs) -> Boolean: ...
5664
5668
  @winrt_mixinmethod
@@ -5720,7 +5724,7 @@ class VisualState(ComPtr):
5720
5724
  @winrt_activatemethod
5721
5725
  def CreateInstance(cls) -> win32more.Microsoft.UI.Xaml.VisualState: ...
5722
5726
  @winrt_mixinmethod
5723
- def get_Name(self: win32more.Microsoft.UI.Xaml.IVisualState) -> WinRT_String: ...
5727
+ def get_Name(self: win32more.Microsoft.UI.Xaml.IVisualState) -> hstr: ...
5724
5728
  @winrt_mixinmethod
5725
5729
  def get_Storyboard(self: win32more.Microsoft.UI.Xaml.IVisualState) -> win32more.Microsoft.UI.Xaml.Media.Animation.Storyboard: ...
5726
5730
  @winrt_mixinmethod
@@ -5780,7 +5784,7 @@ class VisualStateGroup(ComPtr):
5780
5784
  @winrt_activatemethod
5781
5785
  def CreateInstance(cls) -> win32more.Microsoft.UI.Xaml.VisualStateGroup: ...
5782
5786
  @winrt_mixinmethod
5783
- def get_Name(self: win32more.Microsoft.UI.Xaml.IVisualStateGroup) -> WinRT_String: ...
5787
+ def get_Name(self: win32more.Microsoft.UI.Xaml.IVisualStateGroup) -> hstr: ...
5784
5788
  @winrt_mixinmethod
5785
5789
  def get_Transitions(self: win32more.Microsoft.UI.Xaml.IVisualStateGroup) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.UI.Xaml.VisualTransition]: ...
5786
5790
  @winrt_mixinmethod
@@ -5799,8 +5803,8 @@ class VisualStateGroup(ComPtr):
5799
5803
  Name = property(get_Name, None)
5800
5804
  States = property(get_States, None)
5801
5805
  Transitions = property(get_Transitions, None)
5802
- CurrentStateChanged = event()
5803
- CurrentStateChanging = event()
5806
+ CurrentStateChanged = event(add_CurrentStateChanged, remove_CurrentStateChanged)
5807
+ CurrentStateChanging = event(add_CurrentStateChanging, remove_CurrentStateChanging)
5804
5808
  class _VisualStateManager_Meta_(ComPtr.__class__):
5805
5809
  pass
5806
5810
  class VisualStateManager(ComPtr, metaclass=_VisualStateManager_Meta_):
@@ -5821,7 +5825,7 @@ class VisualStateManager(ComPtr, metaclass=_VisualStateManager_Meta_):
5821
5825
  @winrt_mixinmethod
5822
5826
  def RaiseCurrentStateChanged(self: win32more.Microsoft.UI.Xaml.IVisualStateManagerProtected, stateGroup: win32more.Microsoft.UI.Xaml.VisualStateGroup, oldState: win32more.Microsoft.UI.Xaml.VisualState, newState: win32more.Microsoft.UI.Xaml.VisualState, control: win32more.Microsoft.UI.Xaml.Controls.Control) -> Void: ...
5823
5827
  @winrt_mixinmethod
5824
- def GoToStateCore(self: win32more.Microsoft.UI.Xaml.IVisualStateManagerOverrides, control: win32more.Microsoft.UI.Xaml.Controls.Control, templateRoot: win32more.Microsoft.UI.Xaml.FrameworkElement, stateName: WinRT_String, group: win32more.Microsoft.UI.Xaml.VisualStateGroup, state: win32more.Microsoft.UI.Xaml.VisualState, useTransitions: Boolean) -> Boolean: ...
5828
+ def GoToStateCore(self: win32more.Microsoft.UI.Xaml.IVisualStateManagerOverrides, control: win32more.Microsoft.UI.Xaml.Controls.Control, templateRoot: win32more.Microsoft.UI.Xaml.FrameworkElement, stateName: hstr, group: win32more.Microsoft.UI.Xaml.VisualStateGroup, state: win32more.Microsoft.UI.Xaml.VisualState, useTransitions: Boolean) -> Boolean: ...
5825
5829
  @winrt_classmethod
5826
5830
  def GetVisualStateGroups(cls: win32more.Microsoft.UI.Xaml.IVisualStateManagerStatics, obj: win32more.Microsoft.UI.Xaml.FrameworkElement) -> win32more.Windows.Foundation.Collections.IVector[win32more.Microsoft.UI.Xaml.VisualStateGroup]: ...
5827
5831
  @winrt_classmethod
@@ -5831,7 +5835,7 @@ class VisualStateManager(ComPtr, metaclass=_VisualStateManager_Meta_):
5831
5835
  @winrt_classmethod
5832
5836
  def SetCustomVisualStateManager(cls: win32more.Microsoft.UI.Xaml.IVisualStateManagerStatics, obj: win32more.Microsoft.UI.Xaml.FrameworkElement, value: win32more.Microsoft.UI.Xaml.VisualStateManager) -> Void: ...
5833
5837
  @winrt_classmethod
5834
- def GoToState(cls: win32more.Microsoft.UI.Xaml.IVisualStateManagerStatics, control: win32more.Microsoft.UI.Xaml.Controls.Control, stateName: WinRT_String, useTransitions: Boolean) -> Boolean: ...
5838
+ def GoToState(cls: win32more.Microsoft.UI.Xaml.IVisualStateManagerStatics, control: win32more.Microsoft.UI.Xaml.Controls.Control, stateName: hstr, useTransitions: Boolean) -> Boolean: ...
5835
5839
  _VisualStateManager_Meta_.CustomVisualStateManagerProperty = property(get_CustomVisualStateManagerProperty, None)
5836
5840
  class VisualTransition(ComPtr):
5837
5841
  extends: win32more.Microsoft.UI.Xaml.DependencyObject
@@ -5855,13 +5859,13 @@ class VisualTransition(ComPtr):
5855
5859
  @winrt_mixinmethod
5856
5860
  def put_GeneratedEasingFunction(self: win32more.Microsoft.UI.Xaml.IVisualTransition, value: win32more.Microsoft.UI.Xaml.Media.Animation.EasingFunctionBase) -> Void: ...
5857
5861
  @winrt_mixinmethod
5858
- def get_To(self: win32more.Microsoft.UI.Xaml.IVisualTransition) -> WinRT_String: ...
5862
+ def get_To(self: win32more.Microsoft.UI.Xaml.IVisualTransition) -> hstr: ...
5859
5863
  @winrt_mixinmethod
5860
- def put_To(self: win32more.Microsoft.UI.Xaml.IVisualTransition, value: WinRT_String) -> Void: ...
5864
+ def put_To(self: win32more.Microsoft.UI.Xaml.IVisualTransition, value: hstr) -> Void: ...
5861
5865
  @winrt_mixinmethod
5862
- def get_From(self: win32more.Microsoft.UI.Xaml.IVisualTransition) -> WinRT_String: ...
5866
+ def get_From(self: win32more.Microsoft.UI.Xaml.IVisualTransition) -> hstr: ...
5863
5867
  @winrt_mixinmethod
5864
- def put_From(self: win32more.Microsoft.UI.Xaml.IVisualTransition, value: WinRT_String) -> Void: ...
5868
+ def put_From(self: win32more.Microsoft.UI.Xaml.IVisualTransition, value: hstr) -> Void: ...
5865
5869
  @winrt_mixinmethod
5866
5870
  def get_Storyboard(self: win32more.Microsoft.UI.Xaml.IVisualTransition) -> win32more.Microsoft.UI.Xaml.Media.Animation.Storyboard: ...
5867
5871
  @winrt_mixinmethod
@@ -5904,9 +5908,9 @@ class Window(ComPtr, metaclass=_Window_Meta_):
5904
5908
  @winrt_mixinmethod
5905
5909
  def get_DispatcherQueue(self: win32more.Microsoft.UI.Xaml.IWindow) -> win32more.Microsoft.UI.Dispatching.DispatcherQueue: ...
5906
5910
  @winrt_mixinmethod
5907
- def get_Title(self: win32more.Microsoft.UI.Xaml.IWindow) -> WinRT_String: ...
5911
+ def get_Title(self: win32more.Microsoft.UI.Xaml.IWindow) -> hstr: ...
5908
5912
  @winrt_mixinmethod
5909
- def put_Title(self: win32more.Microsoft.UI.Xaml.IWindow, value: WinRT_String) -> Void: ...
5913
+ def put_Title(self: win32more.Microsoft.UI.Xaml.IWindow, value: hstr) -> Void: ...
5910
5914
  @winrt_mixinmethod
5911
5915
  def get_ExtendsContentIntoTitleBar(self: win32more.Microsoft.UI.Xaml.IWindow) -> Boolean: ...
5912
5916
  @winrt_mixinmethod
@@ -5953,10 +5957,10 @@ class Window(ComPtr, metaclass=_Window_Meta_):
5953
5957
  Title = property(get_Title, put_Title)
5954
5958
  Visible = property(get_Visible, None)
5955
5959
  _Window_Meta_.Current = property(get_Current, None)
5956
- Activated = event()
5957
- Closed = event()
5958
- SizeChanged = event()
5959
- VisibilityChanged = event()
5960
+ Activated = event(add_Activated, remove_Activated)
5961
+ Closed = event(add_Closed, remove_Closed)
5962
+ SizeChanged = event(add_SizeChanged, remove_SizeChanged)
5963
+ VisibilityChanged = event(add_VisibilityChanged, remove_VisibilityChanged)
5960
5964
  class WindowActivatedEventArgs(ComPtr):
5961
5965
  extends: IInspectable
5962
5966
  default_interface: win32more.Microsoft.UI.Xaml.IWindowActivatedEventArgs
@@ -6041,7 +6045,7 @@ class XamlResourceReferenceFailedEventArgs(ComPtr):
6041
6045
  default_interface: win32more.Microsoft.UI.Xaml.IXamlResourceReferenceFailedEventArgs
6042
6046
  _classid_ = 'Microsoft.UI.Xaml.XamlResourceReferenceFailedEventArgs'
6043
6047
  @winrt_mixinmethod
6044
- def get_Message(self: win32more.Microsoft.UI.Xaml.IXamlResourceReferenceFailedEventArgs) -> WinRT_String: ...
6048
+ def get_Message(self: win32more.Microsoft.UI.Xaml.IXamlResourceReferenceFailedEventArgs) -> hstr: ...
6045
6049
  Message = property(get_Message, None)
6046
6050
  class XamlRoot(ComPtr):
6047
6051
  extends: IInspectable
@@ -6072,7 +6076,7 @@ class XamlRoot(ComPtr):
6072
6076
  IsHostVisible = property(get_IsHostVisible, None)
6073
6077
  RasterizationScale = property(get_RasterizationScale, None)
6074
6078
  Size = property(get_Size, None)
6075
- Changed = event()
6079
+ Changed = event(add_Changed, remove_Changed)
6076
6080
  class XamlRootChangedEventArgs(ComPtr):
6077
6081
  extends: IInspectable
6078
6082
  default_interface: win32more.Microsoft.UI.Xaml.IXamlRootChangedEventArgs