silverlight

Turn Off Silverlight Plug-in Warning in Chrome

不羁岁月 提交于 2019-12-22 08:06:14
问题 I'm working with a Silverlight 3 app and using Chrome as my test browser. While debugging I keep getting the popup message: Plug-in Unresponsive The following plug-in is unresponsive: Unknown Would you like to stop i? Yes/No How can I turn this off in Chrome? Can VS be set to shut it off only when debugging? It's a real pain when debugging. Thanks, 回答1: Add --disable-hang-monitor to chrome shortcut 回答2: Nick - are you using Chrome early builds on the Mac? There are some known issues with

Silverlight open uri link being blocked by browser

坚强是说给别人听的谎言 提交于 2019-12-22 07:57:07
问题 The problem is simple but annoying. I have a button and the click event just opens a link by HtmlPage.Window.Navigate(uri, "_blank"); But it keeps being blocked by the browser. I searched a lot. It seems everyone is using this method but no one mentioned the new tab/windows is being blocked. So what should I do? UPDATE Problem solved. It seems that to navigate to outside web pages, HyperlinkButton should be used. This is not blocked by the browser. "To enable user navigation to other Web

loaded event not exactly loaded

微笑、不失礼 提交于 2019-12-22 06:59:21
问题 I feel silly, but I just can't find an answer to this. Let's say I want to show some message to the users when the MainPage loads. The problem is that if I do this on Loaded event (MessageBox.Show()), the popup shows just before my page is loaded which leaves the user with this message and a black background. This is kind of dull situation. Any ideas which event can do the trick. There other ways around like background worker or NavigationInTransition_EndTransition event but there should be

WPF Images vs. XAML

萝らか妹 提交于 2019-12-22 06:58:36
问题 When should we use images (jpg, png) and when should we use XAML in an application. Image + "easy" for the designer to create what he wants + are displayed the same on every computer - fixed resolution XAML + vector format (resolution independent, resize able, ...) + can be animated +/- rendered by the client - not as many effects available as for images or are really complex to create - complex visual tree I could not find any source, that compares the resource usage (CPU, RAM) between

Workaround for UpdateSourceTrigger LostFocus on Silverlight Datagrid?

岁酱吖の 提交于 2019-12-22 06:58:32
问题 I have a Silverlight 2 application that validates data OnTabSelectionChanged. Immediately I began wishing that UpdateSourceTrigger allowed more than just LostFocus because if you click the tab without tabbing off of a control the LINQ object is not updated before validation. I worked around the issue for TextBoxes by setting focus to another control and then back OnTextChanged: Private Sub OnTextChanged(ByVal sender As Object, ByVal e As TextChangedEventArgs) txtSetFocus.Focus() sender.Focus(

WPF Images vs. XAML

丶灬走出姿态 提交于 2019-12-22 06:58:06
问题 When should we use images (jpg, png) and when should we use XAML in an application. Image + "easy" for the designer to create what he wants + are displayed the same on every computer - fixed resolution XAML + vector format (resolution independent, resize able, ...) + can be animated +/- rendered by the client - not as many effects available as for images or are really complex to create - complex visual tree I could not find any source, that compares the resource usage (CPU, RAM) between

GridSplitter MinWidth with fixed size

不羁的心 提交于 2019-12-22 06:47:54
问题 I have a Grid with 2 columns separated by a GridSplitter using the following XAML code : <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="100" MinWidth="20" /> <ColumnDefinition Width="10" /> <ColumnDefinition Width="*" MinWidth="100" /> </Grid.ColumnDefinitions> <Rectangle Fill="Blue" /> <GridSplitter Grid.Column="1" Background="LightGray" HorizontalAlignment="Stretch" /> <Rectangle Fill="Yellow" Grid.Column="2" /> </Grid> Problem : The MinWidth of the Column on the right is ignored

How can I have multiple types of children in a single Silverlight TreeView node?

邮差的信 提交于 2019-12-22 06:47:32
问题 Short Vesion: I have to display a hierarchy ( TreeView ) of items of different types, and am not sure how to do this cleanly in Silverlight. In WPF, it's straightforward to define templates ( HierarchicalDataTemplate ) based on types, but this feature isn't available in Silverlight. It seems in Silverlight you have to apply the same template to all children of a specific node, so you end up with once single monster template that handles every possible type of node, applied to every single

What is the return type for a anonymous linq query select? What is the best way to send this data back?

时光总嘲笑我的痴心妄想 提交于 2019-12-22 06:39:50
问题 This is a basic question. I have the basic SL4/RIA project set up and I want to create a new method in the domain service and return some data from it. I am unsure the proper easiest way to do this.. Should I wrap it up in a ToList()? I am unclear how to handle this anonymous type that was create.. what is the easiest way to return this data? public IQueryable<ApplicationLog> GetApplicationLogsGrouped() { var x = from c in ObjectContext.ApplicationLogs let dt = c.LogDate group c by new { y =

How to bind ListBoxItem.IsSelected to boolean data property

删除回忆录丶 提交于 2019-12-22 06:35:30
问题 I have a WPF ListBox in Extended SelectionMode. What I need to do is bind the ListBox to an observable collection of a data item class, which is easy, but essentially, bind the IsSelected status of each ListBoxItem to a boolean property in the respective data item. And, I need it to be two-way, so that I can populate the ListBox with selected and unselected items from the ViewModel. I've looked at a number of implementations but none work for me. They include: Adding a DataTrigger to the