Last Changed: 26 May 2006
Version: 0.1
WPF Flexible Application Readme
----------------------------------
This project enables you to run your application as either a full trust standalone application
or a sandboxed XAML Browser Application (XBAP).
Note: Because XAML Browser Applications (XBAPs) run partially trusted with internet zone permissions,
certain features are not available to them. This includes standalone windows and BitmapEffects.
Switching between Standalone & XBAP
-----------------------------------
To switch from standalone to XBAP choose, choose the appropriate project configuration:
Standalone app:
"Debug"
"Release"
XAML Browser Application (XBAP)
"XBAP Debug"
"XBAP Release
In your code, you can have conditional compilation:
#if XBAP
// XBAP specific code
#else
// Standalone specific code
#endif
Or runtime switching:
if (MyApp.IsXBAP)
{
// XBAP specific code
}
else
{
// Standalone specific code
}
Or XAML switching:
//Sample of visibilty toggling
<Grid>
<Grid.Resources>
<BooleanToVisibilityConverter x:Key="BoolToVis" />
</Grid.Resources>
<Button Visibility="{Binding Source={x:Static Application.Current}, Path=IsXBAP, Converter={StaticResource BoolToVis}}">
FOO BAR
</Button>
Debugging as XAML Browser Applications - (F5)
--------------------------------------------------------
Developers using Visual C# and Visual Basic Express need to save any newly created
project. Close the Solution. Then open it, or F5 will not work.
If you are using the "Debug from URL" feature, you will also need to save your project,
close the solution and reopen it in order for it to work.
Release Notes
--------------
This drop of the template does NOT have publishing support.
If you want to deploy the standalone, you can distribute the EXE.
To publish the standalone XBAP, copy the files from bin\XBAP Release or
bin\XBAP Debug to your web server. Users should navigate to the .xbap file.
You should also add the following mime-times to your server:
Extension MIME Type
--------- ---------
.manifest application/manifest
.xaml application/xaml+xml
.application application/x-ms-application
.xbap application/x-ms-xbap
.deploy application/octet-stream
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论






收起资源包目录





































































































共 182 条
- 1
- 2
akwkevin
- 粉丝: 4
- 资源: 34

上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

- 1
- 2
前往页