首页 > 代码库 > 机票查询结果页
机票查询结果页
(1)XAML
mc:Ignorable="d"
(2)XAML
xmlns:Behavior="clr-namespace:WP.ControlBehavior;assembly=WP.ControlBehavior"
(3)
<Grid x:Name="ContentPanel" Grid.Row="2" > <ListBox ItemsSource="{Binding AirTicketItems}" ItemTemplate="{StaticResource DT_AirInfo}" Behavior:TiltEffect.IsTiltEnabled="True"/> </Grid>
(4)
AirTicketResultInfo定义的APP为静态的
BookFlight定义的App为私有的
区别是什么?
(5)
#region BackKeyPressCommand BackKeyPressCommand = new RelayCommand(() => { BackKeyPress(true); AirTicketItems = null; StartFlightName = null; EndFlightName = null; }); #endregion
(6)
public void Navigated(System.Uri uri)
{}里的
AppCurrent.SelectionDate = string.Empty;
(7)AirTicketResultInfoVM.cs
public void Navigated(System.Uri uri) { if (IsLoading || !string.IsNullOrEmpty(AppCurrent.SelectionDate)) { StartFlightName = AppCurrent.StartCity.ApLName; EndFlightName = AppCurrent.EndCity.ApLName; #region DataService AirTicketItems = null; IsLoading = true; DataService.GetAirTicketInfo( (airInfo) => { AirTicketItems = airInfo.OutBounds; IsLoading = false; }, () => { GlobalFunc.PageGoBack(BackKeyPressCommand); }, AppCurrent.StartCity.ApCode, AppCurrent.EndCity.ApCode, AppCurrent.SelectionDate, ""); #endregion AppCurrent.SelectionDate = string.Empty; } }
(8)UrlFactory.cs
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。