Statusbars in the mdiContainer

Jul 29, 2015 at 8:00 PM
Edited Jul 29, 2015 at 8:02 PM
I put a status bar with a textblock in the MainWindow and would like to access it from the child windows. I created a Statusbar class
class Statusbar
{
    static TextBlock _firstField;
    public static TextBlock FirstField
    {
        set { _firstField = value; }
    }
    public static void displayFirstField(string message)
    {
        _firstField.Text = message;
    }
}
and pass the Statusbar.TextBlock (N1) in the constructor of MainWindow
public partial class MainWindow : Window
{
    #region "Global"
    public MainWindow()
    {
        InitializeComponent();

        Statusbar.firstField = N1;
    }
Is there a more proper way to do this in which I would access the statusbar in mainwindow directly from the children?