Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public HighlightsPage()
 {
     InitializeComponent();
     BindingContext = viewModel = new HighlightsViewModel();
     viewModel.UpdateBusinessesListCommand.Execute(null);
 }