0
보조 타일을 만들고 싶습니다. 시작 페이지가 아닌 다른 위치에 고정되어야합니다. 나는 다른 페이지에서 링크를 고정시키고 싶은 위치에서 제어 할 수 있습니다. 가능한가? 그렇다면 우리가 어떻게 할 수 있는지 말해주십시오. 기대에핀 다른 페이지의 보조 타일
감사 캄
보조 타일을 만들고 싶습니다. 시작 페이지가 아닌 다른 위치에 고정되어야합니다. 나는 다른 페이지에서 링크를 고정시키고 싶은 위치에서 제어 할 수 있습니다. 가능한가? 그렇다면 우리가 어떻게 할 수 있는지 말해주십시오. 기대에핀 다른 페이지의 보조 타일
감사 캄
네, 가능합니다. Create
메서드를 통해 ShellTile
을 만들 때 navigationUri
매개 변수를 사용해야합니다. 표준 패턴은; 사용자가 "이 MySecondaryPage.xaml"
로 바로 이동합니다이 아이콘을 탭하면
Uri mySecondaryPage = new Uri("/MySecondaryPage.xaml", UriKind.Relative)
ShellTile tile = ShellTile.ActiveTiles.Where(x => x.NavigationUri == mySecondaryPage).FirstOrDefault();
if (tile != null) {
tile.Delete();
}
StandardTileData data = new StandardTileData() {
Title = "Appears on the front",
// Whatever number badge you want to appear
Count = 1,
// Front image
BackgroundImage = new Uri("/Image.png", UriKind.Relative),
// Image for flip side
BackBackgroundImage = new Uri("/AnotherImage.png", UriKind.Relative),
BackTitle = "Appears on the back",
BackContent = "As does this"
};
ShellTile.Create(mySecondaryPage, data);
은 MSDN의 How to: Create, Delete, and Update Tiles for Windows Phone 기사에이 쉽게 사용할 수에 대한 몇 가지 좋은 문서가있다.
보조 타일을 고정시킬 "다른 페이지"는 무엇입니까? – Robaticus
당신은 더 설명해야합니다 :) –