Solved

How to create custom picker control in c# Windows 8.1

Posted on 2015-01-21
4
181 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 29

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 29

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Mouse freeze on PC 10 52
How can I use this extension method? 8 36
Create XML 5 34
c# if statement weird reaction 3 30
With Windows evolving further, the built-in protective mechanisms get better and better. Still, Microsoft is not very good at introducing those to the technical community. This article is about a new bitlocker functionality that could revolutionize …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now