Skip to content

Instantly share code, notes, and snippets.

@nozzlegear
Last active August 29, 2015 14:10
Show Gist options
  • Save nozzlegear/31a31d132369531015bb to your computer and use it in GitHub Desktop.
Save nozzlegear/31a31d132369531015bb to your computer and use it in GitHub Desktop.
(xaml) Loading an image from a Base64 string in Windows Phone and Windows 8
<!-- A WinRT XAML page -->
<Page
x:Class="MyApp.MyPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:MyApp"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<StackPanel
x:Name="LayoutRoot"
Margin="19">
<TextBlock
Text="MY APPLICATION"
FontSize="40" />
<Image
Name="MyImage"
Source="http://lorempixel.com/250/250/animals/8"
MaxHeight="250"/>
<Button
Name="ImageButton"
Click="ImageButton_Click"
Content="Get New Image" />
</StackPanel>
</Page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment