ContextMenu itemContextMenu = new ContextMenu();MenuItem cut = new MenuItem();cut.Header = "Cut";itemContextMenu.Items.Add( cut );Separator s = new Separator();s.Padding = new Thickness( 0 ); // no effects.Margin = new Thickness( 0 ); // removes some top and bottom "padding" but not enoughs.Height = 10; // when height is set to 20 the separator line is// displayed with too much padding above and below the lineitemContextMenu.Items.Add( s );MenuItem paste = new MenuItem();paste.Header = "Paste";itemContextMenu.Items.Add( cut );