silverlight

What is caching the image data in my Silverlight 4 application?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-24 23:30:23
问题 Something is holding on to the images in my Silverlight application. This is a problem because this is a catalog application with a lot of images that the user can browse through. If the user browses through every library provided the application will run out of memory and crash. I know it is a problem with images because if I disable images the private working set never exceeds 170 MB. I have a user control ( DownloadImage ) that shows a progress bar while the image is downloading. It is the

How do I pass an enum in this context

故事扮演 提交于 2020-01-24 16:37:07
问题 I want to change the below function that I have written so that it will take the Enum (MyColors in this instance) as argument so that I can use the function on any suitable contiguous Enum. Everything I have tried so far has failed so I'm stuck. private enum MyColors { Red, Green, Blue } private String GetNext(String colorName) { MyColors colorValue; String colorNameOut = String.Empty; if (Enum.TryParse(colorName, out colorValue)) { MyColors initial = colorValue, next = colorValue; for (int i

Can I expand downloading images to several threads?

人盡茶涼 提交于 2020-01-24 13:22:56
问题 I had a problem with ListBox , which doesn't work fine with my collection (nested listboxes, non static size, etc). I tried DeferredLoadListBox, but it requires static height(not my variant). So, I tried ItemsControl with ScrollViewer , and it works realy good! I have smooth scrolling, no lags, its exactly what i needed. But! As I understand, ListBox download content dynamically, only when it need this content, and ItemsControl loads all the content in one time. And its a problem, because I

Can I expand downloading images to several threads?

那年仲夏 提交于 2020-01-24 13:22:16
问题 I had a problem with ListBox , which doesn't work fine with my collection (nested listboxes, non static size, etc). I tried DeferredLoadListBox, but it requires static height(not my variant). So, I tried ItemsControl with ScrollViewer , and it works realy good! I have smooth scrolling, no lags, its exactly what i needed. But! As I understand, ListBox download content dynamically, only when it need this content, and ItemsControl loads all the content in one time. And its a problem, because I

Can Silverlight do peer-peer comms without a server or ship a “local server”?

一个人想着一个人 提交于 2020-01-24 13:13:22
问题 I'm discussing Silverlight (v4 onwards) as a possible platform for a program that will need two instances to communicate directly. As far as I can tell, this is still not possible with the SL sockets assumptions of client-server comms. Assume it is for a highly interactive two-player game and you will have a good idea of the performance requirements. It doesn't need to scale to thousands of users with the same server so the performance and scaling issues which concern most people are

Google maps in Silverlight

ぃ、小莉子 提交于 2020-01-24 11:30:47
问题 What is the best/easiest way to integrate google maps and silverlight? I would like to display a google map within a silverlight canvas, where the canvas will be surrounded by other silverlight controls that drive the map. 回答1: If you really need to use Google maps inside your Silverlight application and you can run your application in out of browser mode then you might want to take a look at the WebBrowser control for Silverlight 4 Using the WebBrowser control, you could get started with

Looking for Tree Grid control for Silverlight [closed]

自古美人都是妖i 提交于 2020-01-24 06:47:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Quick question: Is it somewhere available - preferably free / opensource or at reasonable price? EDIT To be more precise, there's an example of winforms control (SandGrid from Divelements) what I'm looking for. Forming a tree is important, grouping by isn't necessary. alt text http://www.divelements.com/net

Getting the index of multiple selected items in a listbox using Silverlight

被刻印的时光 ゝ 提交于 2020-01-24 04:38:08
问题 I have a ListBox which is made up of Grid Items in Multiple SelectionMode in Silverlight 3.0. When I use ListBox.SelectedIndex it only returns the first item which is selected. I would like to be able see all of the selected items such that it would return all of the selected item indexes' such as; 2, 5, and 7, etc. Any help? Cheers, Turtlepower. 回答1: You can find the selected indexes by iterating through SelectedItems and finding the objects in the Items property, like this: List<int>

silverlight…hyperlinkbutton to file using relative path

╄→尐↘猪︶ㄣ 提交于 2020-01-24 03:28:12
问题 I am trying to use a hyperlinkbutton in silverlight to enable the user to download a word document. I don't care if a file save as box appears or if the word doc opens in a new browser. I get the error "cannot navigate to locations relative to a page." I've seen it posted that you can do this with the absolute path (www.domain.com/filename.doc) but there's got to be a way to make this relative (/docs/filename.doc). Anyone know how? 回答1: The HyperlinkButton only works with absolute URLS, so

need my button disable when the textbox is Empty or Null in Silverlight MVVM?

蹲街弑〆低调 提交于 2020-01-24 00:32:08
问题 Hai i have doing one simple app in Silverlight5 with MVVM pattern. In design page i have three textbox and one button. here my requirement is if the 3 textbox is empty or null means the button is going to be disabled. how to achieve this.. any help..? My Problem is: 1) It is worked for the 1st textbox. while i entered anything in the 1st textbox the button is in disabled mode. But if i moved to the 2nd TextBox means the button is enabled. 2) I need all the textbox will Validated after that