WPF Binding Frage
-
Hallo Leute,
ich hab eine TabControl, wobei ich den TabHeader und TabContent jeweis über ein DataTemplates bzw. Usercontrol setze:
<TabControl x:Name="boundTabControl" TabStripPlacement="Left" Margin="1" ItemsSource="{Binding xxxx}"> <TabControl.ItemTemplate> <DataTemplate DataType="{x:Type me:DongleInfo}"> <me:HeaderControl x:Name="headerControl" IsBusy="{Binding ElementName=contentCtrl, Path=IsBusy}"> </me:DongleHeaderControl> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate> <DataTemplate> <cc:ContentHost x:Name="contentCtrl" /> </DataTemplate> </TabControl.ContentTemplate> </TabControl>
Nun will ich das "IsBusy"- Property des "contentControls" an das "IsBusy" Property dees "headerControl" binden!?!? wie geht das?
-
Du hast es doch schon im Code?
IsBusy="{Binding ElementName=contentCtrl, Path=IsBusy}"
funktioniert das so nicht?