I've noticed that you can only call a WCF service from Silverlight asynchronously. This seems to be a pretty sound practice, especially when deploying over the internet, but I'm wondering why this restriction has been placed on the architecture. Is it purely to enforce good practice, or are there technical reasons for this?
...
Hopefully this is simple - I DataBind a bunch of labels and text controls in a Silverlight application (to DependencyProperties that I create in my class), but of course the text is empty at design time.
I'd still like to have an idea of how this will be laid out; is there a way to specify a design-time value, even though it's databound...
We currently use Silverlight within the browser. ASP.NET writes the Windows Authenticated user name to the ASPX page that the Silverlight control is on. The username is passed as a parameter in to the control when it loads.
How would you get the username with an out-of-browser application?
...
Hello,
I'm designing a Silverlight screen where I use an autocompletebox control.
One the item 'foobar' has been selected in the autocompletebox, it's text reads 'foobar'. If a user wants to select the 'quux' value, he has to:
delete the text from the control,
then to type 'qu' so as to be able to select 'quux'.
Is there a way to ...
For years I have exclusively worked with WPF and never touched Silverlight. Is there a quick tour for WPF pros that introduces me to Silverlight (4.0) its unique features and its differences to WPF?
...
Does anyone have any best practices or experience of localization in Silverlight. MSDN recommends binding the resource to the XAML, but the result is pretty messy:
<TextBlock Text="{Binding Path=Resource1.HelloText, Source={StaticResource LocalizedStrings }}"/>
A page of that is going to make the XAML unreadable!
Any shortcuts?
...
Hello,
I have a Silverlight application that has a DataGrid and a DataPager. The data source for these controls comes from a database. I am accessing this database through RIA Services.
When I try to load all of the records, I receive an error that says:
"Load operation failed for query 'GetData'. The server did not provide a meaning...
I've been reviewing the features of the RichTextBox control in Silverlight 4.
What I've yet to find is any examples of Loading and Saving content in the RichTextBox.
Anyone come across any or can shed some light on it?
The control has a BlocksCollection in which I guess one could use the XamlReader to load a bunch of markup assuming t...
I have button Content that I want to use in multiple buttons on a UserControl in my Silverlight application. Here is the code for one button:
<Grid x:Name="LayoutRoot" Background="White">
<Button Grid.Column="1" IsEnabled="{Binding PrivilegeChanged}" Height="24" Width="24">
<Button.Content>
<Canvas xmlns="http:...
i have a silverlight project
it references other dlls
in the bin folder it looks like this
myproject.dll
otherproject.dll
otherdll.dll
If I want to reference my project from another project what dlls do i need to copy over?
Can i just copy over the myproject.dll or will it break?
...
I'm trying to avoid "Add service reference" in my SL app because I want to use the EntityFrameWorks new self tracking entities. So I'm trying out ChannelFactory to create a channel and call my interface methods asyncronously from that.
It works, however I'm concerned about correctly closing/disposing ChannelFactory & the Channel. Is the...
I am having a strange issue opening up my UserControl in Expression Blend when using a Silverlight Toolkit control. My UserControl uses the toolkit's ListBoxDragDropTarget as follows:
<controlsToolkit:ListBoxDragDropTarget mswindows:DragDrop.AllowDrop="True" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
...
How can I add column headers to a Silerlight ItemsControl? I need a fast way to display a List of items that contains also some header info.
...
Hi,
I have a custom control I created that has ContentPresenter defined in generic.xaml. I can successfully embed other controls into the custom control, but it appears to inherit the layout manager of the custom control:
<Style TargetType="custom:Widget">
<Setter Property="Template">
<Setter.Value>
<ControlTem...
The following code draws a line, rotates it 30 degrees around its left end, restores it to its original position, rotates it 30 degrees around its right end, and then repeats several times.
How can I sequence these rotations without restoring the line to its original position in between? The first rotation (around the left endpoint) ca...
When I set the ViewportWidth of a Deepzoom image in Silverlight the zoom level changes very quickly. Is there a way I can set the time this zooming animation should take?
Thanks
...
Using Silverlight 3 to build a file upload app. It can upload files of just about any size - it works (depending on circumstance) with 4GB files. It uploads chunks of the files, so that if anything happens, the upload can be resumed from the most recent chunk.
The circumstance where uploading does not work is in IE and Chrome when uploa...
I've done some cursory reading on Silverlight and data access. From what I can tell, I'll need a web service to hook up a Silverlight application to a database while it's running in browser. Is this true when it goes OOB? Or is there another method that should be used then?
Some background:
We have a .Net 2.0 Winforms application. ...
I want to be able to route the double-click of a grid to a Command. I'm using Rx to simulate the double click but I can't figure out what control to attach the mouse handler to (the mouse event on the e.Row object in DataGrid.RowLoading event doesn't seem to work).
Anyone got any ideas?
Rx code for handling the Double click is as foll...
Can a Silverlight application copy a graphic/bitmap from the clipboard? If so, how is this done?
...