silverlight-4.0

How to Hide or Remove Zero values in line series RadChart

孤者浪人 提交于 2019-12-14 01:28:01
问题 I'm using Radchart,i want to remove the line series which is showing value zero.Is there any possible way to hide or remove the value showing zero.Please provide any solution or code. Thanks in Advance. 回答1: After 2 days of struggle i have found the solution how to hide or remove the line series which contains zeros.I have four line series in that 4th line series contains zero's i which i want to hide those zero values and i have done. before implementation After implementation code //-------

Splitting a filename

你离开我真会死。 提交于 2019-12-14 00:54:01
问题 I've a filename: NewReport-20140423_17255375-BSIQ-2wd28830-841c-4d30-95fd-a57a7aege412.zip How can i split the above filename to 4 string groups. NewReport 20140423_17255375 BSIQ 2wd28830-841c-4d30-95fd-a57a7aege412.zip I tried: string[] strFileTokens = filename.Split(new char[]{'-'} , StringSplitOptions.None); but i'm not getting the above required four strings 回答1: You can specify the maximum number of substrings to return: var strFileTokens = filename.Split(new[] { '-' }, 4,

Silverlight 4, Validation error state doesn't get reflected in my own custom UserControl

霸气de小男生 提交于 2019-12-13 18:23:17
问题 Validation error state doesn't get reflected in my UserControl. I was following this similar StackOverflow question to solve it. I am not using an MVVM approach by choice. It's using WCF RIA Services with Entity Framework. But it didn't seem to help me, what am I missing, or why is my scenario different? Note: If I put a TextBox (not inside the UserControl) in my main page, it shows validation error. This is my UserControl code: <UserControl x:Class="TestApp.MyUserControl" xmlns="http:/

Binding pushpins to Bing maps

拟墨画扇 提交于 2019-12-13 18:21:14
问题 Im working a a WP7 project, and try to bing pushpins to bing maps a particular way, but it just wont work. It seems to read the XML file ok as it counts all the items, and then loads the map, but just puts the black pushpin in the top right hand corner of the map. Would be grateful for any ideas why its not dispalying the pushpins. Many thanks. I think I have included all the relevent code.. namespace maps_data_test_2 { public class LocationData { public Location Location { get; set; } public

How do I call a javascript function once a silverlight control has finished loading?

余生长醉 提交于 2019-12-13 18:19:13
问题 I need a silverlight xap to notify the page somehow once it's finished loading. I was trying to use Javascript to call into the control via $(document).ready(...) but it looks like ActiveX controls can continue loading after the document ready event fires. Is there an event on the object tag I can have call a function? 回答1: you need to provide the Plugin with an onload param that contains the name of function to execute once the application has loaded. Html:- <object ....> <param name="onload

Why does System.Numerics.BigInteger not have a Parse method in Silverlight 4.0, but does in .Net 4.0?

半世苍凉 提交于 2019-12-13 17:31:50
问题 I've come across a weird discrepancy between BigInteger s used by .Net 4.0 and Silverlight 4.0; In .Net, BigInteger has a Parse and TryParse method where as in the Silverlight version, it does not have either of these. If you look at the .Net version of System.Numerics in Reflector, you also see that when you disassemble the code, every single method is just empty, and it lacks the BigIntergerBuilder and friends of the Silverlight version: public static BigInteger Parse(string value) { } What

text along curvature path like circular or arc in silverlight

时光毁灭记忆、已成空白 提交于 2019-12-13 17:01:17
问题 I am designing a image editor in silverlight 4.0 Looking for typing text along curvature path like circular or arc Something similar to what is available in photoshop http://youtu.be/6L6qAKkBQxc Is there any code snippet available on this? Thanks 回答1: You need a PathListBox (from Microsoft.Expression.Controls) here. Basically you just need to create a Path and convert it into PathListBox , then bind the Text property of a TextBlock (where you specify the text you want) to the ItemsSource of

Edit Title in Silverlight 4

大兔子大兔子 提交于 2019-12-13 15:26:07
问题 We are developing an out-of-browser Silverlight 4 application and want to change the title after the application loads. Example: public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); this.Loaded += new RoutedEventHandler(MainPage_Loaded); } public string UserName { get; set; } public string VersionNumber { get; set; } void MainPage_Loaded(object sender, RoutedEventArgs e) { string title = string.Format("MyApplication {0} {1} ", this.VersionNumber, this

Is it possible to launch a Silverlight 4 OOB application from a web page?

女生的网名这么多〃 提交于 2019-12-13 14:08:17
问题 I'm planning to build a download manager application and would like to be able to launch the application when a user clicks a button the site. The application would obviously already need to be installed on the client machine. There are a few reasons why this needs to be written using Silverlight, but they're not really relevant to the question. I only mention it so that people don't suggest that I use another technology. 回答1: I think that is not possible according to this post post 1 and to

Deserializing json string into an object - Silverlight

非 Y 不嫁゛ 提交于 2019-12-13 13:42:51
问题 I've spent a good while this afternoon trying to implement the deserialization of JSON within a string, at first I was using DataContractJsonSerializer as my environment is Silverlight however it does not appear to support using a Dictionary out of the box (Raised in many other SO questions). As an alternative I decided to use JSON.NET for the time being (Based on the answers to the aforementioned SO questions) and i've hit the following problem. I want to deserialize the JSON below: {