private void GetResouces() { regexSplitTarget = FindResource("regexSplitTarget") as RegexSplitTarget; Debug.Assert(regexSplitTarget != null, "regexSplitTarget != null"); regexSplitTarget.PropertyChanged += RegexSplitTarget_OnPropertyChanged; }