We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

SfSchedule inside stacklayout

Thread ID:

Created:

Updated:

Platform:

Replies:

123595 Apr 1,2016 03:10 PM Apr 5,2016 07:55 AM Xamarin.Forms 3
loading
Tags: SfSchedule
Guilherme
Asked On April 1, 2016 03:10 PM

Hi,

I would like to know if it is possible to insert SfSChedule inside a stacklayout. I want to show the Scheduler and a ListView below.

Sorry for the poor English :(

Thanks

Nijamudeen Mohamed Sulaiman [Syncfusion]
Replied On April 4, 2016 03:11 AM

Hi Guilherme,

Thank you for contacting Syncfusion Support.

We have fixed the mentioned issue with SfSchedule when added in StackLayout of Xamarin. The fix for this issue will be included in our upcoming volume 1, 2016 release which is expected to be available by the end of this week. We appreciate your patience until then.

Regards,
Nijamudeen M.

Peter
Replied On April 4, 2016 10:54 AM

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>
</Grid>

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 );

Content = grid;
   }

Regards,
Peter

Swathi Gopal [Syncfusion]
Replied On April 5, 2016 07:55 AM

Hi Peter,

 

Thanks for your interest in our Syncfusion product. 


Although it is placed in different layout, the provided code in your previous update might satisfy his requirements, as mentioned in our previous update the sizing related issue with stack layout  has been fix and the fix for this issue will be included in our upcoming volume 1, 2016 release which is expected to be available by the end of this week.  We appreciate your patience until then.

 

Regards,
Swathi G


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;