i do a localized application using silverligth 4.
after changing my culture thread i do
LayoutRoot.Children.Clear();
MainPage MyPage = new MainPage();
LayoutRoot.Children.Add(MyPage);
but i get an error "value does not fall within the expected range"
how can i reload the layout to apply the language changing
...
Hello --
We are moving our SL3 app to SL4. First step was to open it in VS2010; it converted w/o problem.
However, parameters specified for the start page are not passed along.
That is, if we specify
ourStartPage.aspx?Slam=Dunk&Glass=Sun
in app.xaml.cs, Application_Startup(), e.InitParams is empty.
How do we fix this?
Thanks for any...
I have a chart showing bound data as tooltips and it works well. I have added a magnifier(set of behaviors class) that captures a bitmap image at two times scale that shows in a circular area over the hover spot. The tooltip does not display. I have tried a custom tooltip service but cannot bind it to the behaviors. I added the toolt...
I am building for Silverlight 4, and I handle MouseRightButtonDown events and build my own ContextMenu's (a class from the Silverlight Toolkit). I would like to add the classic "Silverlight" menu item to my menus, and give the user the familiar option of launching the "Microsoft Silverlight Configuration" dialog. This is the dialog let...
I'm having a little trouble in silverlight with a databound ListBox containing databound TextBox elements. The items display correctly in the list and the TextBox is populated correctly but I can't get focus on the TextBox in the list. If I hover over the edges of the TextBox it highlights but it won't let me click into it to edit the te...
I've got a Silverlight 4 custom control that basically is several Canvas elements wrapped inside a ScrollViewer. The user can set a property to determine whether to scroll or zoom when using their mouses wheel. In the custom control's MouseWheel event, I check to see if they want to scroll or zoom. If zooming, I determine the delta an...
I have just found this page indicating the support for Silverlight mouse cursors:
http://msdn.microsoft.com/en-us/library/system.windows.input.cursor(VS.95).aspx
Is that it!!! :-| what are they thinking, at least there is stylish looking Eraser!
Is there aany other way to use custom cursors? How efficient/usable would it be to hide t...
[Disclaimer: I'm ASP.NET MVC Developer]
Hi,
I'm looking for some best practices with implementing MVVM pattern with WCF RIA in Silverlight 4.
I'm not looking to use MEF of IoC for locating my ViewModels. What I would like to know is how to apply MVVM pattern with Silverlight 4 and WCF RIA.
I don't want to use other stuff like Prism...
I have a small Silverlight 4 app that essentially consists of a grid containing a label and a combo box. When I click the label, I replace it with a second text box so that I can edit the label (much the way you can edit the name of a Silverlight control in VS2010).
I have a LostFocus event handler on the text box that will end editing...
When I convert silverlight 3.0 project to 4.0 then I am getting resource dictionary following error.
The file is not part of the project or its 'Build Action' property is not set to 'resource'
My app.xaml code is below for the resource dictionary.
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.Mer...
Looking at the sample .html file generated on a silverlight 4 project we see that the object tag is inside a form. (and the form has runat="server" for that matter)
Is there a reason that the plug-in must be within a form, and for that matter what does runat="server" mean in an html file (note I understand it's purpose in an aspx file)...
This is strange. I load the System.Windows.dll (C:\Program Files (x86)\Microsoft Silverlight\4.0.50401.0\System.Windows.dll) in the Reflector and do a search for HtmlBrush but nothing comes up. Anyone got a clue why?
...
I recently upgraded a Silverlight 3 web project to Silverlight 4. All i had to do was rebuild the code in VS 2010 with toolkit et al installed and host it on server.
On testing, the SL xap showed up in IE 7 and worked as expected. But, on Firefox, the xap is getting downloaded but doesn't showup. Little bit of firebugging shows that, th...
I love being able to add my own context menus to my application but I've run into a bit of a dilemma, how do I override the menu for my entire app (video player) and also provide the user ability to go into the Silverlight Configuration dialog.
For reference I'm talking about the following dialog box
http://msdn.microsoft.com/en-us/lib...
Im trying to get the specific template in my resource dictionary. This is my resource dictionary
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:view="clr-namespace:Test.Layout.View"
xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
xmlns:x="http...
Hello,
We have an application structured roughly like this:
<Grid x:Name="LayoutRoot">
<ScrollViewer>
<Canvas x:Name="canvas">
<StackPanel> < Button /><Slider /><Button /></StackPanel>
<custom:Blob />
<custom:Blob />
<custom:Blob />
</Canvas>
</ScrollViewer>
</Grid>
Each Blob consists of 1 or more rectangles, lines, a...
I am getting the following exception for code that used to work in silverlight 3 but has stopped working since upgrading to silverlight 4:
System.AccessViolationException was unhandled
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
namespace SilverlightApplication1
{
...
Whilst building a Windows Phone 7 app. using the MVVM pattern we've struggled to get to grips with a pattern or technique to centralise navigation logic that will fit with MVVM.
To give an example, everytime the app. calls our web service we check that the logon token we've assigned the app. earlier hasn't expired. We always return som...
I am developing a product scrolling feature where products info( product image, Name, price)will be shown side by side horizontally. i need to show the image of the product and also its reflection. under the reflected image i need to show the Prod Name and its price.
The problem here is i dont want to show the complete reflected image.
...
I am following a tutorial and have the same scenario except I'm not using ASP.NET but MVC 2 instead. I am using VS 2010, adding a Silverlight 4 project to my existing app. I need to add a domain service class but there is no option for it in this MVC APP. What do I need to use?
...