Is there any way to set IndicatorStackLayout.HorizontalOptions of indicatorView to LayoutOptions.FillAndExpand?

flylu-9462 0 信誉分
2024-05-13T09:12:44.9+00:00

Is there any way to set IndicatorStackLayout.HorizontalOptions of indicatorView to LayoutOptions.FillAndExpand?

I wrote the following code in the constructor of MainPage.xaml.cs

public MainPage()
{
	InitializeComponent();
	var sl = (idcView.IndicatorLayout as StackLayout);
	sl.HorizontalOptions =LayoutOptions.FillAndExpand;
}

but after running the program, I found that IndicatorStackLayout.HorizontalOptions automatically becomes LayoutOptions.Fill, is there a way to solve this?

.NET MAUI
.NET MAUI
一种 Microsoft 开源框架,用于构建跨移动设备、平板电脑、台式机的原生设备应用程序。
52 个问题
{count} 票