silverlight

Silverlight 5 - Debugging npctrl.dll crash

纵然是瞬间 提交于 2020-01-10 12:42:25
问题 I'm getting a really frustrating silverlight plugin crash which affects both IE and firefox. The error from the event log is: Faulting application name: iexplore.exe, version: 9.0.8112.16421, time stamp: 0x4d76255d Faulting module name: npctrl.dll, version: 5.0.61118.0, time stamp: 0x4ec5fc64 Exception code: 0xc0000094 Fault offset: 0x0001d720 Faulting process id: 0x434 Faulting application start time: 0x01ccf0b878b55ca7 Faulting application path: C:\Program Files (x86)\Internet Explorer

What is the best practice for compiling Silverlight and WPF in one project?

和自甴很熟 提交于 2020-01-10 10:24:19
问题 I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all in one project. My ideal solution would be a single project that allows multiple configurations. So, Configuration: Silverlight would generate: Company.Controls.Silverlight.dll

What is the best practice for compiling Silverlight and WPF in one project?

无人久伴 提交于 2020-01-10 10:23:08
问题 I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all in one project. My ideal solution would be a single project that allows multiple configurations. So, Configuration: Silverlight would generate: Company.Controls.Silverlight.dll

Custom styled listbox - how can I keep the style for a selected item?

匆匆过客 提交于 2020-01-10 04:07:05
问题 I have a styled listbox. Listbox items change color when hovered over and when selected. Hover and select work fine. But when selecting an item then taking the mouse off it and coming back to hover over it causes it to go back to hover/unselected state even though it is still selected. How can I keep the listboxitem in a "selected" visual state? <Style x:Name="myListBoxItemStyle" TargetType="ListBoxItem"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="ListBoxItem">

How do you debug a XamlParseException?

泪湿孤枕 提交于 2020-01-10 02:30:27
问题 I'm trying to use a 3rd party component in my Silverlight application and when I try to create an instance of the control, I get a XamlParseException: {System.Windows.Markup.XamlParseException: **Set property 'System.Windows.FrameworkElement.Style' threw an exception.** [Line: 0 Position: 0] ---> System.Windows.Markup.XamlParseException: **Elements in the same ResourceDictionary cannot have the same x:Key** [Line: 1739 Position: 47] at MS.Internal.XcpImports.CreateFromXaml

PDF-viewer for Silverlight for Windows Phone 7 (SilverDox?)

萝らか妹 提交于 2020-01-10 02:07:31
问题 Is there any PDF-viewer control which can be used in a Silverlight for Windows Phone 7 application? I've found this thread: Silverlight 4.0 PDF Viewer and tried PDFTron's SilverDox but I didn't have any luck because my application crashes with the exception: WindowsPhonePanoramaApplication1.dll!WindowsPhonePanoramaApplication1.App.RootFrame_NavigationFailed(object sender, System.Windows.Navigation.NavigationFailedEventArgs e) Line 109 + 0x5 bytes C# ..which is quite strange, I think. However,

Deep Copy using Reflection in an Extension Method for Silverlight?

霸气de小男生 提交于 2020-01-10 00:27:28
问题 So I'm trying to find a generic extension method that creates a deep copy of an object using reflection, that would work in Silverlight. Deep copy using serialization is not so great in Silverlight, since it runs in partial trust and the BinaryFormatter does not exist. I also know that reflection would be faster then serialization for cloning. It would be nice to have a method that works to copy public, private and protected fields, and is recursive so that it can copy objects in objects, and

Event fires more and more times

若如初见. 提交于 2020-01-09 07:57:22
问题 I have a silverlight mvvm application that loads main view with 2 user controls loaded into 2 ContentControls, one with listbox showing items and other with edit button. When i click edit button, 2 new user controls load into the ContentControls, one showing data to edit (EditData) and other having Save and Cancel button (EditAction). When i click save button, it raises an event that is defined in seperate GlobalEvents.cs class like: public event EventHandler OnSaveButtonClicked; public void

Update listBox on Main page from button click event on child window.

…衆ロ難τιáo~ 提交于 2020-01-07 08:29:28
问题 I have a Main page that contains a listBox. When a user selects a profile form the list box, this opens up a child window called pWindow . This window as the option to delete the current profile via a hyperlink button that opens up a another confirmation window called dprofile . My question being is it possible that once a user has confirmed to delete the current profile they are in, and confirmed it in the button click on dProfile , how can I update the listBox in the first Main page so that

.Xap file is not generated in Sivlerlight Web Application

杀马特。学长 韩版系。学妹 提交于 2020-01-07 05:36:06
问题 I have two Applications - Silverlight + Web.. the thing is that in Web application .xap file is not generated during Build.. Is there anything i can solve this problem with? Thanks 回答1: Right click on the Web project and select Properties. Navigate to the Silverlight Applications side tab on the properties page. What do you see? 来源: https://stackoverflow.com/questions/7965634/xap-file-is-not-generated-in-sivlerlight-web-application