Inherit from Canvas error in expression blend RRS feed

  • Question

  • I created a control that inherits from Canvas as I wanted to add functionality. When I'm in expression blend, I'm not able to add children to the control via drag&drop but I can add it via Xaml and the children only display correctly at runtime.

    ie. I created a "page" control that inherits from Canvas. I then created a "book" control that has "pages". In expression blend I have the book control open and want to add different children to each page from that control, but the drag and drop doesn't work. Also, when I try and create a storyboard where I animate one of the elements I added to a 'page' it displayes and error, saying that it cant find the control that I want to animate

    What am I missing here? feels like its something stupid

    Friday, January 13, 2012 3:15 AM