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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:48:39+00:00 2026-05-30T00:48:39+00:00

I am designing a usercontrol which acts as a drawer which I want to

  • 0

I am designing a usercontrol which acts as a drawer which I want to “slide out” from behind a border. I have set up the two states: “DrawerOpen” and “DrawerClosed” in the usercontrol itself and want the button visible in the mainwindow of my UI to open/close this drawer. These two mutually exclusive states are in the same Visual State Group.

I have added the “GoToStateAction” to the button in the usercontrol (which houses several other controls and visual state groups). The state “DrawerOpen” simply consists of a margin change that brings the usercontrol fully into view. I believe everything is set up correctly, but can’t for the life of me figure out why clicking the button simply won’t change the state as it is defined to do in the properties of the GoToStateAction.

Does anyone have any idea why the usercontrol state is not responding to the button click? I am receiving no error message.

There also doesn’t seem to be any problem with the z-order, and the button does “Click” when selected at runtime.

Thank you!
Rachael

UPDATE
Just wanted to mention that I do believe the issue is that I need to be able to “focus” (for lack of a more precise word) on the controls and change of state behaviors within the usercontrol. Not sure if that helps any.

  • 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-30T00:48:43+00:00Added an answer on May 30, 2026 at 12:48 am

    I actually ending up solving my issue, thank you for responding. What I did was use a toggle button to set up the boolean states of Open and Closed where “checked” corresponds to the “Open” State. It has a nice clean effect as the usercontrol is controlled by one of its own buttons, rather than a button on some layout manager of the mainwindow. It only properly runs once, however…don’t know why yet…

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

Sidebar

Related Questions

I have a class called BIFUserControl which inherits from UserControl class. Now I am
I'm designing a simple expander control. I've derived from UserControl, drawn inner controls, built,
I am currently designing a user control which will have other controls contained within
I have a Panel I want to fill with some UserControl(s) at runtime. These
I am designing a silverlight application in which i have a image control in
I have an existing WinForms application for which I'm now designing new bits in
I want to make my usercontrol with yellow background while designing. After design it
I'm designing a spline editor which is composed of two parts (usercontrols) The left
When designing a C API for configuring a library/utility, I have a co-worker who
Im designing my school's website and I kind of want to do like a

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.