예제 #1
0
        public HomeMenuModel()
        {
            _enableSubMenuAnimationsProperty  = new WProperty(typeof(bool), false);
            _enableMainMenuAnimationsProperty = new WProperty(typeof(bool), false);
            _scrollDirectionProperty          = new WProperty(typeof(ScrollDirection), ScrollDirection.None);
            _currentSubItemIndexProperty      = new WProperty(typeof(int), 0);
            _currentSubItemProperty           = new WProperty(typeof(ListItem), null);

            _homeProxy                   = new HomeMenuActionProxy();
            _navigationList              = new NavigationList <ListItem>();
            _mainItems                   = new ItemsList();
            _subItems                    = new ItemsList();
            _delayedMenuUpdateEvent      = new DelayedEvent(200); // Update menu items only if no more requests are following after 200 ms
            _delayedAnimationEnableEvent = new DelayedEvent(200);
            SubscribeToMessages();

            Attach();
        }