When using .NET RIA Services and MVVM in Silverlight 3.0 is there a difference between the Metadata type from RIA Services and the ViewModel from the MVVM pattern? Are these the same thing or should they be keep separate?
The metadata type is a sealed internal class to the partial Entity class. There doesn't seem to be a proper separati...
I need to device a way to learn if the user who surfs to my site has dotnet framework installed on his computer, and which version (less important).
I need this to work at least with Firefox and IE 7 and up.
Any ideas?
(Is there any web service the Framework on the "localhost" exposes?)
...
Hello everyone, I was wondering if there was a way to programmatically retrieve the first frame of an AVI and get a bitmap image to show the user a preview. The MediaControl in Silverlight shows a preview for Silverlight supported video files but not AVI. Because I'm in a Silverlight environment I cannot use unmanaged code or libraries t...
I have a webservice that calls a method that returns a generic list of class BodyPartUrls like so:
public List<BodyPartUrls> getCharacterClassBody(int characterClassID)
{
var bpulst = new List<BodyPartUrls>();
var iqcb = ydc.ClassBodies.Where(cb => cb.characterClassID == characterClassID);
foreach (var icb in iqcb)
{
...
Is there a way to get the original image size in terms of width and height of a png image that is loaded in an image control?
...
I've got a very large image which I'd like to use for sprite techniques (à la css image sprites).
I've got the code below:
<Image x:Name="testImage" Width="24" Height="12" Source="../Resources/Images/sprites.png">
<Image.Clip>
<RectangleGeometry Rect="258,10632,24,12" />
</Image.Clip>
</Image>
This clips the source...
This seems does not work:
TabItem tabItem = new TabItem();
tabItem.Header = "New tab";
tabItem.Content = "Content";
tabControl.Items.Add(tabItem);
Anyone has done adding TabItem dynamically to a TabControl?
...
I have a ListBox with it's ItemTemplate bound to a DataTemplate. My problem is I cannot get the elements in the template to stretch to the full width of the ListBox.
<ListBox x:Name="listPeople" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
Margin="0,0,0,0" Background="{x:Null}" SelectionMode="Extended" Grid.Row="1"
...
I have a grid and I need to dynamically replace a control that resides in one of the cells. I don't know in terms of syntax to pinpoint the grid cell, as where do I put in the row and column number so I can delete whatever is in it.
...
I need to be able to disable the selection of future dates within the Silverlight DatePicker control - any ideas ?
...
I have webservices(that I myself created for database interaction) that are hosted in the same webproject that loads my silverlight project. Whenever I place a breakpoint to iterate through the code via the async methods, visual studio merely points me to the response event (completed event) skipping the code that is in the webservice th...
I've got a source of data that has HTML tags in it (B, I, A) and need to display this in a Silverlight ListBox.
Searching around it seems to be an issue but most of the posts are old and have to do with Silverlight 1 it seems.
What is currently the best way to display simple HTML with Silverlight, if nothing else, just the B, I and A ...
Hi
I have a silverlight project that calls into a wcf service. Everything works fine on my local machine.
However when I deploy to a virtual machine, with the exact same query the wcf service returns, but the result is empty.
I've tried debugging, but have not been able to get it to break in the wcf service.
Any ideas what the probl...
In Flash this question is answered really easy because you can set the X and Y coordinates of an object:
newxpos = object._x;
newypos = object._y;
How do you do the same in Silverlight?
...
I have a collection of ViewModels bound to a ListBox. I am trying to bind the IsSelected properties of each together. In WPF it works by setting the style:
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="IsSelected" Value="{Binding Path=IsSelected, Mode=TwoWay}" />
</Style>
This does not work in Silverlight. How can I...
Hi all,
I'm using the TreeView component from the Silverlight toolkit and I'm trying to get the parent of a selected node. The TreeView is bound to a series of objects, so directly working with a TreeViewItem appears to be out of the question.
<toolkit:TreeView SelectedItemChanged="DoStuff" DisplayMemberPath="Name" ItemsSource="{Bindi...
I'm trying to place a control that I have created on my canvas. The idea is to be able to dynamically add them on the fly. Like on a button click or at the end of a DispatchTimer. I have the following, but it doesn't work:
FirstCircleControl mc = new FirstCircleControl();
Canvas.SetLeft(mc, 100);
Canvas.SetTop(mc, 100);
...
I have a silverlight client accessing data through ado.net data services. One of my queries has a number of expand clauses, and gets back quite a number of entries. The xml response is enormous, and I'm looking for ways to make this more efficient.
I have tried:
Paging (not an option for this behaviour)
Http compression (some client ...
Or are there?
From a desktop software developer point of view (as opposed, perhaps, to that of a web developer), rich web application platforms, such as Flash or Silverlight, look like better tools for doing WYSIWYG text editors for the web. They are capable of more sophisticated input/output, data representation etc., and they are cons...
Hi..
Iam using Silverlight 2 in which I have a perfomance issue when I use a Listbox control. I am binding a List of objects of about 500 records which is taking 3-4 seconds for databinding.
But Iam not having this issue with DataGrid.
Does anyone have a answer for improving the perfomance issue in Listbox?
...