C# Dropdown Slide Form - c#

Is there any built-in control like a dropdown/slider? For instance, I want to display some info on dialog/control/form and inside that form there is a arrow which expands it to show more information?
alt text http://img227.imageshack.us/img227/4945/73068794.jpg
When I click the black arrow, the form should expand vertically to show more info. That's what I want to achieve. If there isn't any built-in control, can you please tell me what do I need to do to implement it myself? And how can I add a little animation when it is expanding?
Like here (when you click the menu header it doesn't expand/contract instantly rather it does little slowly, that's the kind of animation I would like to add)

This CodeProject article should help you get started.

Related

How to move the control/UI elements along with the keyboard in UWP

I'm wondering if there any solution that could make the app automatically adjust the controls position when the keyboard is activated. For example, in the image below, I want to make those four button on the screen move dependently with keyboard. When the keyboard is activated, buttons move to the center and move back when the keyboard is gone.
There might be some similar questions here but I couldnt see them in the search result, maybe they are using some different words on title so if this question is duplicated it will be appreciated if you guys could paste the link on comment or whereever.
The idea is you can listen to the Showing and Hiding event of the InputPane. In the event handler, you adjust your UI layout with respect to the keyboard.
For example, you can realign the button relative to the height of the keyboard.
For more information on InputPane, refer to https://msdn.microsoft.com/EN-US/library/windows/apps/windows.ui.viewmanagement.inputpane.aspx
For dynamically align the UI layout example, refer to
https://code.msdn.microsoft.com/windowsapps/Keyboard-Events-Sample-866ba41c

How to change the z-index in c#?

I have a rich text box that covers the entire form. Under that text box, I have a button, the problem is I need that button to be on top of the text box, so that I can click it. I did some research, and I think I have to change the z-index of the button, but I don't know how to change that. Any help would be great, thanks.
Right Click on the Text Box and click Send to back. Or alternatively, focus the button and click Bring to front.
Have a look at Introduction to Visual Studio .NET and more specifically at
Table 9. Order options under the Format menu
I might however recomend that you rather look at using SplitContainer Class.
Represents a control consisting of a movable bar that divides a
container's display area into two resizable panels.
Have a look at Windows Forms Controls Lesson 8: How to use the SplitContainer control

Multi layer button / ring button

I need to create custom button. This will be circle with rings, each ring is separate button. Button text will be displayed on rings. Bellow you can find image how button will looks.
http://imageshack.us/photo/my-images/90/ringbutton.png
I would like to know if it is possible to create this kind of button using VS and WPF.
Do I need third party libraries?
Any examples of similar buttons?
As I written before I had put different size circle buttons one over another and is working like dream. But still I can't display some text on created "rings".
I had use path to display text on rings but is complicated (for me) and text cover button so I can't click where text is.
Any ideas?
You could just put the image on your form and implement a Click() event. It's really not that different from a "real" button.

show little message on hover over an image button on ASP.NET?

I'm developing a system which uses a lot of image buttons for redirections...
However, I want the buttons to show a little mesage whenever you put the cursor over the button...
Example, when you hover the cursor over the button which redirects you to Schedule, a little message that says "Schedule" appears. That way, the user may not recognize the picture, but when he hovers over the button, he will know where will he be redirected...
Hope you can help me
You can use ToolTip property associated with your image (System.Web.UI.WebControls.Image)
Link : http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webcontrol.tooltip

A ticker bar in WPF

I am thinking of ways to display data and what I had in mind was a sort of ticker, that users can switch between items on.
ie.
< Some text here... >
Where if the user clicks the left button, an animation causes the text to slide left and some new text to appear from the right. Likewise for clicking the right button.
Are there any existing WPF controls that would do this (I am quite new to WPF)? If not, how difficult would it be to make manually? I imagine I would need to use a storyboard to make the animation?
Thanks
Sounds like You are talking about a Carousel control. It's not hard to make your own with a use of a ItemsControl, or ListBox where you slide the selected items into the view. There are some controls out there including one made by Telerik. Here're a couple of links to get you started, but just google "WPF Carousel"
http://wpfcarousel.codeplex.com/
http://www.telerik.com/products/wpf/carousel.aspx

Categories