原文:wpf 状态栏图标背景闪烁提醒 FlashWindowEx using System; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Interop; namespace XCommon { public static class WindowExtensions { #region Window Flashing API Stuff private const UInt32
获取状态栏高度 一.传统方式:有时获取为0,解决方法看 二 1 2 3 4 代码 Rect frame = new Rect(); getWindow().getDecorView().getWindowVisibleDisplayFrame(frame); int statusBarHeight = frame.top; 二.4.0.3之后可能获取为0 public int getBarHeight(){ Class<?> c = null; Objec