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 6808867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:00:32+00:00 2026-05-26T20:00:32+00:00

Is there a control I can use to make navigation/selection like the one under

  • 0

Is there a control I can use to make navigation/selection like the one under Outlook Options (left “menu”) in WPF? Or do I need to restyle a tabcontrol or something like that, and if so, is there an example out there to make it look like Outlook Options?

  • 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-26T20:00:33+00:00Added an answer on May 26, 2026 at 8:00 pm

    I ended up restyling a ListBox, here is the code:

        <Grid x:Name="layoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
    
        <ListBox>
            <ListBox.Resources>
                <LinearGradientBrush x:Key="MouseOverBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFFFFFFF" Offset="0" />
                    <GradientStop Color="#FFFEF3B5" Offset="0.318" />
                    <GradientStop Color="#FFFFEB70" Offset="0.488" />
                    <GradientStop Color="#FFFFE48A" Offset="0.502" />
                    <GradientStop Color="#FFFFD932" Offset="0.834" />
                    <GradientStop Color="#FFFFF48B" Offset="1" />
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="MouseOverBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFEEE8CF" Offset="0" />
                    <GradientStop Color="#FFC4AF8C" Offset="0.536" />
                    <GradientStop Color="#FFDCD1BF" Offset="1" />
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="PressedBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFC3BCAE" Offset="0" />
                    <GradientStop Color="#FFFFE48A" Offset="0.046" />
                    <GradientStop Color="#FFFFE48A" Offset="0.452" />
                    <GradientStop Color="#FFFFE48A" Offset="0.461" />
                    <GradientStop Color="#FFFFD932" Offset="0.724" />
                    <GradientStop Color="#FFFFF48B" Offset="1" />
                </LinearGradientBrush>
                <LinearGradientBrush x:Key="PressedBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFC2762B" Offset="0" />
                    <GradientStop Color="#FFC29E47" Offset="1" />
                </LinearGradientBrush>
    
                <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />
    
                <Style TargetType="{x:Type ListBox}">
                    <Setter Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}"/>
                    <Setter Property="Padding" Value="1"/>
                </Style>
    
                <Style TargetType="ListBoxItem">
                    <Setter Property="FocusVisualStyle" Value="{x:Null}" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="ListBoxItem">
                                <Border x:Name="OuterBorder" Margin="1" BorderThickness="1" CornerRadius="3" BorderBrush="Transparent" Background="Transparent">
                                    <Border x:Name="InnerBorder" BorderThickness="1" CornerRadius="2" BorderBrush="Transparent" Background="Transparent">
                                        <ContentPresenter x:Name="Content" Margin="10,3,10,3" />
                                    </Border>
                                </Border>
    
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsEnabled" Value="False">
                                        <Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
                                    </Trigger>
                                    <Trigger Property="IsMouseOver" Value="True">
                                        <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource MouseOverBorderBrush}" />
                                        <Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource MouseOverBrush}" />
                                    </Trigger>
                                    <MultiTrigger>
                                        <MultiTrigger.Conditions>
                                            <Condition Property="IsSelected" Value="True" />
                                            <Condition Property="IsMouseOver" Value="False" />
                                        </MultiTrigger.Conditions>
                                        <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" />
                                        <Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource PressedBrush}" />
                                    </MultiTrigger>
                                    <MultiTrigger>
                                        <MultiTrigger.Conditions>
                                            <Condition Property="IsSelected" Value="True" />
                                            <Condition Property="IsMouseOver" Value="True" />
                                        </MultiTrigger.Conditions>
                                        <Setter TargetName="OuterBorder" Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" />
                                        <Setter TargetName="OuterBorder" Property="Background" Value="{DynamicResource PressedBrush}" />
                                    </MultiTrigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ListBox.Resources>
    
            <ListBoxItem IsSelected="True">Item 1</ListBoxItem>
            <ListBoxItem>Item 2</ListBoxItem>
            <ListBoxItem>Itme 3</ListBoxItem>
            <ListBoxItem>Item 4</ListBoxItem>
            <ListBoxItem>Item 5</ListBoxItem>
            <ListBoxItem IsEnabled="False">
                <Separator Margin="-5,0,-5,0" />
            </ListBoxItem>
            <ListBoxItem>Item 6</ListBoxItem>
            <ListBoxItem IsEnabled="False">Item 7</ListBoxItem>
            <ListBoxItem>Item 8</ListBoxItem>
            <ListBoxItem>Item 9</ListBoxItem>
        </ListBox>
    
        <Border Grid.Column="2" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}" BorderThickness="1">
            <Grid></Grid>
        </Border>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a control like System.Windows.Controls.GroupBox that can hide its contents and show only
does anybody know how to make a numericupdown control for asp. There's one for
Is there a way I can control columns from code. I had a drop
Since there is apparently no Flash control that can accept bitmap pastes , I
Is there any free ajax uploading control which can give black-screen on the page
We need a user control that can show Microsoft Office files (Word, Excel..). There
Can I control the order static objects are being destructed? Is there any way
how can i control swf background transparency in vb.net.........either with flash.ocx or if there
Is there a way that I can have a server control MyControl<T> so that
There are other posts that say you can create a control in windows forms

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.