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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:02:49+00:00 2026-05-20T14:02:49+00:00

I am currently working on an application with an interface that consists of a

  • 0

I am currently working on an application with an interface that consists of a number of buttons that represent an action, only one action can be assigned to each record in the database. When the user selects an action they get an optional entry which consists of a choice from 3 more buttons.

One way to do this is to define 3 extra buttons in the correct position for every action button (7×3) and only show the set based on the action button clicked. However the button values of these are the same for each action so it would make sense if these could be defined once then shown in the appropriate position relative to the action button once clicked.

Is there a way to do this in WPF?

  • 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-20T14:02:49+00:00Added an answer on May 20, 2026 at 2:02 pm

    There are many ways of doing this in WPF. I think the simplest will be to use a Grid control, something like:

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            ......
        </Grid.RowDefinitions>
    
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
    
        <Button Grid.Row="0" Grid.Column="0">Button 1</Button>
        <Button Grid.Row="1" Grid.Column="0">Button 2</Button>
        <Button Grid.Row="2" Grid.Column="0">Button 3</Button>
        ......
    
        <StackPanel Name="PanelWithSuboptions" Grid.Column="1" Visibility="Collapsed">
            <Button>Suboption A</Button>
            <Button>Suboption B</Button>
            <Button>Suboption C</Button>
        </StackPanel>
    </Grid>
    

    Now when clicking the Button 1, Button 2 or Button 3, set PanelWithSuboptions’ [Grid.Row][1] attached property to 0, 1 respectively 2, and its Visibility to Visible, and they appear near the proper ‘main’ button.

    Other ways would be to make a UserControl or to use a custom control template for each of the main buttons that includes the other 3 small buttons.

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

Sidebar

Related Questions

Thanks in advance. Currently working on an application for university that consists of a
Am currently working on an application that requires users to submit posts and comments
I'm currently working in an application that has to navigate a webpage and recollect
I am currently working on an application that has different permissions/users for the local
I'm currently working on an application that allows people to schedule Shows for an
I am currently working on an application that allows reverse geocoding using silverlight +
I am currently working on an application that uses a TableViewer in several places
I am currently working on an application that will retrieve other users' locations based
I am working on an WPF application that uses a BusinessLogic layer (currently a
I'm currently working on a web application that might need to push information to

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.