silverlight-4.0

Perform SQL Query WCF RIA Silverlight

放肆的年华 提交于 2020-01-03 05:52:50
问题 I have created a database, linked it with DomainService's within my Silverlight Application. Now I want to be able to perform certain actions, such as Registration, Login etc. by using the service. How would I be able to do this. I have preset methods created in the service, e.g. InsertUser but it only requires one parameter, so I'm not sure how it works. In the metadata I have all fields etc. Can anyone help me out here. Thanks. public IQueryable<User> GetUsers() { return this.ObjectContext

Silverlight MVVM, stop SelectionChanged triggering in response to ItemsSource reset

ぐ巨炮叔叔 提交于 2020-01-02 23:11:08
问题 I have two ComboBoxes, A & B, each bound to an Observable Collection. Each has a SelectionChanged trigger is attached which is intended to catch when the user changes a selection. The trigger passes the selection to a Command. The collections implement INotifyPropertyChanged in that, in the Setter of each, an NotifyPropertyChanged event is fired. This is needed (in the MVVM approach) to notify the UI (the View) that the ComboBox's contents have changed. The two ComboBoxes are interdependent -

Pinch and zoom behaviour for windows phone

◇◆丶佛笑我妖孽 提交于 2020-01-02 19:32:12
问题 Is it possible to create a behavior for Pinch and zoom to Image control in windows phone 8. I am trying to apply pinch and zoom along with rotation to Image in my application. In a forum I found that Gesture listener is deprecated and they are not promoting implementation with gesture. So can any one please suggest an alternative method for me. 回答1: If you're targeting only Windows Phone 8 you can use the new ManipulationDeltaEventArgs.PinchManipulation property from the ManipulationDelta

How can I pass query string variables with NavigationService.Navigate?

安稳与你 提交于 2020-01-02 11:24:25
问题 Greetings, Searched for this, but no luck. I'm attempting to pass query string variables (and then retrieve them) in my Silverlight 4 app. First I tried this this.NavigationService.Navigate(new Uri("/LoanProductionRegion?Elvis=Alive&ImHungry=true", UriKind.Relative)); But HtmlPage.Document.QueryString doesn't pick them up because they come after the anchor (the full url looks like http://localhost:1076/Dashboard.SLTestPage.aspx#/LoanProductionRegion?Elvis=Alive&ImHungry=true). I tried to put

How can I pass query string variables with NavigationService.Navigate?

回眸只為那壹抹淺笑 提交于 2020-01-02 11:22:26
问题 Greetings, Searched for this, but no luck. I'm attempting to pass query string variables (and then retrieve them) in my Silverlight 4 app. First I tried this this.NavigationService.Navigate(new Uri("/LoanProductionRegion?Elvis=Alive&ImHungry=true", UriKind.Relative)); But HtmlPage.Document.QueryString doesn't pick them up because they come after the anchor (the full url looks like http://localhost:1076/Dashboard.SLTestPage.aspx#/LoanProductionRegion?Elvis=Alive&ImHungry=true). I tried to put

How can I pass query string variables with NavigationService.Navigate?

。_饼干妹妹 提交于 2020-01-02 11:22:09
问题 Greetings, Searched for this, but no luck. I'm attempting to pass query string variables (and then retrieve them) in my Silverlight 4 app. First I tried this this.NavigationService.Navigate(new Uri("/LoanProductionRegion?Elvis=Alive&ImHungry=true", UriKind.Relative)); But HtmlPage.Document.QueryString doesn't pick them up because they come after the anchor (the full url looks like http://localhost:1076/Dashboard.SLTestPage.aspx#/LoanProductionRegion?Elvis=Alive&ImHungry=true). I tried to put

Silverlight MVVM: where did my (object sender, RoutedEventArgs e) go?

风流意气都作罢 提交于 2020-01-02 10:22:22
问题 I am using commanding in my viewmodel to handle events. like for example I am handling a button click event like this: XAML <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <i:InvokeCommandAction Command="{Binding mvvmButtonclick}" /> </i:EventTrigger> </i:Interaction.Triggers> Viewmodel Code public ICommand mvvmButtonclick { get; private set; } Viewmodel Constructor code to wireup the command this.mvvmButtonclick = new ActionCommand(this.ButtonClickedEvent); Actual method in the

Silverlight MVVM: where did my (object sender, RoutedEventArgs e) go?

二次信任 提交于 2020-01-02 10:21:24
问题 I am using commanding in my viewmodel to handle events. like for example I am handling a button click event like this: XAML <i:Interaction.Triggers> <i:EventTrigger EventName="Click"> <i:InvokeCommandAction Command="{Binding mvvmButtonclick}" /> </i:EventTrigger> </i:Interaction.Triggers> Viewmodel Code public ICommand mvvmButtonclick { get; private set; } Viewmodel Constructor code to wireup the command this.mvvmButtonclick = new ActionCommand(this.ButtonClickedEvent); Actual method in the

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;

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