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
2370
MenuTool stay open until loses focus
posted

I have a MenuTool that is a checkbox and then a listbox of subcategories checkboxes.  My problem is that the MenuTool closes once anything is clicked in my itemtemplate area.  I would like it to stay open until they click the MenuTool header again or the element loses focus.  Is there a way to do this?

<igRibbon:MenuTool Caption="Segments" Grid.Row="0" Grid.Column="1" ItemsSource="{Binding SampleSegmentOptions}">
  <igRibbon:MenuTool.ItemTemplate>
    <DataTemplate>
      <StackPanel>
        <CheckBox IsChecked="False" IsThreeState="True" Content="{Binding SegmentLabel}" />
        <ListBox ItemsSource="{Binding SegmentCategories}" Margin="15,0,0,0" BorderThickness="0" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
          <ListBox.ItemTemplate>
            <DataTemplate>
              <CheckBox IsChecked="False" Content="{Binding}" />
            </DataTemplate>
          </ListBox.ItemTemplate>
        </ListBox>
      </StackPanel>
    </DataTemplate>
  </igRibbon:MenuTool.ItemTemplate>
</igRibbon:MenuTool>

Also, There seems to be some padding or margin on the left and right that I would like to get rid of.

Thank you!