Different Windows Phone (16)

Source: Internet
Author: User
Tags xmlns

Media editor Pictures, save pictures to albums, and picture context menu "Application ..." and "Share ..." with Windows Phone's photo center


Special media for Windows Phone 7.5 (SDK 7.1)

Edit pictures through WriteableBitmap, and save pictures to albums

Associated with the context menu "application ..." of the picture

"Sharing ..." with the context menu of the picture

Integrated with Windows Phone's picture Center


1. Show how to edit pictures through WriteableBitmap and save pictures to albums


<phone: PhoneApplicationPage
    x: Class = "Demo.Media.WriteableBitmapDemo"
    xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns: phone = "clr-namespace: Microsoft.Phone.Controls; assembly = Microsoft.Phone"
    xmlns: shell = "clr-namespace: Microsoft.Phone.Shell; assembly = Microsoft.Phone"
    xmlns: d = "http://schemas.microsoft.com/expression/blend/2008"
    xmlns: mc = "http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily = "{StaticResource PhoneFontFamilyNormal}"
    FontSize = "{StaticResource PhoneFontSizeNormal}"
    Foreground = "{StaticResource PhoneForegroundBrush}"
    SupportedOrientations = "Portrait" Orientation = "Portrait"
    mc: Ignorable = "d" d: DesignHeight = "768" d: DesignWidth = "480"
    shell: SystemTray.IsVisible = "True">
    <Grid x: Name = "LayoutRoot" Background = "Transparent">
        <StackPanel Orientation = "Vertical">
            <Image x: Name = "img" />
            <Button x: Name = "btnSaveToCameraRollAlbum" Content = "" Save to camera "saved in the picture hub" Click = "btnSaveToCameraRollAlbum_Click" />
            <Button x: Name = "btnSaveToPictureAlbum" Content = "Save to the" album "of the picture hub" Click = "btnSaveToPictureAlbum_Click" />
        </ StackPanel>
    </ Grid>
</ phone: PhoneApplicationPage>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.