Slider with custom ticks (labels and pace)












1














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:



example screenshot from Windows 10 Photos app



There are two main features which exist in this screenshot, yet I couldn't find a way to implement myself:




  1. 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.


  2. 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?










share|improve this question
























  • @uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
    – Yoav Feuerstein
    Nov 10 '18 at 9:36






  • 1




    Questions should not include tags in the title.
    – Uwe Keim
    Nov 10 '18 at 13:13
















1














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:



example screenshot from Windows 10 Photos app



There are two main features which exist in this screenshot, yet I couldn't find a way to implement myself:




  1. 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.


  2. 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?










share|improve this question
























  • @uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
    – Yoav Feuerstein
    Nov 10 '18 at 9:36






  • 1




    Questions should not include tags in the title.
    – Uwe Keim
    Nov 10 '18 at 13:13














1












1








1







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:



example screenshot from Windows 10 Photos app



There are two main features which exist in this screenshot, yet I couldn't find a way to implement myself:




  1. 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.


  2. 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?










share|improve this question















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:



example screenshot from Windows 10 Photos app



There are two main features which exist in this screenshot, yet I couldn't find a way to implement myself:




  1. 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.


  2. 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?







c# xaml uwp win-universal-app uwp-xaml






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 8 '18 at 12:46









Uwe Keim

27.4k31128210




27.4k31128210










asked Nov 8 '18 at 10:27









Yoav Feuerstein

8952837




8952837












  • @uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
    – Yoav Feuerstein
    Nov 10 '18 at 9:36






  • 1




    Questions should not include tags in the title.
    – Uwe Keim
    Nov 10 '18 at 13:13


















  • @uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
    – Yoav Feuerstein
    Nov 10 '18 at 9:36






  • 1




    Questions should not include tags in the title.
    – Uwe Keim
    Nov 10 '18 at 13:13
















@uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
– Yoav Feuerstein
Nov 10 '18 at 9:36




@uwe-keim why remove the UWP from the title? it's an important part of the question, I'm not it's clear enough just from the tags.
– Yoav Feuerstein
Nov 10 '18 at 9:36




1




1




Questions should not include tags in the title.
– Uwe Keim
Nov 10 '18 at 13:13




Questions should not include tags in the title.
– Uwe Keim
Nov 10 '18 at 13:13












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer





















  • Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
    – Yoav Feuerstein
    Nov 13 '18 at 7:11











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205818%2fslider-with-custom-ticks-labels-and-pace%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














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.






share|improve this answer





















  • Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
    – Yoav Feuerstein
    Nov 13 '18 at 7:11
















0














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.






share|improve this answer





















  • Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
    – Yoav Feuerstein
    Nov 13 '18 at 7:11














0












0








0






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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 3:11









Xavier Xie - MSFT

4,9261315




4,9261315












  • Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
    – Yoav Feuerstein
    Nov 13 '18 at 7:11


















  • Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
    – Yoav Feuerstein
    Nov 13 '18 at 7:11
















Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
– Yoav Feuerstein
Nov 13 '18 at 7:11




Thanks for the detailed answer. Of course I could make my own customization which might turn out to be complex, I just wanted to see if there's an existing UI control or some other way around this, whether official or not :)
– Yoav Feuerstein
Nov 13 '18 at 7:11


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205818%2fslider-with-custom-ticks-labels-and-pace%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python