Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3362376
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:16:00+00:00 2026-05-18T03:16:00+00:00

I set IsTabStop to False , but Tab still navigates to the expander. Any

  • 0

I set IsTabStop to False, but Tab still navigates to the expander.

Any ideas what am I doing wrong?

<Expander Header="Data" IsTabStop="False">
    <Border Background="White" BorderThickness="0"/>
</Expander>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:16:01+00:00Added an answer on May 18, 2026 at 3:16 am

    It looks like a bug in the Expander template:

    http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/e51ad4f5-95d3-4c3e-be87-7917e4d81fa0/

    Here’s a full workaround (ugly, I know):

    <Window
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     x:Class="WpfApplication1.MainWindow"
     x:Name="Window"
     Title="MainWindow"
     Width="640" Height="480">
     <Window.Resources>
      <Style x:Key="ExpanderRightHeaderStyle" TargetType="{x:Type ToggleButton}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Border Padding="{TemplateBinding Padding}">
           <Grid SnapsToDevicePixels="False" Background="Transparent">
            <Grid.RowDefinitions>
             <RowDefinition Height="19"/>
             <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid>
             <Grid.LayoutTransform>
              <TransformGroup>
               <TransformGroup.Children>
                <TransformCollection>
                 <RotateTransform Angle="-90"/>
                </TransformCollection>
               </TransformGroup.Children>
              </TransformGroup>
             </Grid.LayoutTransform>
             <Ellipse x:Name="circle" Stroke="DarkGray" HorizontalAlignment="Center" VerticalAlignment="Center" Width="19" Height="19"/>
             <Path x:Name="arrow" Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5"/>
            </Grid>
            <ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" VerticalAlignment="Top" SnapsToDevicePixels="True" Grid.Row="1" RecognizesAccessKey="True"/>
           </Grid>
          </Border>
          <ControlTemplate.Triggers>
           <Trigger Property="IsChecked" Value="true">
            <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
           </Trigger>
           <Trigger Property="IsMouseOver" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#222"/>
           </Trigger>
           <Trigger Property="IsPressed" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
            <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
           </Trigger>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="ExpanderUpHeaderStyle" TargetType="{x:Type ToggleButton}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Border Padding="{TemplateBinding Padding}">
           <Grid SnapsToDevicePixels="False" Background="Transparent">
            <Grid.ColumnDefinitions>
             <ColumnDefinition Width="19"/>
             <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid>
             <Grid.LayoutTransform>
              <TransformGroup>
               <TransformGroup.Children>
                <TransformCollection>
                 <RotateTransform Angle="180"/>
                </TransformCollection>
               </TransformGroup.Children>
              </TransformGroup>
             </Grid.LayoutTransform>
             <Ellipse x:Name="circle" Stroke="DarkGray" HorizontalAlignment="Center" VerticalAlignment="Center" Width="19" Height="19"/>
             <Path x:Name="arrow" Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5"/>
            </Grid>
            <ContentPresenter HorizontalAlignment="Left" Margin="4,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True"/>
           </Grid>
          </Border>
          <ControlTemplate.Triggers>
           <Trigger Property="IsChecked" Value="true">
            <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
           </Trigger>
           <Trigger Property="IsMouseOver" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#222"/>
           </Trigger>
           <Trigger Property="IsPressed" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
            <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
           </Trigger>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="ExpanderLeftHeaderStyle" TargetType="{x:Type ToggleButton}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Border Padding="{TemplateBinding Padding}">
           <Grid SnapsToDevicePixels="False" Background="Transparent">
            <Grid.RowDefinitions>
             <RowDefinition Height="19"/>
             <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid>
             <Grid.LayoutTransform>
              <TransformGroup>
               <TransformGroup.Children>
                <TransformCollection>
                 <RotateTransform Angle="90"/>
                </TransformCollection>
               </TransformGroup.Children>
              </TransformGroup>
             </Grid.LayoutTransform>
             <Ellipse x:Name="circle" Stroke="DarkGray" HorizontalAlignment="Center" VerticalAlignment="Center" Width="19" Height="19"/>
             <Path x:Name="arrow" Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5"/>
            </Grid>
            <ContentPresenter HorizontalAlignment="Center" Margin="0,4,0,0" VerticalAlignment="Top" SnapsToDevicePixels="True" Grid.Row="1" RecognizesAccessKey="True"/>
           </Grid>
          </Border>
          <ControlTemplate.Triggers>
           <Trigger Property="IsChecked" Value="true">
            <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
           </Trigger>
           <Trigger Property="IsMouseOver" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#222"/>
           </Trigger>
           <Trigger Property="IsPressed" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
            <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
           </Trigger>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="ExpanderHeaderFocusVisual">
       <Setter Property="Control.Template">
        <Setter.Value>
         <ControlTemplate>
          <Border>
           <Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="0" SnapsToDevicePixels="true"/>
          </Border>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="ExpanderDownHeaderStyle" TargetType="{x:Type ToggleButton}">
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type ToggleButton}">
          <Border Padding="{TemplateBinding Padding}">
           <Grid SnapsToDevicePixels="False" Background="Transparent">
            <Grid.ColumnDefinitions>
             <ColumnDefinition Width="19"/>
             <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Ellipse x:Name="circle" Stroke="DarkGray" HorizontalAlignment="Center" VerticalAlignment="Center" Width="19" Height="19"/>
            <Path x:Name="arrow" Stroke="#666" StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="false" Data="M 1,1.5 L 4.5,5 L 8,1.5"/>
            <ContentPresenter HorizontalAlignment="Left" Margin="4,0,0,0" VerticalAlignment="Center" SnapsToDevicePixels="True" Grid.Column="1" RecognizesAccessKey="True"/>
           </Grid>
          </Border>
          <ControlTemplate.Triggers>
           <Trigger Property="IsChecked" Value="true">
            <Setter Property="Data" TargetName="arrow" Value="M 1,4.5  L 4.5,1  L 8,4.5"/>
           </Trigger>
           <Trigger Property="IsMouseOver" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF3C7FB1"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#222"/>
           </Trigger>
           <Trigger Property="IsPressed" Value="true">
            <Setter Property="Stroke" TargetName="circle" Value="#FF526C7B"/>
            <Setter Property="StrokeThickness" TargetName="circle" Value="1.5"/>
            <Setter Property="Stroke" TargetName="arrow" Value="#FF003366"/>
           </Trigger>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
      <Style x:Key="ExpanderStyle1" TargetType="{x:Type Expander}">
       <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
       <Setter Property="Background" Value="Transparent"/>
       <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
       <Setter Property="VerticalContentAlignment" Value="Stretch"/>
       <Setter Property="BorderBrush" Value="Transparent"/>
       <Setter Property="BorderThickness" Value="1"/>
       <Setter Property="Template">
        <Setter.Value>
         <ControlTemplate TargetType="{x:Type Expander}">
          <Border SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
           <DockPanel>
            <ToggleButton x:Name="HeaderSite" Focusable="{TemplateBinding Focusable}" FocusVisualStyle="{StaticResource ExpanderHeaderFocusVisual}" Margin="1" MinHeight="0" MinWidth="0" Style="{StaticResource ExpanderDownHeaderStyle}" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}" FontFamily="{TemplateBinding FontFamily}" FontSize="{TemplateBinding FontSize}" FontStretch="{TemplateBinding FontStretch}" FontStyle="{TemplateBinding FontStyle}" FontWeight="{TemplateBinding FontWeight}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" IsChecked="{Binding IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" DockPanel.Dock="Top"/>
            <ContentPresenter x:Name="ExpandSite" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Focusable="false" Visibility="Collapsed" DockPanel.Dock="Bottom"/>
           </DockPanel>
          </Border>
          <ControlTemplate.Triggers>
           <Trigger Property="IsExpanded" Value="true">
            <Setter Property="Visibility" TargetName="ExpandSite" Value="Visible"/>
           </Trigger>
           <Trigger Property="ExpandDirection" Value="Right">
            <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Right"/>
            <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Left"/>
            <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderRightHeaderStyle}"/>
           </Trigger>
           <Trigger Property="ExpandDirection" Value="Up">
            <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Top"/>
            <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Bottom"/>
            <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderUpHeaderStyle}"/>
           </Trigger>
           <Trigger Property="ExpandDirection" Value="Left">
            <Setter Property="DockPanel.Dock" TargetName="ExpandSite" Value="Left"/>
            <Setter Property="DockPanel.Dock" TargetName="HeaderSite" Value="Right"/>
            <Setter Property="Style" TargetName="HeaderSite" Value="{StaticResource ExpanderLeftHeaderStyle}"/>
           </Trigger>
           <Trigger Property="IsEnabled" Value="false">
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
           </Trigger>
          </ControlTemplate.Triggers>
         </ControlTemplate>
        </Setter.Value>
       </Setter>
      </Style>
     </Window.Resources>
    
     <Grid x:Name="LayoutRoot">
      <Expander Focusable="False" Margin="68,81,293,0" VerticalAlignment="Top" Height="77" Header="Expander" Style="{DynamicResource ExpanderStyle1}">
       <Grid/>
      </Expander>
     </Grid>
    </Window>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I set IsTabStop to false on a text box and I know that this
I set my JButton with this properties: - borderPainted to false - contentAreaFilled to
Set oXMLHttp=Server.CreateObject(MSXML2.XMLHTTP) On Error Resume Next oXMLHttp.open GET, http://xxxxxx.com,False oXMLHttp.setRequestHeader Content-Type, application/x-www-form-urlencoded oXMLHttp.send() x
set visible = true then message box show it is false delegate void LoadLastDeptSettingDelegate(String
//Set Parent ID for the rest of the Reports data sources this.ReportDataSources.ToList().ForEach(rds => rds.Parent
I set a passphrase when creating a new SSH key on my laptop. But,
I set up error-page in zk.xml, but it throws IllegalStateException in Jboss: java.lang.IllegalStateException: Cannot
Set objNoFormCheckXMLDOM = CreateObject(Microsoft.XMLDOM) objNoFormCheckXMLDOM.async = false objNoFormCheckXMLDOM.setProperty SelectionLanguage, XPath objNoFormCheckXMLDOM.LoadXML(strHtmlResponse) Set nlForms =
Set an object, with some data. var blah = {}; blah._a = {}; blah._a._something
I am trying to tab through a datagrid, but at the end of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.