A
A
artshelom2020-07-27 19:47:01
WPF
artshelom, 2020-07-27 19:47:01

How to get a link to the DataGrid?

There is a table in the View

<DataGrid x:Name="dataGrid"IsReadOnly="True" AutoGenerateColumns="False" ItemsSource="{Binding Path=Articles, Mode=Default, UpdateSourceTrigger=Default}" CanUserResizeColumns="True"></DataGrid >

And there is a ModelView, But I don't understand how to get a reference to the object to update the table or to close the window through the ModelView?
class WindowViewModel : BindableBase
{
//
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question