internal int GetBorderWidth(Style style, StyleInstance styleInstance, bool hasScope)
 {
     if (style != null)
     {
         Border border = style.Border;
         if (border != null && (!MappingHelper.IsPropertyExpression(border.Width) || hasScope))
         {
             return(MappingHelper.GetStyleBorderWidth(border, m_mapMapper.DpiX));
         }
     }
     return(MappingHelper.GetDefaultBorderWidth(m_mapMapper.DpiX));
 }