Click here to Skip to main content
15,888,124 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Is there a way to consume a control (like a ComboBox)in the main window's XAML if it is defined in a control template?

Let's say I have a look-less control with a default style defined in Generic.xaml. And in that default style is a control template with a ComboBox defined as "PART_Combo".

Is it possible to consume "PART_Combo" on a window that uses the look-less control like this:

HTML
<local:mycontrol xmlns:local="#unknown">
<local:mycontrol.part_combo itemssource="{Binding}">

</local:mycontrol.part_combo>
</local:mycontrol>


Any help would be appreciated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900