Categories
7.0 7.5 C#.NET HOW TO Microsoft Nokia VB.NET Visual Studio Windows Phone

HOW TO create endpoint with Hostname or IP address in Silverlight

There are some classes in the Namespace System.Net

With Hostname use the following Class

DnsEndPoint

an example in C#
[sourcecode lang=”csharp”]DnsEndPoint endpoint = new DnsEndPoint("https://www.myerrorsandmysolutions.com", 80);[/sourcecode]

in VB.NET
[sourcecode lang=”vbnet”]Dim endpoint As New DnsEndPoint("https://www.myerrorsandmysolutions.com", 80)[/sourcecode]

With IP address use the following Class

IPEndPoint

an example in C#
[sourcecode lang=”csharp”]IPEndPoint endpoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 80);[/sourcecode]

in VB.NET
[sourcecode lang=”vbnet”]Dim endpoint As New IPEndPoint(IPAddress.Parse("127.0.0.1"), 80)[/sourcecode]

Did my HOW TO help you? Leave a reply.

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.