0

I am getting an error for "partial declarations of ... must not specify different base classes"

namespace CameraControl.windows
{
    public partial class GantryXYZW_TEST : Window
    {
        public GantryXYZW_TEST()
        {

The error comes from the line of

public partial class GantryXYZW_TEST : Window

The XAML is:

<controls:MetroWindow x:Class="CameraControl.windows.GantryXYZW_TEST"
2
  • Try being explicit with "Window". Search your entire project for the other declaration,and use the same base class(es) Commented Mar 8, 2015 at 1:48
  • 3
    MetroWindow is not Window. Commented Mar 8, 2015 at 1:51

1 Answer 1

1

As commenter SLaks alludes to…

You either need to edit the XAML so that your window class is Window and not controls:MetroWindow, or you need to edit your C# so that your window class is GantryXYZW_TEST : MetroWindow and not GantryXYZW_TEST : Window.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.