I'm looking for a way to edit the DatePickerFlyoutPresenter scroll box style. I want to change the text to white the arrow buttons and change the pointover colors but cant seem to find it. could it be useing flipview style? I am using xaml/C#
相关问题
- How to stylize text in an alert box? [duplicate]
- WPF Binding from System.Windows.SystemParameters.P
- Xamarin. The name 'authorEntry does not exist
- XAML: Applying styles to nested controls
- XAML: Applying styles to nested controls
相关文章
- WPF MVVMLight:在ViewModel中,开子线程为ObservableCollectio
- 关于ItemsControl的绑定问题
- How to create a MediaClip from RenderTargetBitmap
- XAML ComboBox SelectionChanged Fires OnLoad
- Show flyout using BottomAppBar
- Woocommerce update shipping methods in checkout vi
- Why does my ScrollViewer destroy my Grid Layout? W
- Can I add/subtract value that is bound to an eleme
From the Live Visual Tree of Visual Studio, we can find
DatePickerFlyoutPresenter
useLoopingSelector
in it.So to change the color of the text in arrow button, we can change the template of
Windows.UI.Xaml.Controls.Primitives.LoopingSelector
, and we can find it in generic.xaml which typical inOR
This location depends on the Windows 10 SDK you've installed.
The default style for
Windows.UI.Xaml.Controls.Primitives.LoopingSelector
is following:To change the text to white, we can add
Foreground="White"
inRepeatButton
like:Changing the pointer over colors is similar. We can change the template of
Windows.UI.Xaml.Controls.Primitives.LoopingSelectorItem
:In this template, we can change the
Background
in theVisualState
namedPointerOver
to customize the pointer over color.