Esempio n. 1
0
        private void ScrollToItem(PropertyBindingModel item)
        {
            if (item == null) return;

            var hubElement = MainHub.Sections.Where(x => x.DataContext is PropertyBindingModel && ((PropertyBindingModel)x.DataContext).Id == item.Id).First();
            UIHelper.ScollHubToSection(hubElement, ref MainHub);
        }
        public void PropertyClickExecute(PropertyBindingModel item)
        {

            switch(item.Type)
            {
                case PropertyBindingModel.Types.TOURS:
                    //todo
                break;
                case PropertyBindingModel.Types.REGULAR:
                    if (ScrollRequested != null)
                    {
                        ScrollRequested(item);
                    }
                    
                break;
            }
        }