Is having several Datagrid in single view ok?
<p>My WPF app have one <code>MainWindow.xaml</code> and it contains several <code>DataGrid</code> which is bind to <code>ObservableCollection</code> in <code>MainWindow.xaml.cs</code>.</p>

<p>For example,</p>

<pre><code>public MainWindow()
{
    var dg1 = new ObservableCollection&lt;CustomClass1&gt;();
    var dg2 = new ObservableCollection&lt;CustomClass2&gt;();
    var dg3 = new ObservableCollection&lt;CustomerClass3&gt;();
}
</code></pre>

<p>Problem is <code>MainWindow.xaml</code> is getting longer and longer as I keep adding new <code>DataGrid</code> in it.</p>

<p>Can I separate each <code>DataGrid</code> to <code>UserControl</code> or <code>Page</code>?
Or do you know better solution for handling several <code>DataGrid</code> in WPF app?</p>

<p>Thanks in advance!</p>