-
Notifications
You must be signed in to change notification settings - Fork 89
Xaml Islands do not work when Microsoft.Toolkit.Uwp.UI.Animations is referenced by UWP Class Library #159
Comments
This is a docs issue on https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control |
Let me know if these steps help:
<Toolkit:XamlApplication
x:Class="MyUWPApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:Toolkit="using:Microsoft.Toolkit.Win32.UI.XamlHost"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyUWPApp">
</Toolkit:XamlApplication>
|
@azchohfi Thank you for your help! Animations work now. I gave more feedback on the above implementation steps in #151. I didn't see 'Acrylic backdrop background not working on Xaml Islands' listed as a known issue, is that internally known to your team? Even when I make the following components transparent, it ends up as black instead of transparent:
Would I need to report it as a bug? |
That's a tricky one. @ocalvo, do you happen to know if a Xaml Island can be made transparent? |
PS: @hansmbakker did this fix everything else for you? |
@azchohfi I got the rest working so this can be closed. One point is that it seems that you manually have to rebuild the dependencies and the wpf host after changing something in the dependencies (the XamlApplication project). If you change something in it then the wpf host doesn't immediately pick it up and rebuild everything. However that is something that you are probably still working on? I'll open a separate issue for the Acrylic. |
|
I'm submitting a...
Current behavior
Project fails to start when
Microsoft.Toolkit.Uwp.UI.Animations
version 5.1.1 is referenced by the User Control class library. Exception message:Expected behavior
UWP Class Library containing User Control that uses
Microsoft.Toolkit.Uwp.UI.Animations
can be referenced by Winforms project using Xaml Islands.Minimal reproduction of the problem with instructions
Project setup:
Environment
The text was updated successfully, but these errors were encountered: