silverlight-3.0

Prevent Silverlight 3 from caching while debugging

我怕爱的太早我们不能终老 提交于 2019-12-12 10:34:04
问题 I'm assuming the issue I'm having is related to caching. Code changes I make are not getting picked up when I debug. Most times I get served a previous version of the app. How do I prevent this from happening? 回答1: Ctrl+F5 is an easy way to refresh a page and clear the cache of that page at the same time - it may help :) 回答2: Try to add to the page that hosts Silverlight application on Page_Load: Response.Cache.SetExpires(DateTime.Now.AddSeconds(-100)); Response.Cache.SetCacheability

WCF service for Sl3

喜欢而已 提交于 2019-12-12 05:37:11
问题 I have written a simple service that uploads & downloads XML files. I want to implement it in a Silverlight 3 project, but on doing so I get following warnings: **Warning 1 Custom tool warning: Endpoint 'BasicHttpBinding_IxmlLoad' at address 'http://tony-pc/xmlLoadService/Service.svc' is not compatible with Silverlight 3. Skipping... ** **Warning 2 Custom tool warning: No endpoints compatible with Silverlight 3 were found. The generated client class will not be usable unless endpoint

Citation for Silverlight 4 backward compatibility?

夙愿已清 提交于 2019-12-12 03:46:47
问题 I have a strong impression that the Silverlight 4 client runtime will run a Silverlight 3 application perfectly well, but for the life of me I can't find a definitive statement from Microsoft to that effect. Can anyone provide a reference? 回答1: There are quite a few citations. Here's one from Tim Heuer, the Silverlight PM. http://timheuer.com/blog/archive/2010/04/15/silverlight-4-breaking-changes-backward-compatibility.aspx Yes, this is the situation we refer to as backward compatibility.

Silverlight 3 Element binding in a datatemplate

前提是你 提交于 2019-12-12 02:07:42
问题 <DataTemplate x:Key="StatusColumnTemplate"> <Canvas> <Rectangle Fill="Red" Canvas.ZIndex="1" Opacity="30" Height="{Binding Value, ElementName=Stacky}" Width="{Binding Value, ElementName=Stacky}"></Rectangle> <StackPanel x:Name="Stacky" Orientation="Horizontal"> <Image Height="16" Margin="0,8,0,0" Opacity="{Binding Comment, Converter={StaticResource OpacityConverter}}" VerticalAlignment="Top" Width="16" Source="grade.png" Stretch="Fill"/> <Image Height="16" Margin="5,8,0,0" Opacity="{Binding

Have an ObservableCollection update the UI as elements get added in

a 夏天 提交于 2019-12-12 01:35:34
问题 I'm writing a silverlight app and I'm trying trying to improve the loading time. When my page loads, I first initialize my ObservableCollection: this.MyItems = new ObservableCollection<Item>(); My UI is a ListBox which I bind to an ObservableCollection through code. In MainPage_Loaded: MyList.ItemsSource = App.ViewModel.MyItems; Now I bind the UI to my model. I expect this to be efficient as the collection is empty, and the rest of the UI can continue to load (not sure if my assumption is

Sharing Data between Silverlight ViewModels

主宰稳场 提交于 2019-12-12 01:28:57
问题 I have a complex User Control that contains some views, each have its own ViewModel. My question is how can all of these ViewModels share some data (for example an observable collection) without each one have a separate call to the service? 回答1: The service should be an abstraction of the data. Whether that data is pulled from a WS, DB, etc...should be irrelevant. Each ViewModel can contain a property which will be bound to by the View. That property can be an ObservableCollection<T> which

Is it possible to use Bings street view with ASP.NET or Silverlight?

ⅰ亾dé卋堺 提交于 2019-12-12 01:18:35
问题 I wont write web application, which will use street view of Bing(or Googles one if it can be used by ASP.NET or Silverlight). I found SDK for Bing map: http://www.microsoft.com/maps/isdk/silverlight/ But I need streets 3D view. Is it possible? Thanks. 回答1: Yes, it's possible - see Bing Maps Extended Modes. Also check out these articles: http://www.bing.com/toolbox/blogs/maps/archive/2009/12/10/adding-streetside-and-enhanced-birds-eye-to-your-applications.aspx http://innovativesingapore.com

Style in HeaderColumn in Datagrid

南笙酒味 提交于 2019-12-11 23:19:32
问题 Please see this following image of my datagird. Now want a border in headerColumn. I have tried columnheader style but it did not work for me. I want following style of header of datagrid.Please see the following image. How can i achieve this style in datagird. Thanks 回答1: You have to change the DataGrid template, not columnheader. In the default DataGrid template there is: <sdk:DataGridColumnHeadersPresenter x:Name="ColumnHeadersPresenter" Grid.Column="1"/> I think you have to edit over

putting Button inside a TextBlock(or maybe something else) to make it work like the one on video?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 22:13:58
问题 with Silverlight 4, I am trying to create the TextBlock just like the one on the Microsoft LightSwitch(Modal Window Picker) . So I can use it as a customControl inside the GridView columns. this is the link from youtube: you can see the one i am talking starting at time 08:54 / 14.50 on the Business label http://www.youtube.com/watch?v=GVApqFMqRbU Basically, when the mouse moves over to the Business textblock then the button will appear inside it on the right side.When the mouse moves outside

Is anyone else experiencing weird debug + crash behavior with Silverlight?

佐手、 提交于 2019-12-11 15:49:15
问题 I have noticed that after awhile of debug/tweakcode/debug etc that eventually Silverlight starts to crash all of my browsers (i.e. doesn't matter which i fire, they all just crash). If i then go to a site that has Silverlight, it works fine? so it has something to do with debugger + Silverlight not getting along? I then reboot and the problem goes away? Is anyone else experiencing this kind of weird behaviour? I have noticed though that if i put breakpoints on the code they all seem to halt,