protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (DesignerProperties.IsInDesignTool)
            {
                return;
            }

            var room = this.NavigationContext.QueryString["Room"];

            this.ViewModel = new RoomItemViewModel { Name = room };

            this.LoadState(uxSessionList);
        }
예제 #2
0
 public static Uri Room(RoomItemViewModel room)
 {
     var uri = new Uri(string.Format("/Pages/RoomDetailsPage.xaml?Room={0}", room.Name), UriKind.Relative);
     return uri;
 }