public HighlightsView() { BindingContext = new HighlightsViewModel(); InitializeComponent(); _scrollView.SetBinding(View.MarginProperty, new Binding("Height", source: _nameStack, converter: new ThicknessConverter(), converterParameter: 1, mode: BindingMode.OneWay)); _highlightsStack.SetBinding(View.MarginProperty, new Binding("Height", source: _backgroundImage, converter: new ThicknessConverter(), converterParameter: 1, mode: BindingMode.OneWay)); _nameStack.SetBinding(HeightRequestProperty, new Binding("Height", source: _resumeViewFAB)); AnimationUtilities.InitializeAppear(_title1, _body1, _title2, _body2); }
public HighlightsPage() { InitializeComponent(); BindingContext = viewModel = new HighlightsViewModel(); viewModel.UpdateBusinessesListCommand.Execute(null); }