public static NameValue <Func <Page> > GetPageHandler(object Item) { if (Item is HubScriptItem) { HubScriptItem HSI = ( HubScriptItem )Item; return(new NameValue <Func <Page> >(PageId.SCRIPT_DETAILS, () => new ScriptDetails(HSI))); } else if (Item is BookBannerItem) { BookBannerItem BItem = ( BookBannerItem )Item; return(new NameValue <Func <Page> >(PageId.BOOK_INFO_VIEW, () => new wenku10.Pages.BookInfoView(BItem.BkItem))); } return(new NameValue <Func <Page> >(PageId.NULL, () => null)); }
private void InitRipple(ActiveItem Context) { _RippleDraw = DrawNothing; RingText = Context.Name; // RingText = "The quick Brown Fox Jumps Over the Lazy dog"; if (Context is BookBannerItem) { BindItem = ( BookBannerItem )Context; if (BindItem.BannerExist) { CoverUri = BindItem.UriSource; } BindItem.PropertyChanged += BindItem_PropertyChanged; } }