This project is read-only.

Zoom Attached Usage

Go to properties, methods and events
Go to screenshot

for all samples
...
xmlns:DevPhone="clr-namespace:DevPhone.Controls;assembly=DevPhone.Controls.Toolkit"
...

Sample
<phone:WebBrowser Width="450" Height="400" x:Name="wbHtmlExhibitor" DevPhone:LocalBrowser.Html="{Binding SourceHtml}" BorderBrush="#FF4B4B4B" BorderThickness="2" Background="#FFEFEFEF" Margin="0,0,0,20" />

Code
public HtmlAttachedSample()
{
    InitializeComponent();
    DataContext = this;
}

public string SourceHtml
{
    get
    {
        string result = null;
        using (var resourceStream = Assembly.GetExecutingAssembly()
            .GetManifestResourceStream(
                  "DevPhoneToolkitSample.Data.HtmlSample.html"))
        {
             //Verify if the resource is valid
             if (resourceStream != null)
             {
                 //Prepare the stream to read
                 using (var resourceReader = new StreamReader(resourceStream))
                 {
                      // Read the stream and get the html
                      result = resourceReader.ReadToEnd();
                 }
            }
        }
        return result;
     }
}

Last edited Jun 3, 2012 at 1:55 AM by FCerqueira, version 3

Comments

No comments yet.