diff --git a/.github/docs/maui-ci-facts.md b/.github/docs/maui-ci-facts.md index 6b3c0531d8d0..d9681c607d60 100644 --- a/.github/docs/maui-ci-facts.md +++ b/.github/docs/maui-ci-facts.md @@ -388,12 +388,17 @@ error XAGRDL0000: Could not GET '...pkgs.dev.azure.com/.../maven/v1/...' | `error IL####` / `ILC####` / NativeAOT publish fail | `maui-pr` AOT legs, `Run Integration Tests – AOT` | **NativeAOT / ILC** trim-analysis break. May be pre-existing (e.g. HybridWebView `IL2026`) — confirm with a job- AND test-level baseline diff before attributing to the PR. | | `error NETSDK1144` | `maui-pr` TrimFull legs | Optimizing assemblies for size failed (often an ILLink warning promoted to error). Check whether the same leg is red on the base branch. | | `XamlC` | `maui-pr` | XAML compiler — usually missing type or bad binding | +| `WMC0612` / XBF `0x09C4` / `Property Not Found` after adding native Windows `x:DataType` | `maui-pr` Windows build/pack | The native XBF generator rejects the new annotations on these classic `{Binding}` templates. Remove the incompatible annotations without replacing the bindings or converters. XML/Pester metadata checks do not validate XBF compilation; require an actual Windows build. | +| `WMC9999` cannot determine the item type of `TableSectionBase` | `maui-pr` Windows build/pack | Adding native WinUI `[Bindable]` to `TableRoot` or `TableSection` makes the XAML compiler inspect their overloaded `Add` methods as a collection contract. Remove those new annotations rather than changing the cross-platform collection API to satisfy native metadata generation. | +| `WMC0821` / `[Bindable]` on generic type is not supported | `maui-pr` Windows build/pack | WinUI cannot generate bindable metadata for an open generic such as `AsyncValue`. Remove the incompatible native attribute; preserve the generic API and its existing `INotifyPropertyChanged` implementation. | +| Syntax errors in generated `XamlTypeInfo.g.cs` after adding native `[Bindable]` metadata | `maui-pr` Windows build/pack | Restore the last Windows-validated metadata baseline rather than editing generated code or changing public APIs speculatively. Native XAML compiler execution is required before reintroducing the metadata; XML/source-only checks are insufficient. | | `error XAGRDL0000` / `401` / `No local versions` | `maui-pr` or official build | Gradle/Maven feed issue — see above | | Apple workload install cannot find a `net10.0` SDK pack | `maui-pr` SDK provisioning | The .NET 11 Apple manifests also install .NET 10 compatibility packs. Resolve the exact missing version's feed with `darc get-asset`; the current .NET 11 feed alone may not contain it. Do not copy another branch's compatibility feed without checking its manifest versions. | +| Previous-.NET template restore requests unpublished .NET 10.0.15 reference/linker packs | `maui-pr` integration tests | The new SDK's known-framework defaults are independent of the pinned Mono manifests. The test-only `TemplateTestExtraTargets.targets` aligns .NET 10 runtime/tool packs with the public 10.0.12 manifest baseline, without changing current .NET 11 defaults or Apple platform-pack versions. | | `NETSDK1140` rejects the Apple target platform version | `maui-pr` build/pack | Align current Apple target-framework versions and SDK defaults in `Directory.Build.props` with the selected Apple SDK. net11.0 uses 26.5; the RC2 release branch uses 27.0. Preserve previous-.NET compatibility targets. | | Xcode 27 rejects native iOS 12.x / mapped macOS 10.15 deployment targets | `maui-pr` native interop archive | On branches using Apple 27, align the native framework and managed iOS minimum to 15.0, already used by app templates. This maps to macOS 12.0 for Mac Catalyst. Do not raise minimums on Apple 26.5 branches solely to match RC2. | | Apple `bgen.dll` exits 150 requesting a newer .NET runtime | `maui-pr` Apple binding generation | Keep bootstrap (`global.json`), workload provisioning (`MicrosoftNETSdkPackageVersion`), and SDK provenance pins aligned with a compatible host runtime. SDK `11.0.100-rc.2.26470.103` satisfies the Apple 27 generator's `26465.108` requirement and is already selected on net11.0. | -| Resizetizer raster test assertions pass but `Dispose` fails with a Windows sharing violation | Helix Windows unit tests | Keep temporary images under `BaseTest.DestinationDirectory` and reuse its bounded, logged cleanup retries from #38124. Dispose raster tools deterministically; preserve all image assertions and let exhausted cleanup retries fail the test. | +| Resizetizer image test assertions pass but `Dispose` fails with a Windows sharing violation | Helix Windows unit tests | Keep raster and SVG outputs under `BaseTest.DestinationDirectory` and reuse its bounded, logged cleanup retries from #38124. Dispose native resources deterministically; preserve all image assertions and let exhausted cleanup retries fail the test. | | `Svg.Animation` / `Svg.SceneGraph` `NU1603`, or `SKPathBuilder` `CS0246` | `maui-pr` restore/build | Release merges can preserve old `eng/Versions.props` pins while importing Skia 4 source and packaging changes. Restore the coordinated SkiaSharp/HarfBuzz/SVG dependency versions, not just the first missing package. | | Required Xcode is missing / requested iOS runtime is unavailable | `maui-pr` macOS provisioning | Select an image or agents providing the branch's required Xcode. net11.0 retains Aces with Xcode 26.5; RC2 needs the MAUI pool's Xcode 27 RC agents. Do not fall back to an unrelated Xcode or purge runtimes to repair a version mismatch. The legacy Provisionator task is unavailable in `dnceng-public`; enabling it prevents pipeline startup. | | `iOS 27.0 (universal) is not available for download` | `maui-pr` simulator provisioning | Request the `arm64` runtime on Apple Silicon agents; retain `universal` on Intel. Keep all downloads version-pinned. An unavailable download can also return exit code 70, so do not treat every exit 70 as a wedged CoreSimulator or delete installed runtimes. | diff --git a/NuGet.config b/NuGet.config index 1a7be3d9e76e..065e13052a80 100644 --- a/NuGet.config +++ b/NuGet.config @@ -6,7 +6,7 @@ - + @@ -14,7 +14,7 @@ - + diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 1ed832249c53..71d7e89a3bed 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -1,16 +1,16 @@ - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/android - d73c903c550512212332fa7818b4612e7419e786 + 707d5dca3f01c5857d14f67c8503f3764b78de5f @@ -55,55 +55,55 @@ https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/templating @@ -111,51 +111,51 @@ https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe https://github.com/dotnet/xharness @@ -175,41 +175,41 @@ - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe - + https://github.com/dotnet/dotnet - a586537b3872e4e2f69c0b1ce7017a97bc3bcd55 + b1e7b26ec410057169a40fcf46911122ec0d0bbe diff --git a/eng/Versions.props b/eng/Versions.props index d6b322a8bd3f..68aa69502fd6 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -31,7 +31,7 @@ 10.0.110 - 11.0.100-rtm.26514.118 + 11.0.100-rtm.26522.109 $(MicrosoftNETSdkPackageVersion) 11.0.0 @@ -63,7 +63,7 @@ 1.0.0-rc2 1.0.0-preview.260225.1 - 37.2.15 + 37.2.21 36.1.118 $(MicrosoftNetSdkAndroidManifest100100PackageVersion) @@ -146,14 +146,14 @@ 1.3.0 4.3.1 9.0.0 - 11.0.0-beta.26514.118 - 11.0.0-beta.26514.118 - 11.0.0-beta.26514.118 - 11.0.0-beta.26514.118 - 11.0.0-beta.26514.118 + 11.0.0-beta.26522.109 + 11.0.0-beta.26522.109 + 11.0.0-beta.26522.109 + 11.0.0-beta.26522.109 + 11.0.0-beta.26522.109 1.1.87-gba258badda - 11.0.0-beta.26514.118 - 11.0.0-beta.26514.118 + 11.0.0-beta.26522.109 + 11.0.0-beta.26522.109 6.0.3-dotnet.4 diff --git a/eng/pipelines/arcade/windows-xaml-trimming.Tests.ps1 b/eng/pipelines/arcade/windows-xaml-trimming.Tests.ps1 index 650b53bf3bc0..762aff8cfb4f 100644 --- a/eng/pipelines/arcade/windows-xaml-trimming.Tests.ps1 +++ b/eng/pipelines/arcade/windows-xaml-trimming.Tests.ps1 @@ -1,6 +1,6 @@ #Requires -Modules Pester -Describe 'Windows XAML trimming metadata' { +Describe 'Windows XAML binding behavior' { BeforeAll { $repoRoot = (Resolve-Path (Join-Path $PSScriptRoot '../../..')).Path @@ -28,98 +28,9 @@ Describe 'Windows XAML trimming metadata' { } } - It 'declares exact data source types for keyed DataTemplates' { - $expectations = @( - @{ - Path = 'src/Core/src/Platform/Windows/Styles/MauiComboBoxStyle.xaml' - Templates = @{ ComboBoxHeader = 'maui:IPicker' } - }, - @{ - Path = 'src/Core/src/Platform/Windows/Styles/WindowRootViewStyle.xaml' - Templates = @{ - MauiAppTitleBarTemplateDefault = 'maui:WindowRootView' - MauiAppTitleBarContainerTemplateDefault = 'maui:WindowRootView' - } - }, - @{ - Path = 'src/Controls/src/Core/Platform/Windows/CollectionView/ItemsViewStyles.xaml' - Templates = @{ - ItemsViewDefaultTemplate = 'local:ItemTemplateContext' - GroupHeaderTemplate = 'local:GroupTemplateContext' - CarouselItemsViewDefaultTemplate = 'local:ItemTemplateContext' - } - }, - @{ - Path = 'src/Controls/src/Core/Platform/Windows/Styles/ShellStyles.xaml' - Templates = @{ - ShellFlyoutBaseShellItemTemplate = 'core:NavigationViewItemViewModel' - ShellFlyoutMenuItemTemplate = 'core:NavigationViewItemViewModel' - SearchHandlerItemTemplate = 'platform:ItemTemplateContext' - } - }, - @{ - Path = 'src/Controls/src/Core/Platform/Windows/TabbedPage/TabbedPageStyle.xaml' - Templates = @{ TabBarNavigationViewMenuItem = 'core:NavigationViewItemViewModel' } - }, - @{ - Path = 'src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/ListViewStyles.xaml' - Templates = @{ - TextCell = 'controls:TextCell' - ListViewHeaderTextCell = 'controls:TextCell' - ImageCell = 'controls:ImageCell' - SwitchCell = 'controls:SwitchCell' - EntryCell = 'controls:EntryCell' - } - }, - @{ - Path = 'src/Controls/src/Core/Compatibility/Handlers/TableView/Windows/TableViewStyles.xaml' - Templates = @{ - TableRoot = 'controls:TableRoot' - TableSection = 'controls:TableSection' - } - }, - @{ - Path = 'src/Compatibility/Core/src/Windows/ListViewStyles.xaml' - Templates = @{ - CompatibilityTextCell = 'controls:TextCell' - CompatibilityListViewHeaderTextCell = 'controls:TextCell' - CompatibilityImageCell = 'controls:ImageCell' - CompatibilitySwitchCell = 'controls:SwitchCell' - CompatibilityEntryCell = 'controls:EntryCell' - } - }, - @{ - Path = 'src/Compatibility/Core/src/Windows/PickerStyle.xaml' - Templates = @{ ComboBoxHeader = 'controls:Picker' } - }, - @{ - Path = 'src/Compatibility/Core/src/Windows/Resources.xaml' - Templates = @{ - CompatibilityTextCell = 'controls:TextCell' - CompatibilityListViewHeaderTextCell = 'controls:TextCell' - CompatibilityImageCell = 'controls:ImageCell' - CompatibilitySwitchCell = 'controls:SwitchCell' - CompatibilityEntryCell = 'controls:EntryCell' - } - } - ) - - foreach ($expectation in $expectations) { - $document = Get-XamlDocument $expectation.Path - - foreach ($templateKey in $expectation.Templates.Keys) { - $template = Get-XamlDataTemplate $document $templateKey - - $template | Should -Not -BeNullOrEmpty -Because "$($expectation.Path) should define DataTemplate '$templateKey'" - Get-XamlAttributeValue $template 'DataType' | Should -Be $expectation.Templates[$templateKey] -Because "$($expectation.Path) '$templateKey' should declare the trimmed binding source type" - } - } - } - - It 'keeps PageControl title as a typed XAML binding rather than code-behind reimplementation' { + It 'keeps PageControl title as a XAML binding rather than code-behind reimplementation' { foreach ($path in @( - 'src/Controls/src/Core/Platform/Windows/Styles/MauiControlsPageControlStyle.xaml', - 'src/Compatibility/Core/src/Windows/PageControlStyle.xaml' + 'src/Controls/src/Core/Platform/Windows/Styles/MauiControlsPageControlStyle.xaml' )) { $document = Get-XamlDocument $path $titleTextBlock = Get-XamlElements $document 'TextBlock' | @@ -127,7 +38,6 @@ Describe 'Windows XAML trimming metadata' { Select-Object -First 1 $titleTextBlock | Should -Not -BeNullOrEmpty -Because "$path should retain the original title binding" - Get-XamlAttributeValue $titleTextBlock 'DataType' | Should -Be 'controls:Page' Get-XamlAttributeValue $titleTextBlock 'Name' | Should -BeNullOrEmpty } } @@ -145,18 +55,6 @@ Describe 'Windows XAML trimming metadata' { Template = 'ImageCell' TextVisibility = '{Binding Text, Converter={StaticResource CollapseWhenEmpty}}' DetailVisibility = '{Binding Detail, Converter={StaticResource CollapseWhenEmpty}}' - }, - @{ - Path = 'src/Compatibility/Core/src/Windows/ListViewStyles.xaml' - Template = 'CompatibilityTextCell' - TextVisibility = '{Binding Text, Converter={StaticResource CollapseWhenEmpty}}' - DetailVisibility = '{Binding Detail, Converter={StaticResource CollapseWhenEmpty}}' - }, - @{ - Path = 'src/Compatibility/Core/src/Windows/Resources.xaml' - Template = 'CompatibilityTextCell' - TextVisibility = '{Binding Text, Converter={StaticResource CollapseWhenEmpty}}' - DetailVisibility = '{Binding Detail, Converter={StaticResource CollapseWhenEmpty}}' } ) @@ -185,22 +83,5 @@ Describe 'Windows XAML trimming metadata' { $slider = Get-XamlDocument 'src/Core/src/Platform/Windows/Styles/MauiSliderStyle.xaml' $sliderImage = Get-XamlElements $slider 'Image' | Where-Object { (Get-XamlAttributeValue $_ 'Name') -eq 'ThumbImage' } | Select-Object -First 1 Get-XamlAttributeValue $sliderImage 'Source' | Should -Be '{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}' - - $legacySlider = Get-XamlDocument 'src/Compatibility/Core/src/Windows/SliderStyle.xaml' - $legacySliderImage = Get-XamlElements $legacySlider 'Image' | Where-Object { (Get-XamlAttributeValue $_ 'Name') -eq 'ThumbImage' } | Select-Object -First 1 - $legacyThumb = Get-XamlElements $legacySlider 'Thumb' | - Where-Object { (Get-XamlAttributeValue $_ 'Name') -eq 'HorizontalImageThumb' } | - Select-Object -First 1 - Get-XamlAttributeValue $legacySliderImage 'Source' | Should -Be '{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}' - Get-XamlAttributeValue $legacyThumb 'Tag' | Should -Be '{Binding ThumbImageSource, RelativeSource={RelativeSource TemplatedParent}}' - - $checkBox = Get-XamlDocument 'src/Compatibility/Core/src/Windows/FormsCheckBoxStyle.xaml' - $controlTemplate = Get-XamlElements $checkBox 'ControlTemplate' | Select-Object -First 1 - Get-XamlAttributeValue $controlTemplate 'TargetType' | Should -Be 'CheckBox' - - $normalRectangle = Get-XamlElements $checkBox 'Rectangle' | - Where-Object { (Get-XamlAttributeValue $_ 'Name') -eq 'NormalRectangle' } | - Select-Object -First 1 - Get-XamlAttributeValue $normalRectangle 'Stroke' | Should -Be '{Binding TintBrush, RelativeSource={RelativeSource TemplatedParent}}' } } diff --git a/global.json b/global.json index b1beb66a44f9..9e6ebde1e785 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "tools": { - "dotnet": "11.0.100-rtm.26514.118" + "dotnet": "11.0.100-rtm.26522.109" }, "sdk": { "paths": [ @@ -11,7 +11,7 @@ "msbuild-sdks": { "MSBuild.Sdk.Extras": "3.0.44", "Microsoft.Build.NoTargets": "3.7.0", - "Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26514.118", - "Microsoft.DotNet.Helix.Sdk": "11.0.0-beta.26514.118" + "Microsoft.DotNet.Arcade.Sdk": "11.0.0-beta.26522.109", + "Microsoft.DotNet.Helix.Sdk": "11.0.0-beta.26522.109" } } diff --git a/src/Controls/src/Core/Cells/EntryCell.cs b/src/Controls/src/Core/Cells/EntryCell.cs index 3e530ea0f569..b4dce4f6b633 100644 --- a/src/Controls/src/Core/Cells/EntryCell.cs +++ b/src/Controls/src/Core/Cells/EntryCell.cs @@ -7,9 +7,6 @@ namespace Microsoft.Maui.Controls { /// A with a label and a single line text entry field. [Obsolete("The controls which use EntryCell (ListView and TableView) are obsolete. Please use CollectionView instead.")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public class EntryCell : Cell, ITextAlignmentElement, IEntryCellController, ITextAlignment { /// Bindable property for . diff --git a/src/Controls/src/Core/Cells/ImageCell.cs b/src/Controls/src/Core/Cells/ImageCell.cs index f3bdf6a70354..5ea33149ae3c 100644 --- a/src/Controls/src/Core/Cells/ImageCell.cs +++ b/src/Controls/src/Core/Cells/ImageCell.cs @@ -5,9 +5,6 @@ namespace Microsoft.Maui.Controls { /// A that has an image. [Obsolete("The controls which use ImageCell (ListView and TableView) are obsolete. Please use CollectionView instead.")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public class ImageCell : TextCell { /// Bindable property for . diff --git a/src/Controls/src/Core/Cells/SwitchCell.cs b/src/Controls/src/Core/Cells/SwitchCell.cs index 44d9fb40c079..14fe18f11e74 100644 --- a/src/Controls/src/Core/Cells/SwitchCell.cs +++ b/src/Controls/src/Core/Cells/SwitchCell.cs @@ -7,9 +7,6 @@ namespace Microsoft.Maui.Controls { /// A with a label and an on/off switch. [Obsolete("The controls which use SwitchCell (ListView and TableView) are obsolete. Please use CollectionView instead.")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public class SwitchCell : Cell { /// Bindable property for . diff --git a/src/Controls/src/Core/Cells/TextCell.cs b/src/Controls/src/Core/Cells/TextCell.cs index f31009bf7b54..0b22d618a9f1 100644 --- a/src/Controls/src/Core/Cells/TextCell.cs +++ b/src/Controls/src/Core/Cells/TextCell.cs @@ -8,9 +8,6 @@ namespace Microsoft.Maui.Controls { /// A with primary and text. [Obsolete("The controls which use TextCell (ListView and TableView) are obsolete. Please use CollectionView instead.")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public class TextCell : Cell, ICommandElement { /// Bindable property for . diff --git a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/CellControl.cs b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/CellControl.cs index dbedfac81e60..9a73a1ef370e 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/CellControl.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/CellControl.cs @@ -21,7 +21,6 @@ namespace Microsoft.Maui.Controls.Platform.Compatibility { - [Microsoft.UI.Xaml.Data.Bindable] public partial class CellControl : ContentControl { public static readonly DependencyProperty CellProperty = DependencyProperty.Register("Cell", typeof(object), typeof(CellControl), diff --git a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/EntryCellTextBox.cs b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/EntryCellTextBox.cs index 0e5a11759bc6..6f421532aec4 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/EntryCellTextBox.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/EntryCellTextBox.cs @@ -5,7 +5,6 @@ namespace Microsoft.Maui.Controls.Platform.Compatibility { - [Microsoft.UI.Xaml.Data.Bindable] public partial class EntryCellTextBox : TextBox { protected override void OnKeyUp(KeyRoutedEventArgs e) diff --git a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/ListViewStyles.xaml b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/ListViewStyles.xaml index d011cf0bb1d8..1f57efbe5a89 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/ListViewStyles.xaml +++ b/src/Controls/src/Core/Compatibility/Handlers/ListView/Windows/ListViewStyles.xaml @@ -7,7 +7,6 @@ xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)" xmlns:contract7NotPresent="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractNotPresent(Windows.Foundation.UniversalApiContract,7)" xmlns:primitiveContract7Present="using:Microsoft.UI.Xaml.Controls.Primitives?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)" - xmlns:controls="using:Microsoft.Maui.Controls" xmlns:maui="using:Microsoft.Maui.Controls.Platform" xmlns:platform="using:Microsoft.Maui.Controls.Platform.Compatibility"> @@ -59,7 +58,7 @@ - + - + - + @@ -125,7 +124,7 @@ - + @@ -138,10 +137,10 @@ - + - + diff --git a/src/Controls/src/Core/Compatibility/Handlers/TableView/Windows/TableViewStyles.xaml b/src/Controls/src/Core/Compatibility/Handlers/TableView/Windows/TableViewStyles.xaml index 28efe1d7210f..28f289f67e2e 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/TableView/Windows/TableViewStyles.xaml +++ b/src/Controls/src/Core/Compatibility/Handlers/TableView/Windows/TableViewStyles.xaml @@ -7,17 +7,16 @@ xmlns:contract7Present="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)" xmlns:contract7NotPresent="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractNotPresent(Windows.Foundation.UniversalApiContract,7)" xmlns:primitiveContract7Present="using:Microsoft.UI.Xaml.Controls.Primitives?IsApiContractPresent(Windows.Foundation.UniversalApiContract,7)" - xmlns:controls="using:Microsoft.Maui.Controls" xmlns:xf="using:Microsoft.Maui.Controls.Platform" xmlns:platform="using:Microsoft.Maui.Controls.Platform.Compatibility"> - + - + diff --git a/src/Controls/src/Core/Internals/AsyncValue.cs b/src/Controls/src/Core/Internals/AsyncValue.cs index ce2ac4950a92..8b61b60b7336 100644 --- a/src/Controls/src/Core/Internals/AsyncValue.cs +++ b/src/Controls/src/Core/Internals/AsyncValue.cs @@ -34,9 +34,6 @@ namespace Microsoft.Maui.Controls.Internals { [EditorBrowsable(EditorBrowsableState.Never)] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public sealed class AsyncValue : INotifyPropertyChanged { readonly T _defaultValue; diff --git a/src/Controls/src/Core/Page/Page.cs b/src/Controls/src/Core/Page/Page.cs index 87cdc9c754d3..2bd38ff36b8d 100644 --- a/src/Controls/src/Core/Page/Page.cs +++ b/src/Controls/src/Core/Page/Page.cs @@ -21,9 +21,6 @@ namespace Microsoft.Maui.Controls /// is primarily a base class for more useful derived types. Objects that are derived from the class are most prominently used as the top level UI element in .NET MAUI applications. In addition to their role as the main pages of applications, objects and their descendants can be used with navigation classes, such as or , among others, to provide rich user experiences that conform to the expected behaviors on each platform. /// [DebuggerDisplay("{GetDebuggerDisplay(), nq}")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public partial class Page : VisualElement, ILayout, IPageController, IElementConfiguration, IPaddingElement, ISafeAreaView2, IView, ITitledElement, IToolbarElement, ISafeAreaView, IConstrainedView #if IOS ,IiOSPageSpecifics @@ -928,7 +925,7 @@ internal void SendNavigatedFrom(NavigatedFromEventArgs args, bool disconnectHand } } #endif - + if (!this.IsLoaded) { this.DisconnectHandlers(); diff --git a/src/Controls/src/Core/Picker/Picker.cs b/src/Controls/src/Core/Picker/Picker.cs index db5c80f6c1f2..10deffa03b5a 100644 --- a/src/Controls/src/Core/Picker/Picker.cs +++ b/src/Controls/src/Core/Picker/Picker.cs @@ -23,9 +23,6 @@ namespace Microsoft.Maui.Controls /// The visual representation is similar to an , but displays a picker interface instead of a keyboard. /// [DebuggerDisplay("{GetDebuggerDisplay(), nq}")] -#if WINDOWS - [Microsoft.UI.Xaml.Data.Bindable] -#endif public partial class Picker : View, IFontElement, ITextElement, ITextAlignmentElement, IElementConfiguration, IPicker { /// Bindable property for . diff --git a/src/Controls/src/Core/Platform/Windows/CollectionView/GroupTemplateContext.cs b/src/Controls/src/Core/Platform/Windows/CollectionView/GroupTemplateContext.cs index 4a51e44b2e0c..d698213bde74 100644 --- a/src/Controls/src/Core/Platform/Windows/CollectionView/GroupTemplateContext.cs +++ b/src/Controls/src/Core/Platform/Windows/CollectionView/GroupTemplateContext.cs @@ -4,7 +4,6 @@ namespace Microsoft.Maui.Controls.Platform { - [Microsoft.UI.Xaml.Data.Bindable] internal class GroupTemplateContext { public ItemTemplateContext HeaderItemTemplateContext { get; } diff --git a/src/Controls/src/Core/Platform/Windows/CollectionView/ItemTemplateContext.cs b/src/Controls/src/Core/Platform/Windows/CollectionView/ItemTemplateContext.cs index ed225e05024c..86200cc37d14 100644 --- a/src/Controls/src/Core/Platform/Windows/CollectionView/ItemTemplateContext.cs +++ b/src/Controls/src/Core/Platform/Windows/CollectionView/ItemTemplateContext.cs @@ -3,7 +3,6 @@ namespace Microsoft.Maui.Controls.Platform { - [Microsoft.UI.Xaml.Data.Bindable] public class ItemTemplateContext { readonly WeakReference _container; diff --git a/src/Controls/src/Core/Platform/Windows/CollectionView/ItemsViewStyles.xaml b/src/Controls/src/Core/Platform/Windows/CollectionView/ItemsViewStyles.xaml index e22e07012ccd..fa138ebf494e 100644 --- a/src/Controls/src/Core/Platform/Windows/CollectionView/ItemsViewStyles.xaml +++ b/src/Controls/src/Core/Platform/Windows/CollectionView/ItemsViewStyles.xaml @@ -36,7 +36,7 @@ - + - + - +