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; -
When distance is set, call GetDistanceInKM and a new property -
Add your add code to the DataTiger direct distance for property and one ISDistanceGreaterThanTenKMs Converters are made to convert.
Comments
Post a Comment