Replies: 1 comment 6 replies
-
Hi @msavazzi you can try the following:
if the above does not help please make a short sample App, create a new repro on github and share the link here please also provide information about: Happy coding |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just created the project and I get this error on the ShellWindow:
Error XDG0062 Can only base on a Style with target type that is base type 'Window'.
here is the window.xaml
<controls:MetroWindow
x:Class="TitoDoc2020.Views.ShellWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
xmlns:behaviors="clr-namespace:TitoDoc2020.Behaviors"
xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:properties="clr-namespace:TitoDoc2020.Properties"
xmlns:templateSelectors="clr-namespace:TitoDoc2020.TemplateSelectors"
Title="{x:Static properties:Resources.AppDisplayName}"
d:DesignHeight="400"
d:DesignWidth="600"
DataContext="{Binding ShellViewModel, Source={StaticResource Locator}}"
Dialog:DialogParticipation.Register="{Binding}"
SaveWindowPosition="True"
Style="{StaticResource CustomMetroWindow}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
and here is the style in MetroWindow.xaml
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions