I need to bind the column Header text of a DataGrid to a Resource string in a XAML file. Does anybody know if this is possible ?
The column Header definition looks like this but I would like to replace the "MyHeaderText" with text from a resource file:-
<data:DataGridTextColumn Header="MyHeaderText" Binding="{Binding SomeData}" IsReadO...
If I have a user control defined:
public partial class MainFooter : UserControl
{
public System.Windows.Media.Color BkColor;
}
and it's xaml:
<UserControl x:Class="Test.MainFooter">
<Grid x:Name="LayoutRoot">
<Rectangle x:Name="rctBottom_Background2"
HorizontalAlignment="Stretch"
...
My silverlight app takes the user through a sort of wizard-like process, so for each screen in the wizard I've created a seperate user control. Then in my main user control (applications RootVisual) I just show/hide each user control when needed. That means that every user control is instantiated at once, is it possible to only have o...
Suppose I have a grid with some row definitions, and a child control in that grid. How would I go about setting the Grid.Row property of the child control programatically?
...
I'm taking Silverlight XAML and sending it to a web service that renders the XAML in a STA thread and generates a PNG image. All the XAML renders correctly except the <image> entries which 'appear' to load correctly when their Source property is set in WPF but the PNG does not show the referenced image - what am I doing wrong ?
The core...
What patterns do you think are best for silverlight games? Some main areas of focus are game performance, maximum number of objects reasonably updated in real time, ease of development and testing.
...
I'm defining a datagrid's RowDetailsTemplate in the following way:
RowDetailsTemplate="{StaticResource defaultTemplate}"
where
<UserControl.Resources>
<DataTemplate x:Key="defaultTemplate">
<StackPanel>
<TextBlock Text="default" x:Name="_txt" />
</StackPanel>
</DataTemplate>
<DataTemplate x:Key=...
Can I add new Silverlight 2.0 projects to my ASP.NET 2.0 web app and still target .NET Framework 2.0 in Visual Studio 2008?
ScottGu doesn't mention Silverlight in his post on multi-targeting.
Michael Scwartz's posts on Silverlight with Visual Studio .NET 2005 and How to create Silverlight Applications with Notepad refer to VS2005 or to...
Background: We have an offshore group working up a Silverlight 2 prototype for us. There is the conception that we need to be very concerned with lazy loading of various "screens"/parts of the application. The offshore group has decided to dynamically load assemblies in order to achieve this; however, I would think MS has already dealt w...
I'm trying to read a feed from Yahoo Pipes into a Silverlight Application. I keep getting a SecurityException, which sounds like a cross domain policy problem, but Yahoo pipes, if you go through the pipes.yahooapis domain, has a cross domain policy, so should be ok. I tried the exact same code, but going to the Digg API, and it works fin...
I have an ASP.NET page. What I want to do is pass in an ID field that is in the querystring.
So if my page is
http://www.mysite.com/default.aspx?id=35
I want a silverlight control that is on this page to have access to the id field. My silverlight control is going to get data for a grid and it needs to use the id.
...
I load data into my grid using a WCF service. When a user clicks 'Submit' on my silverlight 2 control, I want to send only the edited rows back to my WCF service for updating. Is there a good way to do this?
...
I have a ComboBox which I managed to keep its DropDown open after LostFocus. It's populated with a number of CheckBoxes. Whenever the user toggles one of these CheckBoxes, the whole application is updated by calling a DataService. During this time I'm blocking further user input using a transparent overlay rectangle (on top of the whole ...
I am trying to make a map application using DeepZoom.
It already works by loading tile images from the server.
The problem is, the loading speed is not good enough, there is always a small lag when new tiles are being downloaded.
My idea is to download the whole tiles package at once and then load them from local source.
I know that thi...
I have an image control that displays a large jpg file and takes around 50mb of memory.
How do I dispose of this control when it is no longer needed? I tried removing it from the parent container, setting it to null and chaning its Source property to null, but the memory usage still stays the same...
Any suggestions will be highly apprec...
I've been developing with XHTML, CSS and Javascript for about 4 years now.
I love it a lot and hate it a little. I've looked into Flash and Silverlight a bit, but as a developer, I'm not too keen on them.
One reason is that they lock you into a vendor and generally, into using that vendor's tools. E.g. Adobe Flash or Microsoft Visual S...
I get security exception when using System.Net.WebClient to do HTTP requests, which is due to the fact that crossdomain.xml or clientaccesspolicy.xml on the target server are either missing or are too restrictive. I know there is a good reason for this (cookies and cross-site request forgery), but it does not apply in my case since all I...
Is there a way to scale a silverlight app to 100% width and 100% height of the browser frame that the application is embedded in?
I'm aware of the full screen capabilities, I'd like it to sit nicely inside the browser.
...
I have a Silverlight project (with ASP.net MVC web project)
Suddenly, when I press F5 it takes like 20 seconds, from the moment that Internet explorer opens, to when the debugger is attached. Mind you, it is a project that works perfectly since about 3 months. The problem just started last days.
When I start without debugging, everythi...
Is it possible to bind an additional resource string to another attribute within a control. I already have one attribute bound to a resource but also need another. I can't see a way of doing it as I would need an extra DataContext but oviously can only have one.
The additional attribute I need to bind to is Content within the hyperlink ...