Ticket T752004
Visible to All Users

No visual designer available for a ViewController class after changing the base type from the generic ObjectViewController<V, T> to ViewController

created 6 years ago (modified 6 years ago)

[DevExpress Support Team: CLONED FROM T584395: No visual designer available for View Controllers with the base generic base class ObjectViewController<V, T> or ViewController<V>]

I seemed to have broken my ViewController  :)
A long time ago I created a ViewController via the template.  I added the TargetViewType & TargetObjectType to the constructor.
With this I added some actions via the Designer.
At some point in the near past I changed it to ObjectViewController<V, T> but later found out I no longer have access to the Designer,
even though all of the Designer "code behind" files are still there, as well as the actions within (See Attached).

Since I want to use the Designer, I changed ObjectViewController<V, T>  back to the original ViewController.
This change didn't work. I still don't get the Designer, double click brings up the Code view, right click does not give the Shift-F7 option to View Designer.  So it looks like the solution is to create another controller and copy everything to it?

Answers approved by DevExpress Support

created 6 years ago (modified 6 years ago)

Open the SOSSuite.Module.Win project in the code editor. For this, right-click the project name in the Solution Explorer to invoke the context menu, and select the Unload Project menu item. Right-click the unloaded project again and select the Edit SOSSuite.Module.Win.csproj item.

In the code editor, find the Compile node that includes the ViewController file. Normally, it should contain the SubType node as follows:

XML
<Compile Include="Controllers\ClaimSelectionProfessional_ViewController.cs"> <SubType>Component</SubType> </Compile>

I suppose that in your case it does not contain the SubType node. Add it, save changes, and reload the project using the context menu.

    Comments (1)

      Thank you, sir.  That was it !

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.