static NativeMenuInfo GetInfo(TopLevel target) { var rv = target.GetValue(s_nativeMenuInfoProperty); if (rv == null) { target.SetValue(s_nativeMenuInfoProperty, rv = new NativeMenuInfo(target)); SetIsNativeMenuExported(target, rv.Exporter?.IsNativeMenuExported ?? false); } return(rv); }
public static bool GetIsNativeMenuExported(TopLevel tl) => tl.GetValue(IsNativeMenuExportedProperty);