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>