I want to remove geometry from canvas in Silverlight... I am able to remove it but removal is not immediately reflected. I mean when I perform GeometryGroup.Children.Remove(geometry) it is removing from tree but not from Canvas... Surprisingly removed geometry is still visible in the Canvas until I perform some mouse action.
Can anyone ...
In one of our application it is required to display bullet list in one of the Silverlight 2.0 container. We have decided to use HTML markup text for the same. While there are number of options available on Google like overlaying HTML div container etc., I would like to know what is the most workable way of doing this.
...
How can I make a silverlight listbox have all items be the same size and have them take up 100% of the listbox height. I.e. 1 item would be the height of the listbox, 2 items would each be 50% of the height of the list box, etc...
Edit - Here is the code
public class UniformPanel : Panel
{
protected override Size MeasureOverride(S...
Let's say I've got this XAML (created with Live ChartBuilder):
<Grid xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:datavis="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:charting="clr-namespace:Sy...
I have a resource defined in my Xaml file as follows:
<Path x:Key="myPath"
Data="M14.773241,18.080208 C12.373256,18.080208 10.239936,19.30687 10.239936,27.573483
L10.239936,36.106766 C10.239936,45.440037 12.586588,46.506699 14.986573,46.506699
C18.613216,46.506699 19.359879,42.400059 19.359879,35.3601 L19.359879,27.733482
...
Hello.
I use this:
<TextBox x:Name="Test"/>
<TextBlock Text="{Binding SelectionStart, ElementName=Test}"/>
but it always shows 0.
How can I treat it?
Thank you.
...
Is it possible to partition of list box into several columns. If yes which property is used for that in Silver light?
...
hi,
i've got a silverlight (v2) datagrid where some items are section headers and as such must appear with a different background colour.
i'm trying to do this with the following xaml:
<dg:DataGrid.RowStyle>
<Style TargetType="dg:DataGridRow">
<Setter Property="Background" Value="{Binding Path=Bac...
Is it possible to get the currently logged in user's username with Silverlight? You can assume that user has Windows OS and the Silverlight application is hosted in Internet Explorer. Getting the identity from server side with ASP.NET is not an option, this SL application will be hosted on a static HTML file.
...
I'm unable to use data binding in the ItemContainerStyle for a ListBox in Silverlight 3. It works fine in WPF. This is contrived example to demonstrate my problem. What I really want to is bind to the IsSelected property, but I think that this example is easier to follow.
I have a ListBox that is bound to a ObservableCollection<Item> of...
I have a TabControl whose items are bound to an ObservableCollection:
<TabControl ItemsSource="{Binding MyObservableCollection}" />
The tabs are added and removed as expected as items are added and removed from the collection. However, the SelectedItem reverts to -1 (meaning there is no selected tab) whenever the collection is empty. ...
Hi,
I am working on a silverlight application that pulls in objects from a web service and dynamically populates a chart (lineseries) based on object attributes. The problem is that I have too many datapoints (dots) on the lineseries and I was wondering if there is a way to remove them.
I used Setter to collapse the visibility of the d...
In a Silverlight application I sometimes need to connect to the web site where the application is hosted. To avoid hard coding the web site in my Silverlight application I use code like this:
WebClient webClient = new WebClient();
Uri baseUri = new Uri(webClient.BaseAddress);
UriBuilder uriBuilder = new UriBuilder(baseUri.Scheme, baseUr...
I'm using Tim Heuer's style to get an editable combo box from here:
http://timheuer.com/blog/archive/2008/11/05/silverlight-editable-combobox-using-styles.aspx
This is working well in my project circa the previous release of the Silverlight Toolkit. Unfortunately, attempting to use this style with SL3 RTM and the latest SL Toolkit does...
How can I access the ItemsPanel of a ListBox at runtime in silverlight?
...
Hi all,
I have the following web service:
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyTestClass
{
[OperationContract]
public List<TrackInfo> GetAll(string songName)
{
return new List<tracksInfo>;...
Hi,
In my Silverlight 3 app, I just added a Service Reference to the Exchange 2007 Web Service (EWS). After doing so, I got the following warning:
Custom tool warning: No endpoints
compatible with Silverlight 3 were
found. The generated client class will
not be usable unless endpoint
information is provided via the
constr...
Hello all,
I've got the most annyoing case here:
I've created a small silverlight application that loads an image from a remote path. The image is very wide, therefore it does not fit into the page properlly. When I view the image in the aspnet page, From some reason the silverlight application is cut to fit the current width of the pag...
OK I've been playing with Silverlight and ran into something interesting that I hope someone can explain. The MSDN documentation clearly states that it has a WebRequest.GetResponse() Method. I have created some code to get the latest messages from twitter. The code works fine in a console app but I get an error when its in a silverlig...
When using flash to upload a file to a web server, it sends cookies from IE only. This breaks things like session and FormsAuthentication in ASP.NET.
Does silverlight have this problem?
...