silverlight

Auto-tab in Silverlight 3

为君一笑 提交于 2019-12-29 00:45:42
问题 I have a requirement to be able to auto-tab from one control to the "next control" in a SL3 app. For example, a TextBox is limited to 3 characters - on typing the 3rd character the focus should automatically move to the next control on the form (my actual usage is slightly different but that example suffices). However, as SL automatically determines the tab sequence there doesn't seem to be a way of doing this apart from reverse engineering/duplicating Silverlight's logic to figure out which

Auto-tab in Silverlight 3

泄露秘密 提交于 2019-12-29 00:45:34
问题 I have a requirement to be able to auto-tab from one control to the "next control" in a SL3 app. For example, a TextBox is limited to 3 characters - on typing the 3rd character the focus should automatically move to the next control on the form (my actual usage is slightly different but that example suffices). However, as SL automatically determines the tab sequence there doesn't seem to be a way of doing this apart from reverse engineering/duplicating Silverlight's logic to figure out which

How to authenticate client application for trust of messages sent from it

半城伤御伤魂 提交于 2019-12-28 19:01:38
问题 The basic question How do I know that it is my publicly accessible (client) application that is sending my service messages? How do I know that it is just not some other application that is impersonating my application? Some Background Currently we log all errors that occur on our websites via log4net and WCF to a database. This works well because the web server (accessible from the web - Partly Trusted) reports there errors to the WCF service running on the application server (inaccessible

How to authenticate client application for trust of messages sent from it

给你一囗甜甜゛ 提交于 2019-12-28 19:01:31
问题 The basic question How do I know that it is my publicly accessible (client) application that is sending my service messages? How do I know that it is just not some other application that is impersonating my application? Some Background Currently we log all errors that occur on our websites via log4net and WCF to a database. This works well because the web server (accessible from the web - Partly Trusted) reports there errors to the WCF service running on the application server (inaccessible

Show Validation Error in UserControl

♀尐吖头ヾ 提交于 2019-12-28 13:22:32
问题 I am not sure why the validation state doesn't get reflected in my user control. I am throwing an exception but for some reason the control doesn't show the validation state...When I use a standard Textbox (Which is commented out right now in my example) on my MainPage it shows the error state, not sure why its not when its wrapped. I have slimmed this down so basically its a user control that wraps a TextBox . What am I missing?? MyUserControl XAML: <UserControl x:Class=

Alternate background color in Listview XAML

我是研究僧i 提交于 2019-12-28 05:37:25
问题 I'm using a listView based on itemTemplate. So i need in my template to alternate the background color : - fist row: white - second row:gray - third row: white - forth: gray this is my template: <DataTemplate x:Key="ItemFlight" > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="60"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Border Background="#28AADB" Margin="2"> <Image Source="{Binding Path=IsArrival, Converter={StaticResource BooleanToImageDisplayConverter}}" Width=

A super-simple MVVM-Light WP7 sample?

 ̄綄美尐妖づ 提交于 2019-12-28 05:35:27
问题 I am looking for a sample that demonstrates in the lightest way possible the following: A Model that invokes a SOAP based web service; regularly polling to get the latest value (assume the SOAP service returns a boolean). The model should also support invoking a SOAP method that changes the boolean on the server. A ViewModel that enables the underlying boolean to be bound to controls in the View (e.g. to a checkbox). A View with the above checkbox control bound to the underlying boolean.

arcgis api for silverlight使用google map等多个在线地图

感情迁移 提交于 2019-12-28 04:58:56
原文 http://blog.csdn.net/leesmn/article/details/6820245 无可否认,google map实在是很漂亮。可惜对于使用arcgis api for silverlight的我们来说,无法使用它的确不爽。虽然,arcgis api for silverlight可以使用bing map。但是bing map中国地区的地图很差,城市道路信息几乎没有。稍微得到些许安慰的是最新版本(比方2.2版本)可以支持OpenStreetMap,效果比bing map 好多了。 使用OpenStreetMap xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:open="clr-namespace:ESRI.ArcGIS.Client.Toolkit.DataSources;assembly=ESRI.ArcGIS.Client.Toolkit.DataSources" <esri:Map x:Name="MyMap"> <esri:Map.Layers> <open:OpenStreetMapLayer ID="MyLayer"></open:OpenStreetMapLayer> </esri:Map.Layers> </esri:Map>

ArcGIS API for Silverlight 入门学习笔记(一):hello world

时光毁灭记忆、已成空白 提交于 2019-12-28 04:58:36
本人也是刚刚开始学习silverlight和arcgis server,所以很多问题还不太懂,希望通过博文来和大家交流 现在开始ArcGIS API for Silverlight的hello world 之旅 新建一个Silverlight项目,在MainPage.xaml文件中,引入 ESRI.ArcGIS.Client 命名空间和 ESRI.ArcGIS.Client 所在的程序集 ESRI.ArcGIS.Client,并指定 该命名空间的名字为ESRI(这个名字是自定义的,也可以是阿毛阿狗) 注:引入方法,在silverlight项目上(不是Web)点击右键——添加引用——浏览——ESRI.ArcGIS.Client.dll——确定 ESRI.ArcGIS.Client.dll的路径X:\Program Files\ESRI SDKs\Silverlight\v1.2 接着写Map控件,并指定Map中的地图服务,一个简单的服务地图完成了,代码如下: 代码 < UserControl x:Class ="APIforSilverlightSamp.s1" xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x ="http://schemas.microsoft.com/winfx

arcgis api for silverlight

旧城冷巷雨未停 提交于 2019-12-28 04:57:55
原文 http://blog.sina.com.cn/s/blog_4638cf7b0100wntt.html arcgis api for silverlight(1) (2011-09-21 09:09:26) 转载 ▼ 标签: 杂谈 分类: 技术 发现了一个很好的学习工具,就是Esri的在线帮助,包括概念,例子,API介绍等等。接下来的学习基本上就是按照例子结合开发方案进行实践学习。 http://help.arcgis.com/en/webapi/silverlight/samples/start.htm 程序的构成 和asp.net结构类似,前台设计代码+后台程序代码。 Xaml+Xaml.cs Xaml包括控件的引用、设计表格的代码、控件的设置和数据绑定代码。 Xaml则是C#程序代码。 首先学习加载图层,添加控制控件。 加载图层 服务 是在Xaml中添加的,放在代码最下端的是在最上端显示的。图层服务的显示可以在后台程序中控制 可以添加一些控制控件,navigation(导航控件)、scaleLine(比例尺)、mapProgressBar(进度条),直接链接map就可以,非常方便。 实际上map控件加载的是server发布的一个地图服务。 图层加载服务有三种: TiledMap 缓存切片地图服务 适用于在服务器已经做了缓存的地图 DynamicMap 动态地图服务