How can i make such alist of checkboxes, that they are left aligned to the button, from where it opens, and provide a opening and closing Animation, like in the Alarm & Clock App in Windows 10? I tried with Popups and Flyouts, but there isnt the same effect.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
It looks that this Control in the Alarm & Clock App is actually expanded from a
ComboBox
control.So we can use a
ComboBox
to do this, for example:To show the selected days on the
ComboBox
is a little complex, we can do this work in the code behind:And the
comboItem
class by my side is like this:Maybe you can find another easier way to convert days to specific string, eventually my method works here.
Update:
Here is the whole modified template style of the
ComboBox
, you can also edit the template by your self.It's just remove the
FontIcon
inside this control and make theTextBlock
's ColumnSpan = 2, and change it's foreground toSystemControlForegroundAccentBrush
. If you want to modify it by your self, you can open the Document OutLine, find this ComboBox, right click on it, then choose Edit Template then Edit a Copy, so you will get the default template ofComboBox
: