Update PrimitiveEditor.xaml.cs