NativeMenuItemSeparator.cs 485 B

12345678910111213141516
  1. using System;
  2. namespace Avalonia.Controls
  3. {
  4. [Obsolete("This class exists to maintain backwards compatiblity with existing code. Use NativeMenuItemSeparator instead")]
  5. public class NativeMenuItemSeperator : NativeMenuItemSeparator
  6. {
  7. }
  8. public class NativeMenuItemSeparator : NativeMenuItemBase
  9. {
  10. [Obsolete("This is a temporary hack to make our MenuItem recognize this as a separator, don't use", true)]
  11. public string Header => "-";
  12. }
  13. }