74 references to OnThisPlatform
Microsoft.Maui.Controls (32)
Compatibility\Handlers\FlyoutPage\iOS\PhoneFlyoutPageRenderer.cs (2)
201
UpdateApplyShadow(((FlyoutPage)Element).
OnThisPlatform
().GetApplyShadow());
368
UpdateApplyShadow(((FlyoutPage)Element).
OnThisPlatform
().GetApplyShadow());
Compatibility\Handlers\ListView\iOS\ListViewRenderer.cs (10)
233
_usingLargeTitles = (parentNav != null && parentNav.
OnThisPlatform
().PrefersLargeTitles());
624
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
639
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
666
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
681
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
689
if (Element.
OnThisPlatform
().RowAnimationsEnabled())
1105
if (list.
OnThisPlatform
().GetSeparatorStyle() == SeparatorStyle.FullWidth)
1336
if (list.
OnThisPlatform
().RowAnimationsEnabled())
1410
if (list.
OnThisPlatform
().RowAnimationsEnabled())
1572
: base(element.
OnThisPlatform
().GetGroupHeaderStyle() == GroupHeaderStyle.Plain
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (6)
560
bool shouldHide = NavPage.
OnThisPlatform
().HideNavigationBarSeparator();
607
PageUIStatusBarAnimation animation = PlatformConfiguration.iOSSpecific.Page.PreferredStatusBarUpdateAnimation(((Page)Element).
OnThisPlatform
());
608
PlatformConfiguration.iOSSpecific.Page.SetPreferredStatusBarUpdateAnimation(Current.
OnThisPlatform
(), animation);
857
NavigationBar.TintColor = iconColor == null || NavPage.
OnThisPlatform
().GetStatusBarTextColorMode() == StatusBarTextColorMode.DoNotAdjust
865
var statusBarColorMode = NavPage.
OnThisPlatform
().GetStatusBarTextColorMode();
1710
var largeTitleDisplayMode = page.
OnThisPlatform
().LargeTitleDisplay();
Compatibility\Handlers\TabbedPage\iOS\TabbedRenderer.cs (4)
258
PageUIStatusBarAnimation animation = page.
OnThisPlatform
().PreferredStatusBarUpdateAnimation();
259
Tabbed?.CurrentPage?.
OnThisPlatform
().SetPreferredStatusBarUpdateAnimation(animation);
269
tabbed.GetPageByIndex(i).
OnThisPlatform
().SetPrefersStatusBarHidden(tabbed.
OnThisPlatform
().PrefersStatusBarHidden());
DatePicker\DatePicker.iOS.cs (1)
12
dph.UpdateImmediately = datePicker.
OnThisPlatform
().UpdateMode() == UpdateMode.Immediately;
Picker\Picker.iOS.cs (1)
12
ph.UpdateImmediately = picker.
OnThisPlatform
().UpdateMode() == UpdateMode.Immediately;
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
385
result.ShouldRecognizeSimultaneously = (g, o) => Application.Current?.
OnThisPlatform
().GetPanGestureRecognizerShouldRecognizeSimultaneously() ?? false;
Platform\iOS\Extensions\NavigationPageExtensions.cs (2)
16
platformView.NavigationBar.PrefersLargeTitles = navigationPage.
OnThisPlatform
().PrefersLargeTitles();
24
platformView.NavigationBar.Translucent = navigationPage.
OnThisPlatform
().IsNavigationBarTranslucent();
Platform\iOS\Extensions\ScrollViewExtensions.cs (1)
11
platformView.DelaysContentTouches = scrollView.
OnThisPlatform
().ShouldDelayContentTouches();
Platform\iOS\Extensions\SearchBarExtensions.cs (1)
12
uiSearchBar.SearchBarStyle = searchBar.
OnThisPlatform
().GetSearchBarStyle().ToPlatformSearchBarStyle();
Platform\iOS\Extensions\TextExtensions.cs (2)
19
var color = entry.
OnThisPlatform
().GetCursorColor();
28
textField.AdjustsFontSizeToFitWidth = entry.
OnThisPlatform
().AdjustsFontSizeToFitWidth();
TimePicker\TimePicker.iOS.cs (1)
15
h.UpdateImmediately = timePicker.
OnThisPlatform
().UpdateMode() == UpdateMode.Immediately;
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;