I'm trying to figure out how to create programatically a tile with specified template (TileSquare150x150Text03)? I tried to follow these guides link , MSDN and a few similiar, but wherever I paste < tile> ... < /tile > markup (e.g. in page or app .xaml file) Visual Studio underlines this markup and says that "tile is not supported in a Windows Phone project". I don't need any tile updates or tiles with two sides. Just simple one with specified template, background color/image and filled with my text.
Can someone explain me what I'm doing wrong? Thank you for your help.
TileUpdateManager.GetTemplateContent(TileTemplateType.TileWide310x150ImageAndText01);
. 2. Load from stringvar doc = new XmlDocument(); doc.LoadXml(string);
You put your<tile>..
instring str = @"<tile>...
. 3. You can also load document from fileXmlDocument.LoadFromFileAsync()
- for this add xml file in your project. – Romasz