silverlight

Silverlight Windows Phone 7: Load Images From URL

好久不见. 提交于 2019-12-31 21:21:34
问题 I got the code below that is trying to load an image from the web into an Image control, when I run it I get an error on the given line that no network access is allowed: private void button1_Click(object sender, RoutedEventArgs e) { WebClient webClientImgDownloader = new WebClient(); webClientImgDownloader.OpenReadCompleted += new OpenReadCompletedEventHandler(webClientImgDownloader_OpenReadCompleted); webClientImgDownloader.OpenReadAsync(new Uri("http://dilbert.com/dyn/str_strip/000000000

Binding SelectionChanged to ViewModel using Caliburn.Micro

回眸只為那壹抹淺笑 提交于 2019-12-31 20:18:28
问题 We've using Caliburn.Micro on a new Silverlight project and everythings working great. The inbuilt conventions bind buttons click events to the viewModel, but I'm not sure what the best way to handle the selectionChanged event on datagrids and comboboxes is. At the moment, I'm binding to the selected item and calling custom logic, but I feel like this is a bit of a code smell and that I should seperate the setting of the property and the selectedChange event. But if I seperate these, how do I

Binding SelectionChanged to ViewModel using Caliburn.Micro

有些话、适合烂在心里 提交于 2019-12-31 20:18:11
问题 We've using Caliburn.Micro on a new Silverlight project and everythings working great. The inbuilt conventions bind buttons click events to the viewModel, but I'm not sure what the best way to handle the selectionChanged event on datagrids and comboboxes is. At the moment, I'm binding to the selected item and calling custom logic, but I feel like this is a bit of a code smell and that I should seperate the setting of the property and the selectedChange event. But if I seperate these, how do I

近期团队博客的摘要 10

瘦欲@ 提交于 2019-12-31 20:13:11
EBS将在北京微软年度技术大会(TechEd08)首度公开亮相! 届时将由开发部经理Christer Lundin和高级测试主管吴光安开讲Windows Essential Business Server 2008 (EBS)。EBS的宗旨是简化购买, 简化安装和简化管理。本讲将注重于产品介绍,如何进行部署准备和计划工作, 产品安装的注意事项, 如何进行安装后的配置和从老环境迁移, 集成的管理控制台可以带来多么方便的工具, 以及如何利用SDK进行功能拓展开发。你参加不了,你也可以从本文的附件下载本讲的slides(11月10日之后)。 点击这里 阅读全文。 在Internet Explorer中正确使用MSXML 我参与了IE7的开发过程,看到了在IE浏览器中形形色色使用MSXML的方法。显然有一些东西困扰着开发者:MSXML“混乱”的版本以及如何创建“正确”的实例。 点击这里 阅读全文。 体会Microsoft的更快、更高与更强——侧记TechEd 2008上海技术大会 2008年是奥运年,2008年对Microsoft来说也是至关重要的一年,多项重量级产品都在这一年发布。正如奥林匹克运动会所提倡的更快、更高与更强,在Microsoft这一年所发布的产品中,人们处处都可以看到Microsoft的更快、更高与更强的精神——在参加完TechEd 2008上海站的技术大会之后

Binding Silverlight UserControl custom properties to its' elements

耗尽温柔 提交于 2019-12-31 19:44:07
问题 I'm trying to make a simple crossword puzzle game in Silverlight 2.0. I'm working on a UserControl-ish component that represents a square in the puzzle. I'm having trouble with binding up my UserControl's properties with its' elements. I've finally (sort of) got it working (may be helpful to some - it took me a few long hours), but wanted to make it more 'elegant'. I've imagined it should have a compartment for the content and a label (in the upper right corner) that optionally contains its'

Binding Silverlight UserControl custom properties to its' elements

我的未来我决定 提交于 2019-12-31 19:42:44
问题 I'm trying to make a simple crossword puzzle game in Silverlight 2.0. I'm working on a UserControl-ish component that represents a square in the puzzle. I'm having trouble with binding up my UserControl's properties with its' elements. I've finally (sort of) got it working (may be helpful to some - it took me a few long hours), but wanted to make it more 'elegant'. I've imagined it should have a compartment for the content and a label (in the upper right corner) that optionally contains its'

Binding Silverlight UserControl custom properties to its' elements

心已入冬 提交于 2019-12-31 19:42:18
问题 I'm trying to make a simple crossword puzzle game in Silverlight 2.0. I'm working on a UserControl-ish component that represents a square in the puzzle. I'm having trouble with binding up my UserControl's properties with its' elements. I've finally (sort of) got it working (may be helpful to some - it took me a few long hours), but wanted to make it more 'elegant'. I've imagined it should have a compartment for the content and a label (in the upper right corner) that optionally contains its'

How to use resource dictionary in prism modules at design time?

我只是一个虾纸丫 提交于 2019-12-31 16:02:21
问题 I am using prism framework in a silverlight app with multiple modules in separate XAPs. I have a resource dictionary defined in my in my shell project. In my modules I can use the resources fine, but since the modules are decoupled from the shell until they are loaded at runtime the designer does not show them or recognize them. Is there a way to make the modules aware of my resources at design time without merging my resource file in every view xaml? My resource files are in a "common"

Silverlight testing: Watin vs Selenium comparison

风流意气都作罢 提交于 2019-12-31 13:28:31
问题 I was wondering how well these web test frameworks (Watin and Selenium) work for Silverlight UI testing. Have anyone tried it on a project? Are Watin or Selenium well suited for Silverlight?. 回答1: I can't talk to Watin or Selenium with Silverlight, but I have played with White, which is a layer on top of the MS Automation Framework, and I have liked what I have seen thus far: I should also add that we defer the majority of our UI behavior testing to unit tests using the MVVM pattern. It doesn

Connect to XML file at web address for WP7 app

别说谁变了你拦得住时间么 提交于 2019-12-31 07:15:53
问题 I've been trying to learn the ins-and-outs of Windows Phone 7 programming over the past few weeks. I have learned most of the basics but I've been having trouble finding a tutorial explaining exactly how to do something with XML. I want to create a very basic app which accesses an XML file at a web address and displays the various items within the file as text within the app. I've come across several tutorials which all seem to do it in a different way, or aren't explaining exactly the thing