silverlight-3.0

What's this folder structure for? (Local user GAC?)

旧巷老猫 提交于 2019-12-24 17:41:52
问题 I've just stumbled across this folder structure on my machine which contains lots of .NET assemblies similar to what you might find in the system GAC. This puzzled my as I've never seen this folder structure before and it makes me wonder, is there such a thing as a local user assembly cache? The folder structure is: C:\Documents and Settings\ [username] \Local Settings\Application Data\assembly\ and contains folders and files that look like: \dl3\8M830QM6.ON7\NJ9Q0EA9.TZO\623c8efc\00461250

How to Text wrap and add … at the end

不想你离开。 提交于 2019-12-24 15:38:32
问题 Lets say you have this text "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna." put in a textblock with TextWrapping="Wrap", the textblock only supports 2 lines, so how do I add the usual "..." at the end of the text so as to say there is more to read 回答1: This is not trivial to answer for use in SilverLight because you cannot use native

AG_E_NETWORK_ERROR in SIlverlight

霸气de小男生 提交于 2019-12-24 10:06:21
问题 I have few directories in my IIS server (physical location inetpub\wwwroot\SampleApp) The directories contain .jpeg images. I am iterating these images in C# from Silverlight. And this is how I assign the image on the server to my Image placeholder in SL BitmapImage bi = new BitmapImage(); bi.UriSource = new Uri(url + sharedLink + currentSlide + ".jpg"); PresentationImage.Source = bi; where PresentationImage is the container for Images. Now, when I can access some of the directories and

Slider controle is not moving automatically?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 07:45:06
问题 I am using Slider control for audio player in silverlight 3.0 application. I can do forward and backward the slider.The problem is the slider is not moving automatically even the audio is playing. How to get it?? 回答1: Sounds to me that you don't have TwoWay binding set up. In you binding statement, use Mode=TwoWay. Maybe I'm not completely understanding your question, but that's the first thing I would look at. 来源: https://stackoverflow.com/questions/2758637/slider-controle-is-not-moving

Object.ReferenceEquals returns incorrect results (in Silverlight 3 at least)

☆樱花仙子☆ 提交于 2019-12-24 07:28:25
问题 I just discovered a very strange behaviour. I have a class with a string property. In the setter of this property I compare the old value with the new value first and only change property if the values differ: set { if ((object.ReferenceEquals(this.Identifier, value) != true)) { this.Identifier = value; this.RaisePropertyChanged("Identifier"); } } But this ReferenceEquals almost always returns false! Even if I call object.ReferenceEquals("test", "test") in Quick Watch I get false. How is this

Is it possible to validate XML against an XSD in Silverlight 3?

喜欢而已 提交于 2019-12-24 03:15:44
问题 Is seems like all the commonly-used classes for XMLValidation, for example XmlValidatingReader, are absent (or present "for interface compatibility only") in Silverlight. Is there any way to validate XML against an XSD schema in Silverlight? 回答1: Sorry, but I still don't think this is still possible in SL3: http://forums.silverlight.net/forums/p/53434/138536.aspx If you really , really need to reuse a .NET assembly in SL you can do so, but it means packaging that up with your application. I

Stream a WAV File From The Web In Silverlight 3

时间秒杀一切 提交于 2019-12-24 01:38:26
问题 I've managed to discover Gilles Khouzam's playback implementation for WAV files in Silverlight 3 and while that would be the majority of the battle, I'm stuck on a final detail: how do I pull a wav file from the web some place and then feed it into his WaveMediaStreamSource for playback? Here's the closest I've come: public MainControl() { // Required to initialize variables InitializeComponent(); PlayButton.Click += PlayButtonClicked; } private void PlayButtonClicked(object sender,

Error using ResourceDictionary in Silverlight

◇◆丶佛笑我妖孽 提交于 2019-12-23 20:14:16
问题 In my Silverlight app I have UserControl and I want to reference a StaticResource in a ResourceDictionary that is in a separate XAML file. My UserControl looks like this: <UserControl x:Class="ResourceDictionaryHeadache.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable=

Linq 2 SQL , insert Objects with associated child objects List into database , Silverlight RIA

梦想与她 提交于 2019-12-23 18:37:12
问题 I am doing small Silverlight app which will allow users to Create orders. I have created Linq 2 SQL dbml and dragged there my database tables, "Orders" and "OrderLines" , there is an association between them. Order.ID ~ OrderLine.OrderID, so then i created DomainService for my tables, where i enabled client access, it generated for me the methods, Insert,Update,Delete,Get, for Orders and OrderLines, now i am creating New Order from my silverlight application, the usercontrol looks like this:

Silverlight passing JSON object incorrectly?

北城以北 提交于 2019-12-23 17:33:50
问题 I have a Silverlight class marked with the ScriptableType & ScriptableMember and I expect to be able to pass the object from Silverlight to javascript. When I call JSON.stringify (in javascript) I expect to receive a JSON representation of the object but all I get is {} The class is defined as: [ScriptableType()] public class MyEvent { [ScriptableMember(ScriptAlias = "eventContent")] public int EventContent { get; set; } } I pass the object from Silverlight like this: var jsonObject = new