static NodeXLControl() { // If this isn't done, the Keyboard class can't be used to detect which // keys are pressed. FocusableProperty.OverrideMetadata( typeof(NodeXLControl), new UIPropertyMetadata(true) ); }