The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have just changed WalkthroughItemPage in your EssentialUIKit source code by replacing StackLayout with Grid and nothing is displayed on the screen. why it doesnt work with the Grid? Works on UWP but not on Android
HMHemalatha Marikumar Syncfusion Team November 25, 2019 09:56 AM UTC
Hi Emil Alipiev,
Greetings from Syncfusion.
We have checked the reported issue with UIKit Essential sample, and we would like to let you know that animation on Rotator’s item depend on the SfRotatorBehaviour.cs file code. Here, we have got the animated child based on its parent layout as like in below
var items = ( rotator.ItemsSource as IEnumerable<object> ).ToList();
// Start animation to selected view.
var currentItem = items[index];
var childElement = ( ( ( currentItem as Boarding ).RotatorItem as ContentView ).Children[0] asStackLayout ).Children.ToList();
if ( childElement != null && childElement.Count > 0 )
{
this.StartAnimation(childElement, currentItem as Boarding);
}
………
But from the provided code snippet, you have modified that parent layout from StackLayout to Grid. If that changes should also reflect in the RotatorBehaviour file since they are depended. Hence to resolve this issue, please modify the code snippet like in below
Works on UWP but not on Android: Since that animated code will not execute for UWP platform. Hence it gets worked in UWP.
Please let us know, if you have any other concerns.
Regards,
Hemalatha M.
EMEmilNovember 30, 2019 03:02 PM UTC
hi,
thank you for the answer. i have still problem on android. when i change the template as below. I want 3 items are aligned within the grid filling the screen. on your sample, image siz small for me. But below layout doesnt work, image covers entire screen and labels remain behind the image. I believe that this is the problem with sfrotator. below grid would work fine outside sfrotator item. is it a bug?
if i change the walkthroughitempage like below Header label goes behind the image. why is it happening? it is the case only for rotatoritem. using outside rotator it is not laying UI like that
<Grid
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Label to display header -->
<Label Grid.Row="0"
FontFamily="{StaticResource Montserrat-SemiBold}"
FontSize="14"
HorizontalOptions="Center"
HorizontalTextAlignment="Center"
Opacity="{OnPlatform Default=0,
UWP=1}"
Style="{StaticResource LabelStyle}"
Text="{Binding Header}"
TranslationY="{OnPlatform Default=60,
UWP=0}"
VerticalTextAlignment="Center" />
<!-- Image for display svg image -->
<svg:SVGImage Grid.Row="1" Margin="0,10,0,0"
BackgroundColor="Transparent"
Opacity="{OnPlatform Default=0,
UWP=1}"
Source="{Binding ImagePath}"
VerticalOptions="FillAndExpand"
WidthRequest="{x:OnIdiom Phone=200,
Desktop=300,
Tablet=300}" />
<!-- Label to display content -->
<Label Grid.Row="2"
FontFamily="{StaticResource Montserrat-Medium}"
FontSize="16"
HorizontalOptions="Center"
Opacity="{OnPlatform Default=0,
UWP=1}"
Style="{StaticResource LabelStyle}"
Text="{Binding Content}"
TranslationY="{OnPlatform Default=60,
UWP=0}" />
</Grid>
HMHemalatha Marikumar Syncfusion Team December 9, 2019 06:12 AM UTC
Hi Emil Alipiev,
Thanks for your update.
We have validated your query, we would like to let you know that In WalkthroughItemPage TranslationY appliedfor aLabel, so only Label YPosition is modified. If you need a translation for a Label, we suggest that you reset the TranslationY position value based on your view or else you can remove it. Below the highlighted code snippet has a TranslationY position location.