/// 获得指定元素的父元素 /// </summary> /// <typeparam name="T">指定页面元素</typeparam> /// <param name="obj"></param> /// <returns></returns> public T GetParentObject<T>(DependencyObject obj) where T :…
Instead of using opacity, set a background-color with rgba, where 'a' is the level of transparency. So instead of: background-color: rgb(0,0,255); opacity: 0.5; use background-color: rgba(0,0,255,0.5);…