Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Window.xaml cannot be edited in design view

$
0
0

Hello everyone,

I have made a custom class that inherits from Window called MyWindow to add some extra functionality and then created a new window MainWindow.xaml that is a window of type MyWindow (<local:MyWindow .../>). MainWindow also has a style - that I created to use with the MyWindow functionality. It's working perfectly when I run my project, but the XAML editor for MainWindow is telling me "MainWindow.xaml cannot be edited in the Design view.". I am confused because it was working before and now after giving me a weird error that said "PathGeometry is not a valid value for property Geometry" for one of my brushes, it stopped displaying the window. I could just keep working on the project by writing all the xaml code manually, which is not a problem, but really annoying not to see how it will look like until I run it. What could be wrong?

There is no other information I can share with you because the IDE isn't even telling me what's wrong :(

Thank you for your time,

suzi9spal


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>