public DependencyObject FindControl(string path) { var currentNode = WindowTracker.Instance().IsEmpty() ? this : (DependencyObject)WindowTracker.Instance().CurrentWindow(); foreach (var partialPath in path.Split('.')) { currentNode = FindControl(partialPath, currentNode); if (currentNode == null) { return(null); } } return(currentNode); }
public ModalWindow(string message) { InitializeComponent(); messageTextBlock.Text = message; WindowTracker.Instance().Track(this); }