I'm about to implement a slider control component in .NET that's along the lines of a music recording control.
With the timebased equalizer graph, and with the abilities of a regular slider. How to go about this?
Thanks guys - I wasn't very explanatory in my question -- I did find this which I very much like - http://www.codeproject.com/KB/progress/MediaSlider.aspx -- I'll customize it to my needs.
Try the Track Bar Control from DevExpress
http://www.devexpress.com/Products/NET/Controls/WinForms/Editors/editors/TrackBarControl.xml
Related
I've got a WPF UserControl Library in Windows forms and I'm trying to update my camera position and lookdirection when event is triggered, but I want to do it without XAML. Is that even possible?
I have tried with:
userControl.Dispatcher.Invoke(()=>
{
userControl.UpdateCameraPOV();
});
But it's not working.
For doing any 3D work with .NET, the Helix Toolkit is a great help. It includes a view control woth pan/tilt movement, and might be a good start for a view that you can control via code too.
I'm trying to make a custom Slider inside a UWP app, which should look and function somewhat like the scroll in Windows 10 built-in Photos application:
There are two main features which exist in this screenshot, yet I couldn't find a way to implement myself:
All the positions within the same range in the slider/scrollbar, should have the same tooltip value. In the screenshot example, you can see that all photos within a specific range of the slider (between two ticks) show the same tooltip, which is the name of that month.
The gaps between the ticks aren't always the same. In the screenshot example, they rely on the amount of photos taken in each month, relatively to the total amount of photos.
I have found that in WPF, it's quite easy and straight-forward to set custom values for the ticks on a Slider (see here), but in UWP these attributes seem to be gone. Also, couldn't find anything about it in the official docs. I did notice there's a UWP control called TickBar, but couldn't find any examples in order to understand if it's relevant for my question.
Am I missing something, or is it really not possible to achieve such UX without making my own fully-custom UI Control?
It's not a Slider control. If you want to make such a control, you would have to do a lot of customization. You might need to make a UserControl. This UserControl nees some basic UWP controls to make it look like the MS Photos app.
For example, you might need an custom ItemsControl(the StaggeredPanel looks very similar) to manage the layout of pictures in the page, and customize the ScrollBar, use two ItemsControls to show the Year/Month on the right side. You also need some label to show the text when you pointer move on the ScrollBar, the label might be the TextBlock control etc. You also might need some animations.
Anyway, to make such a control, you need a lot of basic knowledge and do a lot of customization. It's complex. You could submit a Feature Request on WPDev UserVoice.
I need to include a colorpicker in a form in a powerpoint custom task pane. I want to be able to show a colorslider which shows the gradient going from 0 to highest saturation of a given color, with a draggable control to select the saturation from the slider (like the one in the ColorDialog form). Is there an existing implementation in the api/easily available alternative?
Check the below links
http://msdn.microsoft.com/en-us/library/ms996423.aspx
http://msdn.microsoft.com/en-us/library/ms996423.aspx#colorpicker_topic3
You can try to create color slider with the help of above links.
http://msdn.microsoft.com/en-us/library/ms996423.aspx
http://msdn.microsoft.com/en-us/library/system.windows.forms.colordialog(v=vs.110).aspx
Also codeplex has probably hundreds of similar controls
I want to display slider like control with Database values, Like below image.
Is there any control available for this? and How can I make this,
Database values will between 1-100. I have no idea from where to start
You can try learning about System.drawing and make your own control, i have done this in the past when i made a custom progress bar, I used this tutorial on YouTube and it might help you as well.
Also with making your own control you can change anything, get creative.
I think you need to use Timeline Chart ,
Here is Google Timeline Chart Example :)
I would like to create an outer glow effect on a UserControl derived class in c# 2.0 (WinForms). Is this (easily) possible?
If yes, please show me how :)
What I mean with "glow effect" is something like this:
Hope this helps http://www.codeproject.com/KB/buttons/VistaButton.aspx
I also rem reading an article where the author draws 2 rectangles over the button (each is covering half from top and bottom) and then when mouse is hover, he does some overlapping logic. I forgot the full logic. Sorry, ill think/search and come back with the answer.
Here are a few tutorials on how to easily achieve halo- and special effects on graphical objects in winforms:
Text Halo Effect
Text Effects
Drawing text with a drop shadow effect