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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:50:09+00:00 2026-06-04T21:50:09+00:00

In the Windows 7 UX Guide under the section on group boxes , there

  • 0

In the Windows 7 UX Guide under the section on group boxes, there are recommendations to move away from group boxes (under certain conditions) and use separator lines. A sample is given for such a separator and I’ve included a screenshot below. I have two questions. Is there a WPF headered control that implements this UX recommendation so that all apps look consistent? If not, where the text says “You can implement a separator with an etched rectangle…” what do they mean? I know how to draw a rectangle but don’t see an “etched” effect or property for it.

There is a separator control which would seem like the logical thing to use but it appears to be thinner than the examples and doesn’t allow a header or adding etch effects. I realize I can create my own control but given how basic a control this is I wanted to know if there was a canonical approach to take.

enter image description here

  • 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-06-04T21:50:11+00:00Added an answer on June 4, 2026 at 9:50 pm

    Etching is really just a graphic design technique used by using colors that contrast in a certain way.

    The screenshot you posted is actually two horizontal lines of 1 pixel each. The top line is darker than the bottom one. And they both contrast the white background to provide a visual effect. You can easily replicate this by using two horizontal lines.

    <Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        x:Class="TestingWPF.TestWindow"
        d:DesignWidth="477" d:DesignHeight="214">
        <Window.Resources>
            <Style x:Key="LineGroupBox" TargetType="{x:Type HeaderedContentControl}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type HeaderedContentControl}">
                            <StackPanel>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <ContentPresenter ContentSource="Header" Margin="5 0 5 0"/>
                                    <Canvas Name="canvas" Grid.Column="1" Height="10">
                                        <Line X1="0" Y1="5" X2="{Binding ElementName=canvas, Path=ActualWidth}" Y2="5" Stroke="#FFACACAC" />
                                        <Line X1="0" Y1="6" X2="{Binding ElementName=canvas, Path=ActualWidth}" Y2="6" Stroke="#FFCBCBCB" />
                                    </Canvas>
                                </Grid>
                                <Grid>
                                    <Rectangle Fill="{TemplateBinding Background}"/>
                                    <ContentPresenter ContentSource="Content" Margin="{TemplateBinding Property=Padding}"/>
                                </Grid>
                            </StackPanel>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Window.Resources>
    
        <StackPanel Margin="5">
            <HeaderedContentControl Style="{StaticResource LineGroupBox}" Header="Header 1" Padding="5">
                <TextBlock>This is some content.</TextBlock>
            </HeaderedContentControl>
    
            <HeaderedContentControl Style="{StaticResource LineGroupBox}" Header="Header 2" Padding="5">
                <TextBlock>This is some content.</TextBlock>
            </HeaderedContentControl>
        </StackPanel>
    </Window>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used this guide to rebuild the boost library in VC++6 under windows XP.
Is there a manual for cross-compiling a C++ application from Linux to Windows? Just
In Windows Workflow Foundation under .NET 4.0, is there a way to correlate operations
I ready in the book The Definitive Guide to Windows Installer (Phil Wilson -
I'm trying to compile beej's guide to network programming examples, but Windows XP doesn't
It's been a while since I've installed PHP for Windows, but every guide I've
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html I am following this as a guide to install subversion. The tutorial at
Windows provides only GetTickCount up to Windows Vista and starting from that OS also
Using this tutorial at this section 4.5 : http://www.vogella.de/articles/Android/article.html#first_uiproperties as a guide, I attempt
Following the guide from Microsoft, http://msdn.microsoft.com/en-us/library/ee872121(VS.85).aspx , I am able to get my program

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.