wpfui icon indicating copy to clipboard operation
wpfui copied to clipboard

Getting errors from following tutorial.

Open rosebytee opened this issue 3 years ago • 3 comments

Describe the bug
I'm getting 3 errors after following the tutorial. 1: image 2: image image 3: image image

Desktop (please complete the following information):

  • OS: Windows 11
  • .NET: Net 6.0 Long Term Release
  • Version: Latest stable release 2.01

rosebytee avatar Jul 01 '22 18:07 rosebytee

Documentation is flawed; you need to use the ui:UiWindow class instead of Window.

not-nullptr avatar Jul 03 '22 14:07 not-nullptr

(As a temporary fix to a bigger problem, you can use the WPFUI extension for VS)

not-nullptr avatar Jul 03 '22 14:07 not-nullptr

I was able to get around these issues by making the following changes:

Change Style="{StaticResource UiWindow}" to Style="{StaticResource DefaultChromeWindowStyle}" Create a Pages folder and add 2 WPF Pages to it named Dashboard and Settings.

You's also have to change the import namespace for WPFUI to ui:

xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"

mastry avatar Jul 06 '22 09:07 mastry