Ok, so i created a simple control library as found at:
http://www.silverlight.net/quickstarts/BuildUi/CustomControl.aspx
namespace: ClassLibrary1
class name: MyLabel
ok, so now i open a new instance of orcas.
create a silverlight project.
under references i add the classlibrary1.dll as created the control library i made.
did a build and checked the ClientBin folder. dll is there.
edit Page.xaml
under xmlns:x i add xmlns:my="clr-namespace:ClassLibrary1.MyLabel;assembly=ClientBin/ClassLibrary1.dll"
in the canvas i add
<
my:MyLabel></my:MyLabel>
and run the application.
Error i get is this:
Silverlight Error Message
ErrorCode 2254
ErrorType ParserError
Message AG_E_PARSER_UNKNOWN_TYPE
XamlFile Page1.xaml
Line 11
Position 14
ok so all i want to do is create a control library and add that control to a seperate project.
now the quickstart dealing with the control want's you to copy the xaml files over to the control library to test.
that is no good for me.
So the question is simple. HOW do i use a control from my control library as re-usable class in my projects?