Dimitri

Dimitri

  • NA
  • 1
  • 0

Custom Control problem, please help

Sep 25 2008 5:20 AM

Hello all,

I have created a Custom Control Project with two controls inside :

- NavBar : TabControl
- NavBarItem : TabItem

I have modified them and everything work fine when I use the DLL in an external application.

But there is a problem I can't resolve, when I add a NavBar control from Blend 2.0 (in design mode), Blend automaticly create two <TabItem> inside my NavBar control xaml. But it's not <TabItem> controls that are used in my NavBar control, it's <NavBarItem>.

If I manually replace TabItem by NavBarItem in the XAML code there is no problem, but I'd like it to be done automaticle when I add a NavBar control into a project.

How can I tell in my custom control project that the default child for my NavBar control is NavBarItem and not TabItem ?


Thank a lot,
Dimitri.