silverlight

adding tabs to tabcontrol from inside usercontrol

拥有回忆 提交于 2020-01-02 08:15:12
问题 How can I add tabs to a tabcontrol that exists in one usercontrol from another usercontrol that is contained within a tab itself?? Can I do it without passing in the tabcontrol as a parameter in the constructor, perhaps via some static global method? I've tried public static ObservableTabCollection FindCollectionFromUC(this DependencyObject depObject) { bool loop = true; var parent = (VisualTreeHelper.GetParent(depObject) as FrameworkElement); while (loop) { if (parent.GetType() is typeof

ComboBox IsEnabled Binding Question in Silverlight Xaml

﹥>﹥吖頭↗ 提交于 2020-01-02 08:07:20
问题 I have a ComboBox whose xaml is as follows <ComboBox Name="ComboBoxDiscussionType" IsEnabled="{Binding ElementName=ComboBoxDiscussionType, Path=Items.Count, Converter={StaticResource ComboBoxItemsCountToBoolConverter}}"/> and the converter takes the Items.Count and checks if its greater than 0 if its greater than 0 then enable it else disable it The goal is enable the ComboBox if the ComboBox only if it has Items in it else disable it, ( self Binding to its item.count ) the following is my

Silverlight with XNA vs purely HTML5

♀尐吖头ヾ 提交于 2020-01-02 07:54:27
问题 I recently decided to go into WP7 app development, but haven't actually started learning silverlight/xna; Only C#. I already know C++ quite well. my Dad, who works for Microsoft, has recently told me that there's no point to learning Silverlight because it will become irrelevant in the long run; due to HTML5's superiority. However, Im not aware of any way to develop apps for WP7 using HTML5, and I barely know anything about markup languagez anyway. I wanted to get some proffesional advice on

Silverlight 5 - comprehensive list of improvements/changes

。_饼干妹妹 提交于 2020-01-02 07:50:31
问题 Is there comprehensive list of what's new in silverlight 5? I'm seeing different blogs, etc but obviously the devil is in details. When they say better binding support what exactly different better? And so on.. I'd like to see detailed paper.. 回答1: Pete Brown has a list of the major changes in the RC. http://10rem.net/blog/2011/09/04/the-big-list-of-whats-new-or-improved-in-silverlight-5 回答2: Besides SO, I usually find the best detail covered in the MSDN Library. http://social.msdn.microsoft

RIA Services Domain Service Class web.config setting

烈酒焚心 提交于 2020-01-02 07:18:11
问题 I've added a domain service class to the server side project of my SL4 / EF / RIA Services application. I've managed to create all the necessary elements needed in my web.config section. (Btw, why isn't this generated for me when I created my Domain Service Class?) What I'm missing now is what to put in the contract attribute of my endpoint element: <service behaviorConfiguration="XXX.Web.RIAServices.MyServiceBehavior" name="XXX.Web.RIAServices.MyService"> <endpoint address="http://localhost

Parsing XML with Linq with multiple descendants

本小妞迷上赌 提交于 2020-01-02 07:16:48
问题 I have a probleme to parse multiple XML field This a the style of the XML : <students> <student> <student_id>1</student_id> <student_name>Mike</student_name> <subjects> <subject> <school_subject>History</school_subject> </subject> <subject> <school_subject>Maths</school_subject> </subject> <subject> <school_subject>English</school_subject> </subject> </subjects> </student> <student> ... </student> </students> I can parse it for the simple field like student_id and student_name but when there

Loop through rows in Silverlight DataGrid

故事扮演 提交于 2020-01-02 07:09:08
问题 I have a feeling i'm missing something obvious here, but i can not find a way to iterate through a DataGrids DataGridRow collection. I have a grid which has an itemssource of a collection of my class set. I am trying to iterate through the rows and highlight any rows that meet a certain condition but can't for the life of me see how. 回答1: You don't want to iterate through the grid. That's old-skool WinForms thinking. The Grids in WPF and Silverlight have been redesigned with MVVM in mind;

XAML Best Practices Guideline

家住魔仙堡 提交于 2020-01-02 07:00:11
问题 I have a large Silverlight application, and we have decided to redesign the whole interface. Since it is a good time to polish some issues, I would like to read some XAML good practices to take into account when designing. Does anyone know of a good Silverlight (or even WPF) book or guide to read about XAML? I'm not looking for a tutorial on XAML, I just want to know some good practices. Thanks! 回答1: This is a good link having video interview with people who have worked with wpf and

Silverlight. How to align text in InlineUIContainer content with outer text in RichTextBox

扶醉桌前 提交于 2020-01-02 06:57:10
问题 The task: Make the text content of the InlineUIContainer to be inline with the outer text. The standard behaviour of the InlineUIContainer content is when the bottom edge is inline with the outer text. It is possible to shift the position of InlineUIContainer with RenderTransform, but the value of Y has to be chosen for each font type and size - not a perfect way. <RichTextBox> <Paragraph> LLL <InlineUIContainer> <Border Background="LightGoldenrodYellow"> <TextBlock Text="LLL"/> </Border> <

Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4

会有一股神秘感。 提交于 2020-01-02 06:27:10
问题 Update : This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052 I solved this issue by switching to a full blown WPF application and using regular old Microsoft.Office.Interop.Word. But I'm still very interested in how to get this to work using the dynamic values from ComAutomationFactory. This may be more of a C# 4.0 question, but what I'm trying to do is leverage the ComAutomationFactory class in a trusted SL4