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;
 }