public int GetShadowOffset(Style style, StyleInstance styleInstance, bool hasScope) { if (style != null && (!MappingHelper.IsPropertyExpression(style.ShadowOffset) || hasScope)) { return(MapMapper.GetValidShadowOffset(MappingHelper.GetStyleShadowOffset(style, styleInstance, this.m_mapMapper.DpiX))); } return(0); }