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