silverlight-5.0

Re-use Animations in VisualStates

吃可爱长大的小学妹 提交于 2019-12-12 23:14:19
问题 What I want to do (in pseudo); <!-- As a resource --> <Storyboard x:Key="RepetitiveAnimation"> <DoubleAnimation .../> </Storyboard> <!-- In the templates --> <VisualStateManager> <VisualState x:Name="blah" Storyboard="{StaticResource RepetitiveAnimation}"/> </VisualStateManager> or even like; <VisualStateManager> <VisualState x:Name="blah"> <BeginStoryboard Storyboard="{StaticResource RepetitiveAnimation}"/> </VisualState> </VisualStateManager> What doesnt work; See above. You can do this in

Automation UI Testing tool for silverlight 5

你说的曾经没有我的故事 提交于 2019-12-12 19:12:17
问题 as you might know, silverlight 5 beta was resleased a while ago, and alongside its new features, I've encountered a serious problem. There isn't any testing tool that I've found that is able to test the Silverlight UI. I've tried Selenium, Coded UI, Telerik, Test Complete and perhaps even a few more I forgot to mention, all of which doesn't exactly support silverlight 5. The main problem is that they are unable to identify the silverlight 5 objects Does any of you know of a an automatic UI

unable to find a version of silverlight developer runtime installed

大城市里の小女人 提交于 2019-12-12 10:16:25
问题 In the following environment: -VS2012 -Windows 7 64bit -Microsoft Silverlight 5 SDK I have created a few lightswitch applications in VS2012 but I am running into an error when attempting to create a new one or open an existing lightswitch project. I receive a pop-up that says "unable to find a version of silverlight developer runtime installed". There is a link on the pop-up which starts a download but after downloading it, I still receive the same error. 回答1: I was able to fix the issue by

How to use aspnet_regsql.exe

纵然是瞬间 提交于 2019-12-12 08:27:15
问题 I'm having problems Creating Users in a Silverlight Business Application that uses the Local IIS Web Server. If I use the Visual Studio Development Server I have no problems, but once I check "Use Local IIS Web Server" in the properties page and run the application, whenever I try to create a new user using "login->Register now" I get an "Unable to connect to SQL Server" error. I found a similar problem as mine and the solution was to use aspnet_regsql in the command prompt. If I have to use

Prism 4.1 , Silverllight 5 and .Net 4.5.1 DelegateCommant for Button Not working

大兔子大兔子 提交于 2019-12-12 02:54:02
问题 I'm new to Prism. I'm trying to setup a test project on Prism. I download Prism 4.1 as I found out Prism 5 doesn't work with Silverlight 5 Yet. so My configuration is Like this. I've visual studio 2013 , Silverlight 5 and .Net 4.5.1. A basic exercise 1 Homepage divided in to 2 parts with 2 Prism module I followed for Hello world example. Done and working 1 Region Hello, 2end Regigon world Now in Hello Module I create 1 User form. Created 1 Use.cs with INotifyPropertyChanged etc. Followed MVVM

How to get the ScrollViewer to scroll after statically set index containing List inside?

寵の児 提交于 2019-12-12 01:37:27
问题 I am using Silverlight 5 and C# to create a scroll bar. I am have ListBox and I create a scrollbar and inside that scrollbar I display a List of items like this: (My code shows all the 7 items but I just want to display 3 items without scrolling rest 4 by scrolling) TextBlock txtblkShowStatus = null; ListBox lines = new ListBox(); ScrollViewer scrollViewer = new ScrollViewer(); scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Visible; lines.ItemsSource = param.Component

EventToCommand not working when migrate to v4 for SL5

纵然是瞬间 提交于 2019-12-11 19:20:05
问题 I have SL4 app with MVVMLight. I migrate it to SL 5 and got following error when compiling the app: The tag 'EventToCommand' does not exist in XML namespace 'clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.SL5 The xaml for this error is: xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.SL5" <i:Interaction.Triggers> <i:EventTrigger EventName=

If no Silverlight, redirect

ぃ、小莉子 提交于 2019-12-11 14:14:57
问题 I have the standard silverlight embedded code for handling the SL object in the Aspx page. How can I modify this to redirect to a aspx page if SL is not installed? <script type="text/javascript"> function onSilverlightError(sender, args) { var appSource = ""; if (sender != null && sender != 0) { appSource = sender.getHost().Source; } var errorType = args.ErrorType; var iErrorCode = args.ErrorCode; if (errorType == "ImageError" || errorType == "MediaError") { return; } var errMsg = "Unhandled

UnhandledException while fetching a dll from isolated storage in silverlight5

天涯浪子 提交于 2019-12-11 14:07:20
问题 I am trying to develop one silverlight app which will save and retrieve a dll from isolated storage. For example I have downloaded and saved System.Drawing.dll into isolated storage if it not exists in isolated storage. But if it exists in isolated storage, i am trying fetch that dll from isolated storage and then creating a object of that System.Drawing to draw a rectangle over captured image. But the problem is after fetching that dll it will return the following error. [Window Title]

Change DataTemplate to use depending on condition

天涯浪子 提交于 2019-12-11 10:51:28
问题 I have 3 user controls Control 1 Control 2 Control 3 I have a stack panel that contains an ItemsControl <UserControl.Resources> <DataTemplate x:Key="Template1"> <my:UserControl1 Height="117"/> </DataTemplate> <DataTemplate x:Key="Template2"> <my:UserControl3 Height="117"/> </DataTemplate> <DataTemplate x:Key="Template3"> <my:UserControl3 Height="117"/> </DataTemplate> </UserControl.Resources> <StackPanel Name="stackPanel3" Orientation="Vertical" VerticalAlignment="Bottom" Width="Auto">