wpf - Xaml - send viewmodel property to method in another viewmodel -


I have a datagrid attached to the collection of view models, which is called the distance, that property in that distance in XML Is there a way to send a method in the view model, which is the datagrid commodity processing current? For example: (GetDistanceInKM will be on the same VM as a collection of reports)

  & lt; DataGrade ItemsSource = "{Binding ReportWomodles}" & gt; & Lt; DataGrid.Columns & gt; & Lt; DataGridTextColum binding = "{bound boundaries}" header = "distance" edit elementstyle = "{static resource distance_type}" /> & Lt; /DataGrid.Columns> & Lt; / Data grid & gt; & Lt; Style x: key = "DistanceStyle" TargetType = "{x: type text box}" & gt; & Lt; Style.Triggers & gt; & Lt; DataTrigrinding Binding = {Binding Gastistins Inkm [Distance], Converter = {Static Resource IdentiGridinternet}} Value = "True" & gt; & Lt; Setter Property = "Borderbrush" value = {Static Resources Highlight Brush Brush} "/> gt; & gt; DataTrigger & gt; & lt; / Style. Triggers & gt; & lt; / Style & gt;   
  1. When distance is set, call GetDistanceInKM and a new property

  2. Add your add code to the DataTiger direct distance for property and one ISDistanceGreaterThanTenKMs Converters are made to convert.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -