public EditTabFlyout(NeuroniaViewModel viewModel) { this.InitializeComponent(); this.viewModel = viewModel; this.DataContext = viewModel; }
public AddTabFlyout(NeuroniaViewModel viewModel,Action<bool> addTabCallBack) { this.InitializeComponent(); this.AddTabCallBack = addTabCallBack; this.viewModel = viewModel; }
public TweetDetailFlyout(NeuroniaViewModel viewModel) { this.InitializeComponent(); this.viewModel = viewModel; this.DataContext = viewModel; }
public DeleteAccountFlyout(NeuroniaViewModel viewModel,Action deleteCompleteCallBack) { this.InitializeComponent(); this.viewModel = viewModel; this.deleteCompleteCallBack = deleteCompleteCallBack; gridViewDeleteAccount.ItemsSource = viewModel.AccountList; }
public SearchDetailFlyout(NeuroniaViewModel viewModel) { this.InitializeComponent(); this.viewModel = viewModel; this.comboBoxAccount.ItemsSource = viewModel.AccountList; onAddTimeline += (s,ss,e) => { }; this.DataContext = viewModel; }
public DirectMessageFlyout(NeuroniaViewModel viewModel) { this.InitializeComponent(); this.viewModel = viewModel; this.DataContext = viewModel; }
public UserDetailFlyout(NeuroniaViewModel viewModel,Action callDirectMessage) { this.InitializeComponent(); this.viewModel = viewModel; this.DataContext = viewModel; this.CallDirectMessage = callDirectMessage; this.comboBoxDirectMessageAccount.ItemsSource = viewModel.AccountList; this.comboBoxDirectMessageAccount.SelectedIndex = 0; }
public SearchDetailFlyout(string searchWord,NeuroniaViewModel viewModel) { this.InitializeComponent(); this.viewModel = viewModel; this.DataContext = viewModel; this.viewModel.SearchDetail.SearchWord = searchWord; this.SearchAsync(); }
public CreateTimelineFlyout(NeuroniaViewModel viewModel,Action<TimelineBase> onCreateCallBack) { this.viewModel = viewModel; this.onCreateCallBack = onCreateCallBack; this.InitializeComponent(); this.comboBoxAccount.ItemsSource = viewModel.AccountList; this.comboBoxTimelineType.Items.Add(TimelineType.Home.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.Mention.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.Notification.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.Search.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.List.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.DirectMessage.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.User.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.Image.ToString()); this.comboBoxTimelineType.Items.Add(TimelineType.Link.ToString()); }
/// このセクションに示したメソッドは、NavigationHelper がページの /// ナビゲーション メソッドに応答できるようにするためにのみ使用します。 /// /// ページ固有のロジックは、 /// <see cref="GridCS.Common.NavigationHelper.LoadState"/> /// および <see cref="GridCS.Common.NavigationHelper.SaveState"/> のイベント ハンドラーに配置する必要があります。 /// LoadState メソッドでは、前のセッションで保存されたページの状態に加え、 /// ナビゲーション パラメーターを使用できます。 protected override void OnNavigatedTo(NavigationEventArgs e) { navigationHelper.OnNavigatedTo(e); if (e.Parameter != null && e.Parameter is NeuroniaViewModel&&e.NavigationMode!=NavigationMode.Back) { this.viewModel = e.Parameter as NeuroniaViewModel; this.DataContext = viewModel; if (viewModel.IsFirstNavigate) { viewModel.IsFirstNavigate = false; if (viewModel.IsFirstLaunch) { Authentication(); } else { for (int i = 0; i < listViewTab.Items.Count; i++) { if ((listViewTab.Items[i] as TimelineTab).TabTitle == viewModel.GetNowTab().TabTitle) { listViewTab.SelectedIndex = i; } } ChangeTimelineSize(new Size(Window.Current.Bounds.Width, Window.Current.Bounds.Height)); } } else { } } }