Categories
7.0 7.5 7.8 8.0 HOW TO Microsoft SDK 7.1 SDK 7.8 VB.NET Visual Studio Windows Phone

HOW TO create a bulleted list in Microsoft Windows Phone App

To create a bulleted list in Microsoft Windows Phone App you have the following options:

  1. Write text inside your xaml file using and elements
    [sourcecode lang=”xml”]
    <TextBlock TextWrapping="Wrap">
    New features:<LineBreak/>
    <Run>• No Ads</Run><LineBreak/>
    <Run>• Message Encryption with Password for a double protection</Run><LineBreak/>
    <Run>• Advanced settings</Run><LineBreak/>
    <Run>• and more…</Run><LineBreak/>
    </TextBlock>
    [/sourcecode]
  2. Write text inside you Resouces file (use SHIFT+RETURN to create new line)
    [sourcecode lang=”text”]
    New features:
    • No Ads
    • Message Encryption with Password for a double protection
    • Advanced settings
    • and more…
    [/sourcecode]
  3. Create a bulleted or numbered list in Blend

Did my HOW TO help you? Leave a reply.

Categories
7.0 7.5 C#.NET Microsoft VB.NET Windows Phone

Windows Phone – “Navigation is not allowed when the task is not in the foreground. Error: -2147220990”

When you debug your Windows Phone application that use a task and call the Show method your app crash with the following error message:

System.InvalidOperationException:
Navigation is not allowed when the task is not in the foreground. Error: -2147220990

Solution:

Add Show method in try/catch block

For example:

[sourcecode lang=”CSharp”]
private void appBarButton_Click(object sender, EventArgs e)
{
WebBrowserTask task = new WebBrowserTask();
task.Uri = new Uri("https://www.myerrorsandmysolutions.com/");
try
{
task.Show();
}
catch
{ }
}
[/sourcecode]

Did my solution solve your problem? Leave a reply.