silverlight-3.0

How to detect the OS from a silverlight application?

与世无争的帅哥 提交于 2020-02-01 03:08:53
问题 I have a Silverlight3 application that is meant to run on both Windows and Mac OS environments. I would like to know in runtime if my application is running on a Windows or Mac so I can tweak a few things to the way users are accustomed to in their operating system of choice. For example, in Windows it is the norm to use "OK" "Cancel" buttons, while in Mac OS the norm is "Cancel" "OK" buttons (reverse order). Any ideas? 回答1: There are two ways. From Silverlight: string os = Environment

How to detect the OS from a silverlight application?

£可爱£侵袭症+ 提交于 2020-02-01 03:08:07
问题 I have a Silverlight3 application that is meant to run on both Windows and Mac OS environments. I would like to know in runtime if my application is running on a Windows or Mac so I can tweak a few things to the way users are accustomed to in their operating system of choice. For example, in Windows it is the norm to use "OK" "Cancel" buttons, while in Mac OS the norm is "Cancel" "OK" buttons (reverse order). Any ideas? 回答1: There are two ways. From Silverlight: string os = Environment

Looking for Tree Grid control for Silverlight [closed]

自古美人都是妖i 提交于 2020-01-24 06:47:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Quick question: Is it somewhere available - preferably free / opensource or at reasonable price? EDIT To be more precise, there's an example of winforms control (SandGrid from Divelements) what I'm looking for. Forming a tree is important, grouping by isn't necessary. alt text http://www.divelements.com/net

Using IEditableObject In Silverlight

倖福魔咒の 提交于 2020-01-14 03:11:34
问题 I have a object that implements the IEditableObject interface exposed on a viewmodel bound to a Silverlight page. How/Where do I call the BeginEdit, CancelEdit and EndEdit methods? How can I constrain only objects implementing this interface to my page? I am NOT using DataGrid or DataForm controls. I am using Label, TextBox and DescriptionViewer controls to display the data for editing. 回答1: I know this is an old thread (but for the sake of future use...) I do it this way: whenever the

How can I handle an event when pressed Start button (Windows Phone)

我怕爱的太早我们不能终老 提交于 2020-01-13 12:07:54
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

How can I handle an event when pressed Start button (Windows Phone)

寵の児 提交于 2020-01-13 12:07:52
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

How can I handle an event when pressed Start button (Windows Phone)

ぐ巨炮叔叔 提交于 2020-01-13 12:07:22
问题 How can I make an event when pressed on Start button (windows Phone) ? UPDATED If it is not possible, so how can I understand that user have pressed START button ? 回答1: The Start and Search buttons themselves are reserved and do not generate events to third party applications. Having said that, two events will be generated when the user pushes the start button: A navigation event with NavigationMode being Forward and IsNavigationInitiator being false A PhoneApplicationService.Deactivated

Silverlight 3 Dataform Commit Button not activating

懵懂的女人 提交于 2020-01-06 16:34:50
问题 I'm writing a ChecklistBox control, which is a listbox that renders CheckBoxes inside the list. I'm then using this control inside of a DataForm's EditTemplate. Along with this control, I've got two text boxes that are bound to properties of the DataContext of the Dataform. For reference, the ChecklistBox has three implemented properties... ItemsSource -> the list of possible items to have for the collection on your object. ObjectCollection -> the collection of objects that should be affected

Silverlight 3 Dataform Commit Button not activating

老子叫甜甜 提交于 2020-01-06 16:34:41
问题 I'm writing a ChecklistBox control, which is a listbox that renders CheckBoxes inside the list. I'm then using this control inside of a DataForm's EditTemplate. Along with this control, I've got two text boxes that are bound to properties of the DataContext of the Dataform. For reference, the ChecklistBox has three implemented properties... ItemsSource -> the list of possible items to have for the collection on your object. ObjectCollection -> the collection of objects that should be affected

Silverlight 3 Dataform Commit Button not activating

纵然是瞬间 提交于 2020-01-06 16:34:15
问题 I'm writing a ChecklistBox control, which is a listbox that renders CheckBoxes inside the list. I'm then using this control inside of a DataForm's EditTemplate. Along with this control, I've got two text boxes that are bound to properties of the DataContext of the Dataform. For reference, the ChecklistBox has three implemented properties... ItemsSource -> the list of possible items to have for the collection on your object. ObjectCollection -> the collection of objects that should be affected