2 Replies - 2852 Views - Last Post: 25 June 2012 - 12:43 PM Rate Topic: -----

#1 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,356
  • Joined: 02-June 10

UserControl files not nested in Solution Explorer

Posted 25 June 2012 - 10:54 AM

This is not stopping my solution from working but just an oddity/curiosity.

Attached Image

Notice the files highlighted in yellow. ObservedFolderUC.xaml.cs is the code behind for ObservedFolderUC.xaml. So why isn't Visual Studio nesting it like it should; like seen on the SideBar UserControl?

I couldn't even think of a good set of terms to google for this one "WPF UserControl file hierarchy"... "solution explorer"... "file nesting" and all variants I tried come up with a lot about binding to nested controls. But nothing about how the files are being associated in Visual Studio itself.

Is This A Good Question/Topic? 0
  • +

Replies To: UserControl files not nested in Solution Explorer

#2 bflosabre91  Icon User is offline

  • go sabres

Reputation: 105
  • View blog
  • Posts: 1,439
  • Joined: 22-February 08

Re: UserControl files not nested in Solution Explorer

Posted 25 June 2012 - 12:25 PM

Sorry, never had this issue in my projects... maybe this thread could have something you haven't tried?

http://stackoverflow...d-xaml-cs-files
Was This Post Helpful? 2
  • +
  • -

#3 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,356
  • Joined: 02-June 10

Re: UserControl files not nested in Solution Explorer

Posted 25 June 2012 - 12:43 PM

You are a god! That was exactly the situation. No idea how the file got that corruption. But edited the .cprog file in WordPad to nest one object in the other and it opened back up just fine.

Attached Image
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1