42 references to OnThisPlatform
Microsoft.Maui.Controls.Compatibility (42)
iOS\EventTracker.cs (1)
449
result.ShouldRecognizeSimultaneously = (g, o) => Application.Current?.
OnThisPlatform
().GetPanGestureRecognizerShouldRecognizeSimultaneously() ?? false;
iOS\Extensions\VisualElementExtensions.cs (1)
22
&& element.
OnThisPlatform
().GetIsLegacyColorModeEnabled();
iOS\Renderers\DatePickerRenderer.cs (1)
158
if (Element.
OnThisPlatform
().UpdateMode() == UpdateMode.Immediately)
iOS\Renderers\EntryRenderer.cs (2)
292
Control.AdjustsFontSizeToFitWidth = Element.
OnThisPlatform
().AdjustsFontSizeToFitWidth();
524
var color = Element.
OnThisPlatform
().GetCursorColor();
iOS\Renderers\ListViewRenderer.cs (10)
273
_usingLargeTitles = (parentNav != null && parentNav.
OnThisPlatform
().PrefersLargeTitles());
650
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
665
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
692
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
707
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
715
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
1127
if (List.
OnThisPlatform
().GetSeparatorStyle() == SeparatorStyle.FullWidth)
1331
if (List.
OnThisPlatform
().RowAnimationsEnabled())
1394
if (List.
OnThisPlatform
().RowAnimationsEnabled())
1551
: base(element.
OnThisPlatform
().GetGroupHeaderStyle() == GroupHeaderStyle.Plain
iOS\Renderers\NavigationRenderer.cs (8)
504
bool shouldHide = NavPage.
OnThisPlatform
().HideNavigationBarSeparator();
551
PageUIStatusBarAnimation animation = PlatformConfiguration.iOSSpecific.Page.PreferredStatusBarUpdateAnimation(((Page)Element).
OnThisPlatform
());
552
PlatformConfiguration.iOSSpecific.Page.SetPreferredStatusBarUpdateAnimation(Current.
OnThisPlatform
(), animation);
559
NavigationBar.PrefersLargeTitles = NavPage.
OnThisPlatform
().PrefersLargeTitles();
565
NavigationBar.Translucent = NavPage.
OnThisPlatform
().IsNavigationBarTranslucent();
760
NavigationBar.TintColor = iconColor == null || NavPage.
OnThisPlatform
().GetStatusBarTextColorMode() == StatusBarTextColorMode.DoNotAdjust
768
var statusBarColorMode = NavPage.
OnThisPlatform
().GetStatusBarTextColorMode();
1438
var largeTitleDisplayMode = page.
OnThisPlatform
().LargeTitleDisplay();
iOS\Renderers\PageRenderer.cs (4)
308
var animation = Page.
OnThisPlatform
().PreferredStatusBarUpdateAnimation();
431
var animation = Page.
OnThisPlatform
().PreferredStatusBarUpdateAnimation();
452
var mode = Page.
OnThisPlatform
().PrefersStatusBarHidden();
528
public override bool PrefersHomeIndicatorAutoHidden => Page.
OnThisPlatform
().PrefersHomeIndicatorAutoHidden();
iOS\Renderers\PhoneFlyoutPageRenderer.cs (2)
156
UpdateApplyShadow(((FlyoutPage)Element).
OnThisPlatform
().GetApplyShadow());
256
UpdateApplyShadow(((FlyoutPage)Element).
OnThisPlatform
().GetApplyShadow());
iOS\Renderers\RefreshViewRenderer.cs (1)
68
_usingLargeTitles = parentNav != null && parentNav.
OnThisPlatform
().PrefersLargeTitles();
iOS\Renderers\ScrollViewRenderer.cs (1)
307
DelaysContentTouches = ((ScrollView)Element).
OnThisPlatform
().ShouldDelayContentTouches();
iOS\Renderers\SearchBarRenderer.cs (1)
449
Control.SearchBarStyle = Element.
OnThisPlatform
().GetSearchBarStyle().ToPlatformSearchBarStyle();
iOS\Renderers\SliderRenderer.cs (1)
200
if (Element.
OnThisPlatform
().GetUpdateOnTap())
iOS\Renderers\SwipeViewRenderer.cs (1)
646
_swipeTransitionMode = Element.
OnThisPlatform
().GetSwipeTransitionMode();
iOS\Renderers\TabbedRenderer.cs (6)
271
PageUIStatusBarAnimation animation = ((Page)Element).
OnThisPlatform
().PreferredStatusBarUpdateAnimation();
272
Tabbed.CurrentPage.
OnThisPlatform
().SetPreferredStatusBarUpdateAnimation(animation);
279
Tabbed.GetPageByIndex(i).
OnThisPlatform
().SetPrefersStatusBarHidden(Tabbed.
OnThisPlatform
().PrefersStatusBarHidden());
297
bool isHomeIndicatorHidden = Tabbed.
OnThisPlatform
().PrefersHomeIndicatorAutoHidden();
300
Tabbed.GetPageByIndex(i).
OnThisPlatform
().SetPrefersHomeIndicatorAutoHidden(isHomeIndicatorHidden);
iOS\Renderers\TimePickerRenderer.cs (1)
177
if (Element.
OnThisPlatform
().UpdateMode() == UpdateMode.Immediately)
iOS\VisualElementTracker.cs (1)
197
var thread = !boundsChanged && !caLayer.Frame.IsEmpty && Application.Current?.
OnThisPlatform
()?.GetHandleControlUpdatesOnMainThread() == false;