public AccountItemViewer() { this.InitializeComponent(); TiltEffect.SetIsTiltEnabled(this, true); this.accountItemViewModel = ViewModelLocator.AccountItemViewModel; base.Loaded += new RoutedEventHandler(this.AccountItemViewer_Loaded); this.NeedReloadData = true; this.accountItemViewerViewModel = new AccountItemViewerViewModel(); this.RelatedItemsPivot.DataContext = this; }
public AccountItemViewer() { this.InitializeComponent(); TiltEffect.SetIsTiltEnabled(this, true); this.accountItemViewModel = ViewModelLocator.AccountItemViewModel; base.Loaded += new RoutedEventHandler(this.AccountItemViewer_Loaded); this.NeedReloadData = true; this.accountItemViewerViewModel = new AccountItemViewerViewModel(); this.RelatedItemsPivot.DataContext = this; var textTitle = new TextBlock(); textTitle.SetBinding(TextBlock.TextProperty, new System.Windows.Data.Binding("CreateDateInfo")); textTitle.Tap += textTitle_Tap; MainPivot.Title = textTitle; }