test
private void InitVisual() { // 阴影 Panel[] frameworkElements = { ThemeContentGrid, BoxGrid }; foreach (var child in frameworkElements.SelectMany( element => element.Children.OfType<FrameworkElement>())) { child.Effect = new DropShadowEffect { ShadowDepth = 0, BlurRadius = 10, Color = Colors.White }; } // 可见性 HideBoxes(); // 更新图标 try { UpdateThemeIcon(); } catch (Exception ex) { AppDebug.Log(ex.Message); } // 更新信息 UpdateMssFileInfo(); }