Slider with custom ticks (labels and pace)
up vote
1
down vote
favorite
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?
c# xaml uwp win-universal-app uwp-xaml
add a comment |
up vote
1
down vote
favorite
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?
c# xaml uwp win-universal-app uwp-xaml
@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 at 9:36
1
Questions should not include tags in the title.
– Uwe Keim
Nov 10 at 13:13
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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?
c# xaml uwp win-universal-app uwp-xaml
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?
c# xaml uwp win-universal-app uwp-xaml
c# xaml uwp win-universal-app uwp-xaml
edited Nov 8 at 12:46
Uwe Keim
27.2k30126209
27.2k30126209
asked Nov 8 at 10:27
Yoav Feuerstein
8702836
8702836
@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 at 9:36
1
Questions should not include tags in the title.
– Uwe Keim
Nov 10 at 13:13
add a comment |
@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 at 9:36
1
Questions should not include tags in the title.
– Uwe Keim
Nov 10 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 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 at 9:36
1
1
Questions should not include tags in the title.
– Uwe Keim
Nov 10 at 13:13
Questions should not include tags in the title.
– Uwe Keim
Nov 10 at 13:13
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
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.
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
yesterday
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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.
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
yesterday
add a comment |
up vote
0
down vote
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.
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
yesterday
add a comment |
up vote
0
down vote
up vote
0
down vote
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.
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.
answered yesterday
Xavier Xie - MSFT
4,4161315
4,4161315
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
yesterday
add a comment |
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
yesterday
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
yesterday
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
yesterday
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
@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 at 9:36
1
Questions should not include tags in the title.
– Uwe Keim
Nov 10 at 13:13