Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Visual Tree Helper (Based on #1820) #1845

Merged
merged 44 commits into from
Jul 29, 2021
Merged

Add Visual Tree Helper (Based on #1820) #1845

merged 44 commits into from
Jul 29, 2021

Commits on Jul 27, 2021

  1. vth

    StephaneDelcroix committed Jul 27, 2021
    Configuration menu
    Copy the full SHA
    de1557f View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Configuration menu
    Copy the full SHA
    32bad03 View commit details
    Browse the repository at this point in the history
  2. Remove unneeded usings

    drasticactions committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    ed5ab3b View commit details
    Browse the repository at this point in the history
  3. Move interface to Core

    drasticactions committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    c061c4a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0d7279e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d7a8d81 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    174a41a View commit details
    Browse the repository at this point in the history
  7. Update Tests

    drasticactions committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    d7cc97d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    23d4a9e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    28811af View commit details
    Browse the repository at this point in the history
  10. Update Tests

    drasticactions committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    d217b5c View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Move properties

    drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    ab09d03 View commit details
    Browse the repository at this point in the history
  2. Add enter

    drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    ed301ff View commit details
    Browse the repository at this point in the history
  3. Update stuff

    drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    8449a23 View commit details
    Browse the repository at this point in the history
  4. Add net6.0 to the projects (#1810)

    * Add net6.0 to the projects
    
    * additive
    
    * ws
    mattleibow authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    081ec00 View commit details
    Browse the repository at this point in the history
  5. Switch to System.ComponentModel.TypeConverter (#1725)

    Co-authored-by: Stephane Delcroix <stephane@delcroix.org>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    98e3858 View commit details
    Browse the repository at this point in the history
  6. Move New Navigation Handler to Core and make it internal (#1800)

    * Move navhost bits to core
    
    * - windows
    
    * - fix IEnumerable calls
    
    * - fix up ios
    
    * - revert to renderer
    PureWeen authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    bc78b1a View commit details
    Browse the repository at this point in the history
  7. [templates] remove Directory.Build.targets, add @(ProjectCapability) (#…

    …1433)
    
    * [templates] remove Directory.Build.targets, add @(ProjectCapability)
    
    The `Directory.Build.targets` files in the templates were a collection
    of workarounds that were needed until .NET MAUI was a workload. When
    .NET MAUI was a NuGet package, this was the only way to set required
    values for the IDE before NuGet restore. In the early days, you had to
    unload/reload MAUI projects after NuGet restore.
    
    We can remove `Directory.Build.targets` from templates now, and
    consolidate `@(ProjectCapability)` so this is defined by the workload.
    
    The following capabilities are defined for the IDE:
    
    * `Maui`
    * When `$(SingleProject)` is `true`:
      * `MauiSingleProject`, `LaunchProfiles`
      * `XamarinStaticLaunchProfiles` older than Dev17
      * `LaunchProfilesGroupByPlatformFilters` otherwise
    
    These new capabilities are defined to identify projects (via telemetry)
    that bring in portions of .NET MAUI:
    
    * `MauiAssets`
    * `MauiBlazor`
    * `MauiCore`
    * `MauiEssentials`
    
    Other changes:
    
    * `$(_KeepLaunchProfiles)` is set by default when `$(SingleProject)`
      is `true`.
    * WinUI workarounds are moved into `WinUI.SingleProject.targets`.
    * Fixed `sdk-manifests` casing for `src/DotNet/DotNet.csproj -t:Install`
    
    * Remove CI trimming workaround
    
    * Update WinUI.SingleProject.targets
    
    * Update Directory.Build.targets
    
    Co-authored-by: Jonathan Dick <jond@hey.com>
    Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
    3 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    df5993e View commit details
    Browse the repository at this point in the history
  8. Navigation Events (#1812)

    PureWeen authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    cef3dcb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    eed40bf View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    71ed794 View commit details
    Browse the repository at this point in the history
  11. Update layout system to ensure native measure/arrange are called for …

    …all controls, even from Page subclasses (#1819)
    
    Fixes #1776
    Fixes #1778
    hartez authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    8903c51 View commit details
    Browse the repository at this point in the history
  12. [workload] support $(UseMaui) from a net6.0 TFM (#1788)

    * [workload] support $(UseMaui) from a net6.0 TFM
    
    If you try to enable `$(UseMaui)` in a `net6.0` project, you get
    errors during `restore` like:
    
        error NU1101: Unable to find package Microsoft.Maui.Core.Ref.. No packages exist with this id in source(s):
        C:\src\maui\bin\dotnet\library-packs, dotnet-eng, dotnet-public, dotnet6, xamarin
    
    Note the `..` is caused by `$(_MauiPlatformName)` being blank in
    `BundledVersions.targets`.
    
    The solution here is to an `any` pack for all `.Ref` and `.Runtime`
    packs. Unfortunately, we will need `net6.0` versions of all assemblies
    in order to do this.
    
    This is blocked until `net6.0` can be added to `$(MauiPlatforms)`:
    
    https://github.com/dotnet/maui/blob/f95c2e5c9a6e19817c75ddb93fae98ca8739399f/Directory.Build.props#L13
    
    I would do it myself, but there are many C# compiler errors I don't
    know about. It appears that the `$(DefineConstants)` in place expect
    some platform to be there.
    
    The remaining changes here *should* get `net6.0` working in a
    workload, but I can't test it yet.
    
    * No need for Controls.Sample.NoPlatform
    
    The main sample app is now net6 friendly
    
    * okays
    
    * Add the .any packs to the manifest
    
    * add to the workload
    
    * Don't include "design" assemblies in FrameworkList.xml
    
    Otherwise, they get included as references.
    
    Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    1693b5e View commit details
    Browse the repository at this point in the history
  13. Update dependencies from https://github.com/xamarin/xamarin-macios bu…

    …ild 20210726.8 (#1822)
    
    Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
     From Version 12.0.100-preview.7208 -> To Version 12.0.100-preview.7209
    
    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    77ac1ab View commit details
    Browse the repository at this point in the history
  14. [CI] Only wait 30 minutes for VS insertion task (#1826)

    Commit 41a42d1 added a new stage for releases that will wait for up to
    two days for approval before timing out.  In most cases, this will cause
    the `maui-release` and `maui-nightly` release definitions to wait the
    full two days before they trigger automatically.  This is only avoided
    if someone approves or rejects the `VS Insertion` stage in the pipeline
    before the default timeout occurs.
    
    We can reduce the timeout to 30 minutes to speed up the majority of post
    build efforts, as the `VS Insertion` stage can still be re-ran after it
    is rejected.
    pjcollins authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    c6f3fbb View commit details
    Browse the repository at this point in the history
  15. Make StaticWebAssets not fail in RCLs referenced by MAUI projects (#1828

    )
    
    The fix is to prevent a wrong TFM being flowed to the "inner build" of iOS/Android/MacCatalyst MAUI projects so that a referenced RCL is built only with its actual TFM and not the referencing project's TFM.
    
    Fixes #1771
    Eilon authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    dbaa5cd View commit details
    Browse the repository at this point in the history
  16. [main] Update dependencies from xamarin/xamarin-android (#1798)

    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    Co-authored-by: Jonathan Dick <jond@hey.com>
    Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
    4 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    39a4c55 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e0f60f6 View commit details
    Browse the repository at this point in the history
  18. Introduce AutomationProperties.ExcludedWithChildren (#1815)

    * Add initial code for ExcludedWithChildren property
    
    * Update SemanticsPage sample
    
    AutomationProperties still needs to be wired up for proper testing. For now, comment out Button and Label handler registration in AppHostBuilderExtensions
    
    * Tweak sample further
    rachelkang authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    4b0d5f2 View commit details
    Browse the repository at this point in the history
  19. Add traits to iOS Checkbox so it reads as Switch (#1832)

    * Add traits to iOS Checkbox so it reads as Switch
    
    * - fix up sample
    
    * - remove label
    
    * - remove extra checkbox
    PureWeen authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    195257d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    7cf0923 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    268cd46 View commit details
    Browse the repository at this point in the history
  22. [main] Update dependencies from xamarin/xamarin-android (#1842)

    * Update dependencies from https://github.com/xamarin/xamarin-android build 6.0.1xx-preview7-d306ec847373bedc8995de8a17fd4e482697e824-1
    
    Microsoft.Android.Sdk.Windows
     From Version 30.0.100-preview.7.100 -> To Version 30.0.100-preview.7.104
    
    Dependency coherency updates
    
    Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,System.CodeDom
     From Version 6.0.0-preview.7.21373.17 -> To Version 6.0.0-preview.7.21376.17 (parent: Microsoft.AspNetCore.App.Runtime.win-x64
    
    * [android] ignore warnings for PreserveAttribute
    
    We were hitting this in one file:
    
      src\Core\src\Platform\Android\NavigationLayout.cs(11,4): error CS0618: 'PreserveAttribute' is obsolete: 'Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]'
      src\Core\src\Platform\Android\NavigationLayout.cs(16,4): error CS0618: 'PreserveAttribute' is obsolete: 'Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]'
      src\Core\src\Platform\Android\NavigationLayout.cs(21,4): error CS0618: 'PreserveAttribute' is obsolete: 'Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]'
      src\Core\src\Platform\Android\NavigationLayout.cs(26,4): error CS0618: 'PreserveAttribute' is obsolete: 'Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]'
    
    For now, let's disable this warning. We probably don't want to add
    this to `$(NoWarn)`, because turning off CS0618 would disable too
    much. You'd still want warnings for other obsolete APIs.
    
    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
    3 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    b28e1f4 View commit details
    Browse the repository at this point in the history
  23. Update dependencies from https://github.com/xamarin/xamarin-macios bu…

    …ild 20210727.61 (#1841)
    
    Microsoft.macOS.Sdk , Microsoft.MacCatalyst.Sdk , Microsoft.iOS.Sdk , Microsoft.tvOS.Sdk
     From Version 12.0.100-preview.7209 -> To Version 12.0.100-preview.7217
    
    Dependency coherency updates
    
    Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,System.CodeDom
     From Version 6.0.0-preview.7.21373.17 -> To Version 6.0.0-preview.7.21376.17 (parent: Microsoft.AspNetCore.App.Runtime.win-x64
    
    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    bdcef71 View commit details
    Browse the repository at this point in the history
  24. Introduce SetSemanticFocus API via SemanticExtensions (#1829)

    * Introduce SetSemanticFocus API
    
    * Clean up code
    
    * Update Android to use ViewFocused instead
    
    * - fix up extension methods
    
    * - adjust checkbox traits
    
    * - fix checkbox
    
    * - fix comments
    
    Co-authored-by: Rachel Kang <rachelkang@microsoft.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    5db8bd9 View commit details
    Browse the repository at this point in the history
  25. Merge fixes from XF 5.0.0 SR4 into MAUI (#1830)

    * Fix iOS so if you remove more than one page it's able to remove them successfully
    
    * - add file from Control gallery
    
    * Don't set the width of the TitleView to the width of the status bar (#14290)
    
    * Fix width measure on TitleView
    
    * - fix test
    
    * Update ShellPageRendererTracker.cs
    
    * Update ShellTitleView.cs
    # Conflicts:
    #	Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/ShellTitleView.cs
    #	Xamarin.Forms.Platform.iOS/Renderers/ShellPageRendererTracker.cs
    
    * - fix up issue
    
    * - merge shell accessibility fixes
    
    * Route Navigation.(Push/Pop)Modal through Shell Navigation Manager (#14080)
    
    * Route Navigation.(Push/Pop)Modal through Shell Navigation Mananger
    
    * - fix SO error
    
    * Update ShellNavigationManager.cs
    # Conflicts:
    #	Xamarin.Forms.Core.UnitTests/ShellModalTests.cs
    #	Xamarin.Forms.Core.UnitTests/ShellNavigatingTests.cs
    #	Xamarin.Forms.Core/Routing.cs
    #	Xamarin.Forms.Core/Shell/RouteRequestBuilder.cs
    #	Xamarin.Forms.Core/Shell/ShellNavigationManager.cs
    #	Xamarin.Forms.Core/Shell/ShellSection.cs
    #	Xamarin.Forms.Core/Shell/ShellUriHandler.cs
    
    * - fix shell section
    
    * - fix issue test
    
    * - fix namespace
    
    * - formatting changes
    
    * - fix naming
    PureWeen authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    ed37c56 View commit details
    Browse the repository at this point in the history
  26. Update static web assets targets

    javiercn authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    fe6f682 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    7685f18 View commit details
    Browse the repository at this point in the history
  28. Swap layout namespaces (#1838)

    * Move Legacy layouts into Compatibility and new layouts out of Layout2
    
    * Checkpoint; waiting on IContainer List<IView> change to move forward
    
    * Rebase fixups and ScrollView layout reordering
    
    * Update BindableLayout/Indicator stuff for Windows
    
    * Fix various build errors
    
    * Update unit tests to use proper layout versions
    
    * More unit test updates
    
    * Remove old comment
    
    * - fix namespace for Contraint Converter
    
    * Remove the shim subclasses
    
    * More test fixups
    
    * Restore test page code
    
    Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    9c3edee View commit details
    Browse the repository at this point in the history
  29. Update dependencies from https://github.com/xamarin/xamarin-android b…

    …uild 6.0.1xx-preview7-ce2830613a0123d3fd8207e97e5ec7483706409e-1 (#1853)
    
    Microsoft.Android.Sdk.Windows
     From Version 30.0.100-preview.7.104 -> To Version 30.0.100-preview.7.106
    
    Dependency coherency updates
    
    Microsoft.NETCore.App.Ref,Microsoft.Dotnet.Sdk.Internal,Microsoft.Extensions.Primitives,Microsoft.AspNetCore.App.Runtime.win-x64,Microsoft.Extensions.Hosting.Abstractions,Microsoft.Extensions.DependencyInjection.Abstractions,Microsoft.Extensions.DependencyInjection,Microsoft.Extensions.Configuration.Abstractions,Microsoft.Extensions.Configuration,Microsoft.Extensions.Logging.Abstractions,Microsoft.Extensions.Logging,Microsoft.Extensions.Logging.Console,Microsoft.Extensions.Logging.Debug,Microsoft.Extensions.FileProviders.Abstractions,Microsoft.Extensions.FileProviders.Embedded,Microsoft.AspNetCore.Authorization,Microsoft.AspNetCore.Components.WebView,Microsoft.AspNetCore.Components.Web,Microsoft.JSInterop,Microsoft.WindowsDesktop.App.Runtime.win-x64,System.CodeDom
     From Version 6.0.0-preview.7.21376.17 -> To Version 6.0.0-preview.7.21377.12 (parent: Microsoft.Dotnet.Sdk.Internal
    
    Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
    2 people authored and drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    64ae1e6 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    39a46db View commit details
    Browse the repository at this point in the history
  31. Merge branch 'main' into dev/timill/vth

    # Conflicts:
    #	src/Controls/src/Core/Layout/Layout.cs
    drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    5cab002 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    fc93140 View commit details
    Browse the repository at this point in the history
  33. Add GetVisualParent

    drasticactions committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    122105e View commit details
    Browse the repository at this point in the history