Hi Guilherme,
I know you asked for a Stacklayout, but have you thought about using a GridLayout?
I find it gives you more control on where each control is placed. Below I placed an example, in which the SfSchedule
takes 70% of the available room vertically and the listview 30%:
In XAML:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.7*"></RowDefinition>
<RowDefinition Height="0.3*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<sfschedule:SfSchedule Grid.Row="0" ScheduleView="WeekView"/>
<ListView Grid.Row="1" ItemsSource="12345"></ListView>
In C#
public KalenderPage()
{
InitializeComponent();
Grid grid = new Grid();
grid.RowDefinitions = new RowDefinitionCollection
{
new RowDefinition { Height = new GridLength(0.7, GridUnitType.Star) },
new RowDefinition { Height = new GridLength(0.3, GridUnitType.Star) }
};
grid.Children.Add( new SfSchedule() { ScheduleView = ScheduleView.WeekView }, 0, 0 );
grid.Children.Add( new ListView() { ItemsSource="12345" }, 0, 1 );
Regards,
Peter