Quick Browse Silverlight3 Beta: Using SaveFileDialog to save to local files

Source: Internet
Author: User
Tags save file

In Silverlight3 Beta, the Save File dialog box is provided, through which we can easily text (including pictures, etc.) information

Save to the specified local file, which, of course, requires certain permissions, so when you enable VS2008, choose to run as Administrator.

That

Only in this way will not be able to save the file, there is insufficient permissions to save the problem.

First, the contents of our XAML file are as follows:

<Grid x:Name="LayoutRoot" Background="AliceBlue">
    <Grid.RowDefinitions>
        <RowDefinition Height="250"/>
        <RowDefinition Height="25"/>
        <RowDefinition Height="25"/>
    </Grid.RowDefinitions>
    <TextBox Name="Msg" Grid.Row="0" Text="请输入内容" Width="400" Height="200" FontSize="16" />
    <Button Name="SaveFile" Content=" 保  存 " Grid.Row="1" Click="SaveFileClick" FontSize="14" Width="200"/>
    <TextBlock Name="FileName"  Grid.Row="2" FontSize="14"/>
</Grid>

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.