Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Bind CloseButtonVisibility to ViewModel
posted

Hy Supportteam,

i've the following problem.
I want to bind the Property "CloseButtonVisibility" to my ViewModel.
I've played arroung with serveral things, but nothing helps.
Here is my samplecode.

 

 

 

 

 

 

 

 

 

 

 

 

 

<igWindows:XamTabControl Theme="[Current]" ItemsSource="{Binding Path=LoadedViewModels}" IsSynchronizedWithCurrentItem="True"
igWindows:TabItemEx.Closed="OnTabItemExClosed" >
<igWindows:XamTabControl.Resources>
<Style TargetType="igWindows:TabItemEx">
<Setter Property="HeaderTemplate" Value="{StaticResource headerText}" />
</Style>
</igWindows:XamTabControl.Resources>
</igWindows:XamTabControl>

The Itemssource "LoadedViewModels" is a collecetion of my viewmodels and each has a bool prop for viewmodelcanclose.

Can you help my?

Parents
No Data
Reply Children
No Data