0
我想弄清楚如何創建一個選擇器與XAML中的自定義項目。我不確定是否可以僅使用xaml來實現此任務。選取器必須包含由標籤和開關組成的項目。下面的代碼說明了最終目標:選擇器與自定義項[Xaml]
<Picker Title="Picker title here">
<Picker.ItemsSource>
<StackLayout Orientation="Horizontal">
<Label Text="Hello Xamarin.Forms!" />
<Switch />
</StackLayout>
<StackLayout Orientation="Horizontal">
<Label Text="Hello Xamarin.Forms2!" />
<Switch />
</StackLayout>
</Picker.ItemsSource>
我將不勝感激就如何實現這一目標的任何建議。
我明白了。這聽起來像一個非常好的主意!我會嘗試。謝謝你的建議! –