silverlight-3.0

Silverlight 3 DataForm - How to populate DataFormComboBoxField from enumeration

▼魔方 西西 提交于 2019-12-11 07:46:17
问题 XAML <df:DataForm x:Name="MobCrud" AutoEdit="True" AutoCommit="True" AutoGenerateFields="False" VerticalAlignment="Top" CommandButtonsVisibility="All" Header="Mob Details" CanUserAddItems="True" CanUserDeleteItems="True" CurrentItem="{StaticResource newMob}" > <df:DataForm.Fields> <df:DataFormTextField Binding="{Binding Name}" FieldLabelContent="Name" /> <df:DataFormTextField Binding="{Binding Title}" FieldLabelContent="Title"/> <df:DataFormComboBoxField x:Name="AuraList" Binding="{Binding

How to add graphics on top of a multiscaleimage?

最后都变了- 提交于 2019-12-11 07:29:21
问题 I want to add graphics to a multiscaleimage. I use the project that Deep Zoom Composer auto generated when creating a multiscaleimage. Displaying the multiscaleimage from VS2008 works. I've tried this and added the graphics to the maincanvas, without any results: <Grid> <Canvas Name="maincanvas"/> <MultiScaleImage/> </Grid> Edit: When the user zooms in on the multiscaleimage, the user can place geometrically figures on the image. E.g. place a rectangle next to a person in the image, which

Silverlight / Data Challenging Issue

柔情痞子 提交于 2019-12-11 07:19:53
问题 I'm a little stumped on this one. Anyone have any ideas? I'll try to lay out the example as brief as possible. Creating Silverlight 3.0 application against SQL 2005 database. Using RIA Services and Entity Framework for data access. I need to be able to populate a grid against a table. However, my grid UI and my table structure is different. Basically my grid needs to turn rows into columns (like a PIVOT table). Here are my challenges / assumptions I have no idea until runtime which columns I

Null reference exception While Navigating to PlayListItem

自作多情 提交于 2019-12-11 06:25:40
问题 I am trying to play the selected media from PlayList,if the selected index is not zero as below: if (playList.Items.Count == 0) { setPlayList(); if (selectedIndex!= 0) { if(custMediaElement.Playlist!=null) custMediaElement.GoToPlaylistItem(selectedIndex); } } But I am getting a Null reference Exception while trying to go to PlayList Item with the help of selected index , as explained in top. This works fine if I don't use custMediaElement.GoToPlaylistItem(selectedIndex); but in that case the

Silverlight OutOfBrowser Problem

旧巷老猫 提交于 2019-12-11 04:36:27
问题 I am developing silverlight application. I want create the out of browser application . This is My OutOfBrowserSettings.xml <OutOfBrowserSettings ShortName="CollegeManagement Application" EnableGPUAcceleration="False" ShowInstallMenuItem="True"> <OutOfBrowserSettings.Blurb>CollegeManagement Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb> <OutOfBrowserSettings.WindowSettings> <WindowSettings Title="CollegeManagement Application" Height="300" Width="500"

How to determine the last time a user input was received in Silverlight 3

蓝咒 提交于 2019-12-11 04:12:29
问题 I have a Silverlight 3 application, and in a method, I want to determine when the last time that the application received user input was. Is there an easy way to detect this? 回答1: I doubt there is framework support for such a value, but you should be able to roll your own easily enough by monitoring key, mouse and other input events and setting a timestamp value accordingly. You could even persist this in isolated storage to carry the value across sessions (provided the user has not disabled

How to get the mouse button state in Silverlight outside of button press events?

醉酒当歌 提交于 2019-12-11 04:04:22
问题 I have the following situation I handle when the left mouse button is pressed in my Silverlight app and do some things while the mouse is held down and the mouse moves. When the left button is released, I turn off the flag that's telling it to do the stuff and the mouse movement handler then no longer does the stuff. The problem is: if the user is in the control area, pushes the left button down and moves out of the control area, then releases the button and reenters, the MouseLeftButtonUp

Popup Outside the Bounds of the Silverlight Control

断了今生、忘了曾经 提交于 2019-12-11 02:09:52
问题 I'm simply wondering if it is possible to open one or more non-modal popups or dialogs, which are NOT limited to be displayed and moved within the bounds of the parent Silverlight control. Doesn't seem to be possible, even for out-of-browser installs. I hope I'm wrong :) 回答1: While the previous answers are true, strictly speaking it is possible in browser mode to have a real popup. At the moment it can only be done indirectly and with a lot more work than a normal Silverlight popup Window.

Open page in silverlight out of browser

折月煮酒 提交于 2019-12-11 00:24:24
问题 Is there any way to open a page in the browser by clicking the app in out-of-browser mode? Thank you 回答1: HyperlinkButton works. I was trying with HtmlPage.Window.Navigate with no success. And because the button supports content it is simple to create something like a linked image. 回答2: Agreed with Artur and simple way to do this is : 1) Put HyperLink Button in your Silverlight page. 2) Generate Click event and provide : hyperlink.NavigateUri = new Uri("Url",UriKind.RelativeOrAbsolute); 3)

How remove border from clicked button in silverlight?

自古美人都是妖i 提交于 2019-12-10 23:38:09
问题 I have a button and image inside it in my silverlight user control. When I click to the button a border added to it. Can I remove border from button when it is pressed? Thanks. 回答1: You will need to tweak the Button template to do that. First get hold of the existing template (in Blend this where you use Edit Copy of Template) which you can get from the documentation if you only have Visual Studio. Button Styles and Templates. Copy the entire style and place it in a resource somewhere in your