void ReleaseDesignerOutlets() { if (CalloutLayout != null) { CalloutLayout.Dispose(); CalloutLayout = null; } if (ContentLayout != null) { ContentLayout.Dispose(); ContentLayout = null; } if (SenderLabel != null) { SenderLabel.Dispose(); SenderLabel = null; } if (MessageLabel != null) { MessageLabel.Dispose(); MessageLabel = null; } if (DateLabel != null) { DateLabel.Dispose(); DateLabel = null; } }
private void TapGestureRecognizer_Tapped(object sender, System.EventArgs e) { AnimationLabel aniLabel; if (animationNumber == 0) { ContentLayout.ScaleTo(1, 500, Easing.SinInOut); ContentLayout.TranslateTo(0, 0, 500, Easing.SinInOut); } else if (animationNumber == 1) { ManLabel.FadeTo(1, 500, Easing.SinInOut); ManLabel.ScaleTo(1, 500, Easing.SinInOut); Heart.FadeTo(1, 500, Easing.SinInOut); Heart.Play(); } else if (animationNumber == 2) { aniLabel = new AnimationLabel() { HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center }; ContentLayout.Children.Add(aniLabel, 3, 1); aniLabel.StartAnimation(); } else if (animationNumber == 3) { aniLabel = new AnimationLabel() { HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center }; aniLabel.PrimaryLabelText = "Eternal Lift"; aniLabel.SecondaryLabelText = "After We Die"; ContentLayout.Children.Add(aniLabel, 3, 2); aniLabel.StartAnimation(); } else if (animationNumber == 4) { aniLabel = new AnimationLabel() { HorizontalOptions = LayoutOptions.Center, VerticalOptions = LayoutOptions.Center }; aniLabel.PrimaryLabelText = "Free Choice"; ContentLayout.Children.Add(aniLabel, 0, 1); aniLabel.StartAnimation(); } animationNumber++; }
void ReleaseDesignerOutlets() { if (ContentLayout != null) { ContentLayout.Dispose(); ContentLayout = null; } if (LoadLayout != null) { LoadLayout.Dispose(); LoadLayout = null; } if (LoadProgress != null) { LoadProgress.Dispose(); LoadProgress = null; } }
public PageLayout() { Content = new ContentLayout(); }
public ContentContainer(List <ICodexWidget> content, ContentLayout contentLayout) { this.content = content; this.contentLayout = contentLayout; }