File tree Expand file tree Collapse file tree
src/Avalonia.Controls/Page Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System ;
12using System . Collections ;
23using System . Collections . Generic ;
3- using System . Linq ;
44using Avalonia . Animation ;
55using Avalonia . Automation ;
66using Avalonia . Automation . Peers ;
1111using Avalonia . Controls . Templates ;
1212using Avalonia . Input ;
1313using Avalonia . Interactivity ;
14- using Avalonia . Media ;
1514using Avalonia . Threading ;
1615
1716namespace Avalonia . Controls
@@ -111,6 +110,8 @@ public bool IsKeyboardNavigationEnabled
111110 set => SetValue ( IsKeyboardNavigationEnabledProperty , value ) ;
112111 }
113112
113+ protected override Type StyleKeyOverride => typeof ( CarouselPage ) ;
114+
114115 protected override void OnApplyTemplate ( TemplateAppliedEventArgs e )
115116 {
116117 base . OnApplyTemplate ( e ) ;
Original file line number Diff line number Diff line change @@ -535,6 +535,8 @@ public SplitViewDisplayMode DisplayMode
535535 set => SetValue ( DisplayModeProperty , value ) ;
536536 }
537537
538+ protected override Type StyleKeyOverride => typeof ( DrawerPage ) ;
539+
538540 protected override void OnApplyTemplate ( TemplateAppliedEventArgs e )
539541 {
540542 base . OnApplyTemplate ( e ) ;
Original file line number Diff line number Diff line change 11using System ;
2- using System . Collections ;
32using System . Collections . Generic ;
43using System . Threading ;
54using System . Threading . Tasks ;
65using Avalonia . Animation ;
76using Avalonia . Automation ;
87using Avalonia . Automation . Peers ;
98using Avalonia . Controls . Metadata ;
10- using Avalonia . Logging ;
11- using Avalonia . LogicalTree ;
129using Avalonia . Controls . Presenters ;
1310using Avalonia . Controls . Primitives ;
14- using Avalonia . Controls . Shapes ;
1511using Avalonia . Input ;
1612using Avalonia . Input . GestureRecognizers ;
1713using Avalonia . Interactivity ;
14+ using Avalonia . Logging ;
15+ using Avalonia . LogicalTree ;
1816using Avalonia . Media ;
1917using Avalonia . Metadata ;
2018using Avalonia . Reactive ;
@@ -619,6 +617,8 @@ private Button? BackButton
619617 }
620618 }
621619
620+ protected override Type StyleKeyOverride => typeof ( NavigationPage ) ;
621+
622622 protected override void OnPropertyChanged ( AvaloniaPropertyChangedEventArgs change )
623623 {
624624 if ( change . Property == PagesProperty &&
Original file line number Diff line number Diff line change 99using Avalonia . Controls . Templates ;
1010using Avalonia . Input ;
1111using Avalonia . Input . GestureRecognizers ;
12- using Avalonia . LogicalTree ;
1312using Avalonia . Threading ;
1413
1514namespace Avalonia . Controls
@@ -150,6 +149,8 @@ public IDataTemplate? IndicatorTemplate
150149 set => SetValue ( IndicatorTemplateProperty , value ) ;
151150 }
152151
152+ protected override Type StyleKeyOverride => typeof ( TabbedPage ) ;
153+
153154 protected override void OnAttachedToVisualTree ( VisualTreeAttachmentEventArgs e )
154155 {
155156 base . OnAttachedToVisualTree ( e ) ;
You can’t perform that action at this time.
0 commit comments