@@ -958,11 +958,27 @@ void UpdateIsTabStripVisible(bool isTabStripVisible)
958
958
959
959
void UpdateTabContentHeight ( double tabContentHeight ) => contentContainer . HeightRequest = tabContentHeight ;
960
960
961
- void UpdateTabIndicatorColor ( Color tabIndicatorColor ) => tabStripIndicator . BackgroundColor = tabIndicatorColor ;
961
+ void UpdateTabIndicatorColor ( Color tabIndicatorColor )
962
+ {
963
+ if ( tabStripIndicator != null )
964
+ tabStripIndicator . BackgroundColor = tabIndicatorColor ;
965
+ }
962
966
963
- void UpdateTabIndicatorHeight ( double tabIndicatorHeight ) => tabStripIndicator . HeightRequest = tabIndicatorHeight ;
967
+ void UpdateTabIndicatorHeight ( double tabIndicatorHeight )
968
+ {
969
+ if ( tabStripIndicator != null )
970
+ {
971
+ tabStripIndicator . HeightRequest = tabIndicatorHeight ;
972
+ }
973
+ }
964
974
965
- void UpdateTabIndicatorWidth ( double tabIndicatorWidth ) => tabStripIndicator . WidthRequest = tabIndicatorWidth ;
975
+ void UpdateTabIndicatorWidth ( double tabIndicatorWidth )
976
+ {
977
+ if ( tabStripIndicator != null )
978
+ {
979
+ tabStripIndicator . WidthRequest = tabIndicatorWidth ;
980
+ }
981
+ }
966
982
967
983
void UpdateTabIndicatorView ( View tabIndicatorView )
968
984
{
@@ -991,9 +1007,21 @@ void UpdateTabIndicatorPlacement(TabIndicatorPlacement tabIndicatorPlacement)
991
1007
UpdateTabIndicatorMargin ( ) ;
992
1008
}
993
1009
994
- void UpdateIsSwipeEnabled ( bool isSwipeEnabled ) => contentContainer . IsSwipeEnabled = isSwipeEnabled ;
1010
+ void UpdateIsSwipeEnabled ( bool isSwipeEnabled )
1011
+ {
1012
+ if ( contentContainer != null )
1013
+ {
1014
+ contentContainer . IsSwipeEnabled = isSwipeEnabled ;
1015
+ }
1016
+ }
995
1017
996
- void UpdateIsTabTransitionEnabled ( bool isTabTransitionEnabled ) => contentContainer . IsScrollAnimated = isTabTransitionEnabled ;
1018
+ void UpdateIsTabTransitionEnabled ( bool isTabTransitionEnabled )
1019
+ {
1020
+ if ( contentContainer != null )
1021
+ {
1022
+ contentContainer . IsScrollAnimated = isTabTransitionEnabled ;
1023
+ }
1024
+ }
997
1025
998
1026
void UpdateTabIndicatorPosition ( int tabViewItemIndex )
999
1027
{
0 commit comments