silverlight

Where is Silverlight 5 Developer runtime?

≡放荡痞女 提交于 2021-02-18 08:28:14
问题 On our web server I'm trying to install WCF RIA V1 SP2. When I try to install, it prompts me to install "Silverlight 5 Developer Runtime" first. I have already installed "Silverlight 5 Runtime" (Not developer) and Silverlight 5 SDK on the server. So I am searching for Silverlight 5 Developer Runtime, and I could not find any link to download it on Microsoft Web Site. On Stackoverflow, there are similar questions and links are provided. But those links are direct download link, and some are

get parent-note in treeview when the child-items are the same object

耗尽温柔 提交于 2021-02-11 14:21:43
问题 i have a TreeView with same in xaml createt TreeViewItems. And one note has a ObservableCollection as ItemSource. This works like a Charm. But now i want same Notes to every item of the list (for better organization). So i do this: This is my HierarchicalDataTemplate for the liste <HierarchicalDataTemplate DataType="{x:Type classes:Connection}" ItemsSource="{Binding Source={StaticResource ConnectionChilds}}" > <TextBlock Text="{Binding DisplayName}" /> </HierarchicalDataTemplate> And the

Need to know where StartAction configuration in Visual Studio is stored

◇◆丶佛笑我妖孽 提交于 2021-02-11 05:41:29
问题 In Silverlight project, I could right click and choose Properties. In the Debug tab, I can choose Out-of-browser application to debug the application in OOB mode. Can anybody inform where is this configuration stored? I've tried to search the .csproj file, OutOfBrowserSettings.xml, and AppManifest.xml, but I don't see this configuration. Any help will be appreciated. Thanks. 回答1: The changes are made to the .csproj.user file. <StartAction>OfflineApplication</StartAction> . . .

Trigger based on text property not working

ぐ巨炮叔叔 提交于 2021-02-11 05:16:51
问题 Here is the xaml that I am working on: <TextBlock Text="{Binding Title}" Margin="10,0,0,0" VerticalAlignment="Center"> <TextBlock.Resources> <Style TargetType="{x:Type TextBlock}"> <Style.Triggers> <Trigger Property="Text" Value=""> <Setter Property="Margin" Value="0" /> </Trigger> </Style.Triggers> </Style> </TextBlock.Resources> </TextBlock> When text = "" I want to clear up the margin. But somehow it does not work. 回答1: You must move Margin="10,0,0,0" from TextBlock to setter of Style :

Trigger based on text property not working

江枫思渺然 提交于 2021-02-11 05:08:21
问题 Here is the xaml that I am working on: <TextBlock Text="{Binding Title}" Margin="10,0,0,0" VerticalAlignment="Center"> <TextBlock.Resources> <Style TargetType="{x:Type TextBlock}"> <Style.Triggers> <Trigger Property="Text" Value=""> <Setter Property="Margin" Value="0" /> </Trigger> </Style.Triggers> </Style> </TextBlock.Resources> </TextBlock> When text = "" I want to clear up the margin. But somehow it does not work. 回答1: You must move Margin="10,0,0,0" from TextBlock to setter of Style :

Trigger based on text property not working

好久不见. 提交于 2021-02-11 05:04:43
问题 Here is the xaml that I am working on: <TextBlock Text="{Binding Title}" Margin="10,0,0,0" VerticalAlignment="Center"> <TextBlock.Resources> <Style TargetType="{x:Type TextBlock}"> <Style.Triggers> <Trigger Property="Text" Value=""> <Setter Property="Margin" Value="0" /> </Trigger> </Style.Triggers> </Style> </TextBlock.Resources> </TextBlock> When text = "" I want to clear up the margin. But somehow it does not work. 回答1: You must move Margin="10,0,0,0" from TextBlock to setter of Style :

wcf and session asmx rewrite with Silverlight

谁都会走 提交于 2021-02-10 16:18:01
问题 I have a web service that uses Session. I want to rewrite it as an WCF that can be hosted outside IIS. What is the best way to replace session using WCF that wont tie me to IIS in my rewrite? At first I was happy because of wsHttpBinding. Then I read that Silverlight can not use this and I was sad. How can this be accomplished. 回答1: Badly. I think Silverlight doesn't support any http based binding which would allow you creating stateful WCF service. You can make stateful WCF service with net

【教程】Spire.PDF教程:C# 复制 PDF 文档

痴心易碎 提交于 2021-02-10 11:43:08
Spire.PDF 是一个专业的PDF组件,能够独立地创建、编写、编辑、操作和阅读PDF文件,支持 .NET、Java、WPF和Silverlight。 Spire.PDF 支持通过Page.CreateTemplate()和Page.Canvas.DrawTemplate()方法来实现文档复制。下面的示例中,将演示如何复制PDF文档的方法,根据不同需求,以下方法分为了2种情况来进行复制: 从一个文档复制到另一个文档 在同一个文档内复制 用于测试的2个源文档: 从一个文档复制到另一个文档 //加载2个测试文档 PdfDocument doc1 = new PdfDocument(); doc1.LoadFromFile("test1.pdf"); PdfDocument doc2 = new PdfDocument(); doc2.LoadFromFile("test2.pdf"); //获取文档1中的第1页以及它的页面大小,并基于第1页创建一个PDF模板 PdfPageBase page = doc1.Pages[0]; SizeF size = page.Size; PdfTemplate template = page.CreateTemplate(); //复制第一个PDF文档的第一页到第二个PDF文档中 /*这里调用Insert(int index, SizeF size

Referencing enum defined in a class from within XAML

天涯浪子 提交于 2021-02-10 06:15:17
问题 In Expression Blend 4 (Silverlight project) I have a UserControl to which I have added a CLR property. This property is an enum type, which is defined within the UC. I have attached a ChangePropertyAction behaviour to an instance of the UC. However, the XAML parser gives the following error (among others): '+' is not valid in a name This is because the following XAML (snippet) has been generated: <local:SomeControl Margin="155,113,317,0" d:LayoutOverrides="Width, Height"> <i:Interaction

Add Service Reference not appearing

冷暖自知 提交于 2021-02-07 10:20:58
问题 In a Windows Phone 7 Silverlight project, I had a service reference to a WCF service. This morning when I opened up the project, suddenly the namespaces for my WCF service were unknown. The option for "Update Service Reference" in Solution Explorer was not there, so I deleted the Service Reference with the intent of re-adding it. But the option for "Add Service Reference" is also not there. Gone. Disappeared. Closed and re-opened the solution. Restarted VS2010 Ultimate. No dice. Anyone run