码迷,mamicode.com
首页 > 其他好文 > 详细

机票查询结果页

时间:2014-05-09 10:12:29      阅读:328      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   code   java   tar   

(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)

bubuko.com,布布扣
       #region BackKeyPressCommand
            BackKeyPressCommand = new RelayCommand(() =>
            {
                BackKeyPress(true);
                AirTicketItems = null;
                StartFlightName = null;
                EndFlightName = null;
            });
            #endregion
bubuko.com,布布扣

(6)

public void Navigated(System.Uri uri)
{}里的

AppCurrent.SelectionDate = string.Empty;

(7)AirTicketResultInfoVM.cs

bubuko.com,布布扣
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;
            }

        }
bubuko.com,布布扣

(8)UrlFactory.cs

机票查询结果页,布布扣,bubuko.com

机票查询结果页

标签:style   blog   class   code   java   tar   

原文地址:http://www.cnblogs.com/Windows-phone/p/3716880.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!