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 static WindowTracker Instance() { return _instance ?? (_instance = new WindowTracker()); }
public static WindowTracker Instance() { return(_instance ?? (_instance = new WindowTracker())); }
public ModalWindow(string message) { InitializeComponent(); messageTextBlock.Text = message; WindowTracker.Instance().Track(this); }