摘要:XMAL方式: 1 <chartingToolkit:Chart x:Name="SamplePercentageChart" Grid.Row="0" 2 DataContext="{Binding ElementName=PieSampleUserControl}" > 3 4 <chartingToolkit:PieSeries DependentValueBinding="{Binding Percentage}" 5 ...
阅读全文
09 2011 档案
摘要:通过检查xap文件的创建时间,来决定是否使用缓存,如果创建时间改变,那么将下载最近修改的服务器文件,如果时间没变,将使用IE上次的缓存文件。修改启动文件default.aspx的内容为如下(检查文件开头是否包含<%@ Page Language="C#" AutoEventWireup="true" %>):<% string strSourceFile = @"ClientBin/PatientCare.xap"; string param; string initparams; if (System.Diagno
阅读全文
摘要:WCF RIA Services 部署在IIS6很简单,但是也会出现一些问题我们的应用是Silverlight 4 Business Application,应用了WCF RIA Service, .net framework 4 环境下,所以遇到了一些问题主要涉及的环境是Windows Server 2003 R2/企业版,未安装Visual Studio 2010环境时的布署。安装.net framework 4,Silverlight sdk 4,Silverlight tools等软件包后,如果你的WCF RIA应用还不能正常运行,则要检查以下问题1. asp.net的版本要选择为4.
阅读全文
摘要:如果WCF与SilverLight Web不是在同一站点,那么我们就要在被访问端的根域放上两个XML文件clientaccesspolicy.xml,crossdomain.xml如果要通过WebClinet访问另一站点的资源,那么需要在被访问站点放上域访问策略xml文件,不然在Complete事件里面的事件参数报告空对象引用。1、文件格式及内容:clientaccesspolicy.xml文件格式如何,最好将编码设置为utf-8,否则极易出错<?xml version="1.0" encoding="utf-8"?><access-p
阅读全文
摘要:1、在启动窗口定义另一种文本框样式(ReadOnlyStyle):<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:vsm="cl
阅读全文