Solved

How to create custom picker control in c# Windows 8.1

Posted on 2015-01-21
4
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…

626 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