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

  • Home
  • SEARCH
  • 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 3390618
In Process

The Archive Base Latest Questions

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

I am trying to model the layout that is displayed in this image .

  • 0

I am trying to model the layout that is displayed in this image.

If you take a look, it has a number of textBoxes/checkboxes/buttons, a couple of diagonal controls, and another separate control (in a red outline).

The bottom screenshot shows what I would like to happen when a checkbox is checked in that separate control.

Any tips on how to lay this out and handle those diagonal portions? I tried just rotating textBlocks with borders but then the borders remain as rectangular, not cut off as in the image. I also had some trouble with getting them to position properly. I would also need the width of those diagonal sections to be bound somehow to the checkbox/textBox portion of that separate control in the red border.

Is my only choice to rotate borderless textBlocks and draw the lines myself using Paths and for the width expanding, bind it to some property of my separate control?

Thanks for any advice.

  • 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:42:46+00:00Added an answer on May 18, 2026 at 3:42 am

    This looked like a fun challenge. Give the following XAML a try. It will automatically adjust the size of the columns as the content expands. The key is placing some canvas elements in a grid to allow the lines of the borders to flow into the adjacent cells. This could certainly be cleaned up with some styles and will be a little fragile if you need to tweak the sizes, but I think it demonstrates the approach:

    alt text

    <Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="ButtonStyleTestApp.MainWindow"
    x:Name="Window"
    Title="MainWindow"
    Width="640" Height="480">   
    
    <Grid x:Name="LayoutRoot" Background="#FF44494D" SnapsToDevicePixels="True">
        <Grid.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
        </Grid.Resources>
    
        <Grid Background="#DDD">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition MinWidth="30" Width="Auto"/>
                <ColumnDefinition MinWidth="30" Width="Auto"/>
                <ColumnDefinition MinWidth="30" Width="Auto"/>
                <ColumnDefinition MinWidth="30" Width="Auto"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="60"/>
                <RowDefinition Height="30"/> 
            </Grid.RowDefinitions>
    
            <Border BorderThickness="1 1 0 1" BorderBrush="#888" Grid.Column="0" Grid.Row="1">
                <TextBox Margin="10 5" VerticalAlignment="Center"/>         
            </Border>
    
            <Border BorderThickness="1 1 0 1" BorderBrush="#888" Grid.Column="1" Grid.Row="1">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <CheckBox x:Name="CheckBox1" Margin="5" VerticalAlignment="Center"></CheckBox>
                    <TextBox Visibility="{Binding IsChecked, ElementName=CheckBox1, Converter={StaticResource BooleanToVisibilityConverter}}" Width="100" Margin="5" VerticalAlignment="Center"/>
                </StackPanel>               
            </Border>
    
            <Border BorderThickness="1 1 0 1" BorderBrush="#888" Grid.Column="2" Grid.Row="1">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <CheckBox x:Name="CheckBox2" Margin="5" VerticalAlignment="Center"></CheckBox>
                    <TextBox Visibility="{Binding IsChecked, ElementName=CheckBox2, Converter={StaticResource BooleanToVisibilityConverter}}" Width="100" Margin="5" VerticalAlignment="Center"/>
                </StackPanel>               
            </Border>
    
            <Border BorderThickness="1 1 0 1" BorderBrush="#888" Grid.Column="3" Grid.Row="1">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                    <CheckBox x:Name="CheckBox3" Margin="5" VerticalAlignment="Center"></CheckBox>
                    <TextBox Visibility="{Binding IsChecked, ElementName=CheckBox3, Converter={StaticResource BooleanToVisibilityConverter}}" Width="100" Margin="5" VerticalAlignment="Center"/>
                </StackPanel>               
            </Border>
    
            <Border BorderThickness="1" BorderBrush="#888" Grid.Column="4" Grid.Row="1">
                <Button Margin="3" FontSize="10" VerticalAlignment="Center" Width="40">Click</Button>           
            </Border>           
    
            <Canvas Grid.Column="1">
                <Grid ClipToBounds="False" Canvas.Top="30">
                    <Border 
                    BorderBrush="#888" 
                    BorderThickness="0 1 0 0" 
                    RenderTransformOrigin="0 0" 
                    Height="20"
                    Width="100" 
                    Margin="0 0 0 -80">
                    <Border.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="-45"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Border.RenderTransform>
                <TextBlock VerticalAlignment="Center" TextAlignment="Left" Margin="21 1 1 1" FontSize="11">
                    Testing 1
                </TextBlock>
            </Border>
            </Grid>
            </Canvas>
    
            <Canvas Grid.Column="2">
                <Grid ClipToBounds="False" Canvas.Top="30">
                    <Border 
                    BorderBrush="#666" 
                    BorderThickness="0 1 0 0" 
                    RenderTransformOrigin="0 0" 
                    Height="20"
                    Width="100" 
                    Margin="0 0 0 -80">
                    <Border.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="-45"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Border.RenderTransform>
                <TextBlock VerticalAlignment="Center" TextAlignment="Left" Margin="21 1 1 1" FontSize="11">
                    Testing 2
                </TextBlock>
            </Border>
            </Grid>
            </Canvas>
    
            <Canvas Grid.Column="3">
                <Grid ClipToBounds="False" Canvas.Top="30">
                    <Border 
                    BorderBrush="#666" 
                    BorderThickness="0 1 0 0" 
                    RenderTransformOrigin="0 0" 
                    Height="20"
                    Width="100" 
                    Margin="0 0 0 -80">
                    <Border.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="-45"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Border.RenderTransform>
                <TextBlock VerticalAlignment="Center" TextAlignment="Left" Margin="21 1 1 1" FontSize="11">
                    Testing 3
                </TextBlock>
            </Border>
            </Grid>
            </Canvas>
    
            <Canvas Grid.Column="4">
                <Grid ClipToBounds="False" Canvas.Top="30">
                    <Border 
                    BorderBrush="#666" 
                    BorderThickness="0 1 0 0" 
                    RenderTransformOrigin="0 0" 
                    Height="20"
                    Width="100" 
                    Margin="0 0 0 -80">
                    <Border.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="-45"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Border.RenderTransform>
            </Border>
            </Grid>
            </Canvas>           
        </Grid>     
    </Grid>
    </Window>
    

    I hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to design a data model that denotes one user being the friend
I'm trying to make an application that keeps an object model in sync with
Relatively new to rails and trying to model a very simple family tree with
I'm trying to design a model for a application allowing 2 people to bet
I am trying to render a model in Direct3D using DrawIndexedPrimitives . However, I
I am trying to design an object model (for C#), and can't work out
Right now I am trying to call my model, and spit out its results
I am trying to figure out the best way to model a spreadsheet (from
I am trying to work out the best database model for the current setup:
I'm trying to find the actual class of a django-model object, when using model-inheritance.

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.