private void AddLineButton_Click(object sender, RoutedEventArgs e) { barriersEditor.Add.Execute(LayoutRoot.Resources["BarrierLineSymbol"]); }