Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Button in TabItem header #267

Open
cjmurph opened this issue Nov 3, 2021 · 0 comments
Open

Button in TabItem header #267

cjmurph opened this issue Nov 3, 2021 · 0 comments

Comments

@cjmurph
Copy link
Contributor

cjmurph commented Nov 3, 2021

I'm using dragablz with material design, I want to have a toggle button in the header of a tab item, however because the tab item gets wrapped in a DragablzItem the click is handled before the my button gets it. any ideas?
Here's a snippet of the sort of thing I'm doing:

<dragablz:TabablzControl BorderThickness="0" IsManipulationEnabled="False" Margin="5" Grid.Row="1" Grid.ColumnSpan="6">
  <TabItem>
    <TabItem.Header>
      <Grid>
        <Grid.ColumnDefinitions>
          <ColumnDefinition Width="Auto"/>
          <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock Text="SOME HEADER" FontWeight="Medium" Foreground="{DynamicResource PrimaryHueMidForegroundBrush}"/>
        <ToggleButton Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" IsChecked="{Binding SomeBooleanOnMyViewModel}" VerticalAlignment="Center" Margin="8,4,0,4"
                              Style="{StaticResource MaterialDesignSwitchToggleButton}"/>
        </Grid>
      </TabItem.Header>
    <Grid>
    </Grid>
  </TabItem>
</dragablz:TabablzControl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant