Expression Blend does not display my application objects in CLR objects

I am following a video tutorial on linking data with Visual Studio / Expression Blend. In the tutorial, user-defined application objects are displayed when the facilitator presses the + CLR Object button, but when I do this, my application objects are not displayed.

What do I need to do to get my application objects listed here?

+3
source share
3 answers

Do you have a link between projects? It seems that the parent project simply does not have a reference to the parent so that they can be picked up.

+3
source

, , - , .

public class MyThing{

private int _item;

//If this is the only constructor Expression does not show it up
public MyThing(int item){
   _item = item;
}

//Expression will only list your object if you add this constructor 
//when you also have parameterised constructors

public MyThing(){}

}
+2

I had the same problem. I did not make classes in my public C # code.

I had this:

class myclass

I needed the following:

public class MyClass

+1
source

Source: https://habr.com/ru/post/1702515/


All Articles