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
205
Disable tabs on XamDockManager
posted

Hi.  I would like to enable/disable tabs hosted by a XamDockManager based on certain conditions.  Setting the IsEnabled property to "false" for the content pane does not work, as I would like to tab to not be "clickable"until I want it to be so.  How may I accomplish this?  Thanks!

Parents
No Data
Reply
  • 3520
    Offline posted

    Hi byronking,

    You need to apply the style to igDock:PaneTabItem and add some triggers according to the conditions under which you want to apply that.

    For example:

    <Style TargetType="{x:Type igDock:PaneTabItem}">
     <Style.Triggers>
      <Trigger Property="Header" Value="CP 1">
       <Setter Property="IsEnabled" Value="False"/>
      </Trigger>
     </Style.Triggers>
    </Style>

    Hope this helps.

Children