Solved

How to create custom picker control in c# Windows 8.1

Posted on 2015-01-21
4
192 Views
Last Modified: 2015-01-26
I want to create a picker (for Desktop and phone if possible), that has 6 selections (rather then three like the DatePicker). Can this be done? I am fairly new to C#. Does it have to be made from scratch, or can something be copied and modified? I see examples of modifying existing pickers, but not adding to, or creating a new\larger version. Can the User Control template be used to do this?  Is there is an example of creating a whole new picker control that is not a variation of the date\time\color selection controls.   I am thinking that because I can find nothing other than a date\time\color picker, that this cannot be done.  Should I be considering scrolling combo box's?
0
Comment
Question by:eelou
  • 2
  • 2
4 Comments
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 40563055
I'd say you need a what is called "composite" custom control.  
And in your case, I believe, you need to write it from a scratch.
Try to follow steps in MSDN guidelines:

https://msdn.microsoft.com/en-us/library/vstudio/6hws6h2t(v=vs.100).aspx

https://msdn.microsoft.com/en-us/library/vstudio/5t70dw29(v=vs.100).aspx
0
 

Author Comment

by:eelou
ID: 40565596
That's a bit much for a newbie.  Looks like I will put combobox's next to each other.
0
 
LVL 30

Accepted Solution

by:
anarki_jimbel earned 500 total points
ID: 40565712
Yes, I agree: writing custom controls might be a bit challenging exercise, but it depends on a specific task...

Have a look at this example:
https://msdn.microsoft.com/en-us/library/vstudio/a6h7e207(v=vs.100).aspx

Or try goggling other tutorials and examples.
0
 

Author Comment

by:eelou
ID: 40571118
This might be the way to go, and eventually I might try it.  For now, I am closing this question, as no one else has come up with anything else.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linq, c# 8 31
VS2010 Build fails to install 14 75
Unlocking a column in excel using C# 17 26
I need help setting tabindex to textboxes in my MVC.Net application 3 23
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question