Skip to content

[Docs] unoplatform/Uno.XamlBehaviors documentation will need to be updated to add details for single project structure #16871

Description

@agneszitte
  • unoplatform/Uno.XamlBehaviors documentation will need to be updated to add details for single project structure.
  • Plus at the moment this documentation is not available on the Uno Platform documentation website.

cf.

Hi @modula2019,
Just so it is easier for anyone searching for the same info, I will re-share here the same info I shared with you on Discord here. I noticed after my answer there that you opened a discussion here.

Similar concept to the WCT v7.1.2 details that I previously shared with you in terms of how to add the PackageReference and PackageVersion with the new single project structure. In attachment here UnoApp1-updated.zip, you will find your sample with the adjustments.

To have the correct latest stable versions:

In Directory.Package.props:

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
    <PackageVersion Include="Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.0.9" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
    <PackageVersion Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" Version="2.4.2" />
</ItemGroup>

In UnoApp1.csproj:

  <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
    <PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" />
  </ItemGroup>
  <ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'windows'">
    <PackageReference Include="Uno.Microsoft.Xaml.Behaviors.WinUI.Managed" />
  </ItemGroup>

I also updated <Interactivity:Interacton.Behaviors> for the correct <Interactivity:Interaction.Behaviors> in your code 🙂

Originally posted by @agneszitte in #16856 (comment)

Activity

  1. self-assigned this
    on May 24, 2024
  2. added theissue type on Jul 15, 2025
  3. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  4. added
    stale
    on Oct 17, 2026
  5. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    This issue was closed because it had no activity for 10 days after being marked as stale. If you believe this is still relevant, feel free to reopen it or open a new issue with updated context.

  6. Jen-Uno commented on Oct 28, 2026

    @Jen-Uno
    Contributor

    This issue was closed as not planned, so there is nothing for QA to verify. Moving it from Ready for QA Review to Done on the Uno Team Backlog.

  7. removed
    stale
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions