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.
Related
At the start - i'm starting with windows forms/making desktop applications.
So, I'm moving my program from javascript to c# - desktop app, with full user interface and etc. and I have 2 questions:
I added textbox, and checkbox, it looks good until I highlight the text or it also looks good only if the background behind the app is white in every other case it looks like that, here the image :
How can i fix that?
2nd question:
I had the issue with the texboxes - the borders were invisible and when i clicked them windows was focusing on the app behind my program. I fixed it with changing border from "fixed3D" to "fixedSingle", I also had the same issue with the listbox (under the texboxes) also changed the border to "fixedSingle", but it's loosing now focus when i click the text inside this. How can i solve that? + maybe make the program to not hightlight the text on click in listbox? - it looks better without it
I am new with kinect V2, windows 10. I have couple of wpf buttons at the bottom on a wpf page and i want to drag each button one by one to the central area of the canvas and drop it. This should trigger the event for that button and it should navigate to a new page. How do i implement that. I have already written a code to perform simple drag and drop of those buttons. I want to know how to specify the central area (Which would look like a rectangle )in my C# code where i could drop these buttons, which would trigger the respective button event.
I have a function private void OnManipulationCompleted in my DragDropElementController.cs .How do I specify in this different page navigation for 3 different buttons to be dragged and dropped in a different xaml page
Help me with this!
I am trying to create a button with two images on it. One at left side and one at right side and text in center. After searching I got a button with image only so I wanted to know if it is posible to create a button as I described above in xamarin?
I am trying to create button like this and also I want to change arrow image on the button click to up arrow and down arrow. Is it posible in xamarin to create button like this or should I think about another option any idea?
You can't directly do this with the Button from Xamarin Forms as it doesn't support images yet.
From your requirement what you can do is create a horizontal stacklayout and add the images and a label to it. Also set a background color so that it would look like a button.
To make it work like a button, add a Gesture recognizer to the stack layout and add the tap gesture.
You can handle the event for tapping or bind it via command if you are using MVVM.
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
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.