Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 899917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:18:01+00:00 2026-05-15T15:18:01+00:00

With the following resource definition <ObjectDataProvider MethodName=GetValues ObjectType={x:Type sys:Enum} x:Key=AccountTypeValues> <ObjectDataProvider.MethodParameters> <x:Type TypeName=domain:Account+AccountType />

  • 0

With the following resource definition

<ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}" x:Key="AccountTypeValues">
    <ObjectDataProvider.MethodParameters>
        <x:Type TypeName="domain:Account+AccountType" />
    </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>

the designer complains that “Type ‘Account+AccountType’ was not found.” However, the nested type exists and code complies and runs without a problem. Since the designer thinks the XAML is incorrect, it won’t display a graphical rendition of the XAML.

What do I need to do to get the designer to recognize Account+AccountType as valid? I’d really like the visual part of the designer to work.

Thank you,
Ben

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:18:01+00:00Added an answer on May 15, 2026 at 3:18 pm

    It looks like this is a known bug in Visual Studio. From http://social.msdn.microsoft.com/forums/en-US/wpf/thread/12f3e120-e217-4eee-ab49-490b70031806/:

    We had somebody look at the use of
    {x:Type Foo+Bar} pattern and test it
    in VS2010 and Blend4. It appears that
    it works fine at Runtime, CompileTime,
    in Blend 4, but fails in VS2010’s WPF
    Designer.

    We’ve filed a bug, and routed it to
    the WPF Designer team.

    See also http://connect.microsoft.com/VisualStudio/feedback/details/361509/xaml-designer-cannot-handle-typename-with-nested-classes.

    You could create a static property that calls Enum.GetValues(typeof(Account.AccountType)) and bind to that instead of using an ObjectDataProvider. Or, if you control the types, you could move the enum outside the class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got following CollectionViewSource definition in XAML: <UserControl.Resources> <CollectionViewSource x:Key=PersonsViewSource Source={Binding AvailablePersons}> <CollectionViewSource.SortDescriptions> <scm:SortDescription
Given the following resource definition: map.resources :posts, :except => [:show] map.post '/:year/:month/:slug, :controller =>
I am using tomcat pool on tomcat 6. Following is the my resource definition:
I have the following user resource: class UserResource(ModelResource): class Meta: queryset = User.objects.all() resource_name
I've got the following routes: routes.IgnoreRoute({resource}.axd/{*pathInfo}); routes.MapRoute(null,Conference/{shortName}/Submission/{submission}/{action}, new { controller = Conference, action =
I've been following the documentation at the resource below http://silex.sensiolabs.org/doc/providers/form.html But I get the
Imagine the following class that manages a resource (my question is only about the
I have the following structure: class User include Mongoid::Document end class Resource include Mongoid::Document
I get the following error messages when I run the app: Description Resource Path
What are the best resource to study the following: JavaScript, AJAX, CodeIgniter Smarty?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.