silverlight

Why are these asynchronous RIA Service calls executed in serial on the web server?

别来无恙 提交于 2019-12-22 19:37:31
问题 I'm calling the RIA Service method ImportSubcomponentFileSetFiles (which is an Invoke, not Query) twice as follows: foreach (var viewModel in FileSetViewModels.Where(vm => vm.IsSelectedForImport)) { DomainContext.ImportSubcomponentFileSetFiles(viewModel.SubcomponentFileSet.Id, callback => { //... DomainContext.Load(DomainContext.GetSubcomponentFileSetWithStatusQuery(subcomponentFileSetId), LoadBehavior.RefreshCurrent, callback2 => { //... }, true); }, null); } I can see in Fiddler that two

Why are these asynchronous RIA Service calls executed in serial on the web server?

半城伤御伤魂 提交于 2019-12-22 19:37:05
问题 I'm calling the RIA Service method ImportSubcomponentFileSetFiles (which is an Invoke, not Query) twice as follows: foreach (var viewModel in FileSetViewModels.Where(vm => vm.IsSelectedForImport)) { DomainContext.ImportSubcomponentFileSetFiles(viewModel.SubcomponentFileSet.Id, callback => { //... DomainContext.Load(DomainContext.GetSubcomponentFileSetWithStatusQuery(subcomponentFileSetId), LoadBehavior.RefreshCurrent, callback2 => { //... }, true); }, null); } I can see in Fiddler that two

Importing WMF (Windows Metafile) or any other vector file into a silverlight project

大憨熊 提交于 2019-12-22 19:32:28
问题 Is it possible to import WMF (Windows Metafile) or any other vector based file into a silverlight project? 回答1: You may want to have a look at free Silverlight Contrib project at codeplex. It comes with control to display WMF and EMF files. 回答2: You can use Paste2Xaml to convert WMF/EMF to XAML http://www.wpf-graphics.com/Paste2Xaml.aspx And (from the same source) ViewerSvg to convert SVG to XAML http://www.wpf-graphics.com/ViewerSvg.aspx Also, for SVG, InkScape has a XAML export feature and

Silverlight [WPF/E] 银光

坚强是说给别人听的谎言 提交于 2019-12-22 18:58:26
Silverlight [WPF/E] 银光 1、Silverlight是什么? WPF和XAML。大家知道Silverlight的原名叫WPF/E,它是WPF的一个子集。所以Silverlight包含了WPF技术,它可以大大的扩展浏览器中的页面元素。有了它我们可以创建图像、动画,媒体和其他胖客户端特性。超越了网页界面只能使用HTML的局限。XAML让我们可以方便的创建WPF元素。 JavaScript扩展。Silverlight对JavaScript进行了扩展,提供对WebUI更加强大的控制能力和与WPF元素协同工作的能力。 跨浏览器、跨平台支持。一个Silverlight程序可以在大多数的浏览器上运行,这样我们开发Silverlight应用的时候就不用考虑他将运行在什么平台上。 可与现有应用程序集成。Silverlight可以无缝的与现有的JavaScript和Asp.Net Ajax 代码集成,并作为已创建功能的一个重要的补充。 采用.NET编程模型和相关的开发工具。我们可以采用托管的JScript和IronPython来编写Silverlight应用程序,也可以使用C#和Visual Basic来完成。你还可以使用Visual Studio 这样的工具来创建Silverlight应用程序。 LINQ。Silverlight包含LINQ,它可以让你在

Listpicker Multiple selection and DisplayMemberPath

会有一股神秘感。 提交于 2019-12-22 18:42:56
问题 I have a collection of my custom entity that is bound to the listpicker using the ItemsSource property. I also have selection mode set to Multiple so I have a checkbox with each item in the FullMode picker. This picking works, fine, and I can easily access all objects that were picked thru code. What I'm having troubles with is the DisplayMemberPath . I want to display something more friendly than the namespace of the object that is selected. Perhaps a count of selected items, or a comma

ColorAnimation Gradient On WPF

巧了我就是萌 提交于 2019-12-22 18:26:16
问题 <LinearGradientBrush x:Key="BrushPrincipalBorderBlue" EndPoint="1.3,1" StartPoint="-0.2,0"> <GradientStop Color="#FF030637" Offset="1"/> <GradientStop Color="#FF0E0F31" Offset="0.166"/> <GradientStop Color="#FF2E2F70" Offset="0.629"/> <GradientStop Color="#FF030637" Offset="0.63"/> </LinearGradientBrush> <Storyboard x:Key="GoToBlue"> <ColorAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="Background.GradientStops[3].Color" Duration="0:0:0.5" To="{DynamicResource

WP7 list width issue when orientation changs

我是研究僧i 提交于 2019-12-22 17:59:39
问题 I want to make a dynamic filling list that fill the screen what ever the content is so here what I did: first: the design <Border BorderBrush="Black" CornerRadius="25" Margin="0,10,0,0" BorderThickness="1" Background="Aqua"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="auto"/> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center"> <Button

WCF/Silverlight: Why use a ChannelFactory instead of a Client?

喜夏-厌秋 提交于 2019-12-22 17:39:13
问题 In inherited a project that uses a ChannelFactory instead of a Client for WCF calls. Why would you do that? Also, is it safe to cache the result of a ChannelFactory.CreateChannel() call or should you create a new one each time? 回答1: Creating the WCF client is a two-step process: creating the channel factory using that channel factory, create the actual channel Step 1 is rather expensive in terms of processing power and speed - so if you can create the channel factory and then cache is

Pass value from child window back to MainPage

守給你的承諾、 提交于 2019-12-22 15:03:27
问题 I have a child window in Silverlight and I wish to send a string value to populate a text box in the applications MainPage.xaml. How can I pass the value back? I have tried this - MainPage m = (MainPage)Application.Current.RootVisual; m.textBox1.Text = value; 回答1: You should do this the other way around. The parent that opens the child window should attach an event handler to an event of the child, for example: childwindow.ButtonClicked += new EventHandler(childWindow_ButtonClicked); Within

Pass value from child window back to MainPage

喜欢而已 提交于 2019-12-22 15:03:21
问题 I have a child window in Silverlight and I wish to send a string value to populate a text box in the applications MainPage.xaml. How can I pass the value back? I have tried this - MainPage m = (MainPage)Application.Current.RootVisual; m.textBox1.Text = value; 回答1: You should do this the other way around. The parent that opens the child window should attach an event handler to an event of the child, for example: childwindow.ButtonClicked += new EventHandler(childWindow_ButtonClicked); Within