public HomePage() { InitializeComponent(); PrepareAnimations(); InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem)); this.ForumsList.IsSynchronizedWithCurrentItem = false; this.BookmarksList.IsSynchronizedWithCurrentItem = false; this.FavoritesListBox.IsSynchronizedWithCurrentItem = false; this.FavoritesListBox.ItemAnimationMode = ItemAnimationMode.PlayOnNewSource; HomePage._context = new ViewModels.HomePageViewModel(this.ForumsList); this._defaultBar = this.ApplicationBar; BindEvents(); }
public HomePage() { InitializeComponent(); Datasource = new HomePageViewModel(); MainContent.DataContext = Datasource; }