-
Hi All, I'm trying to follow the Uno Material tutorial here : https://platform.uno/docs/articles/guides/uno-material-walkthrough.html?tabs=tabid-vswin but having some problems. Noting that some things have been moved to Uno.Toolkit.UI I've tried to get the example code working but have struggled to get the right combination. The code will build, but I get an exception about different styles not being available, such as MaterialDividerStyle. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Thanks. Can you create a sample and post the zip file here? |
Beta Was this translation helpful? Give feedback.
-
Sorry, forgot to post the URL to the repo: |
Beta Was this translation helpful? Give feedback.
-
I also think I have it working now by using these lines in the app.xaml
|
Beta Was this translation helpful? Give feedback.
-
The documentation for Uno.Material is currently being updated to reflect the changes described below, see #8475 NuGet Packages you will need to have installed:
The resource initialization within your <Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- Load WinUI resources -->
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Load Uno.UI.Toolkit resources -->
<ToolkitResources xmlns="using:Uno.Toolkit.UI" />
<!-- Load Material resources -->
<MaterialColors xmlns="using:Uno.Material" />
<MaterialResources xmlns="using:Uno.Material" />
<!-- Load Material Toolkit resources -->
<MaterialToolkitResources xmlns="using:Uno.Toolkit.UI.Material" />
<!-- Load remaining application resources -->
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources> |
Beta Was this translation helpful? Give feedback.
The documentation for Uno.Material is currently being updated to reflect the changes described below, see #8475
NuGet Packages you will need to have installed:
The resource initialization within your
App.xaml
will have to be done in a specific order, it should look something like this: