/// <summary>
/// 设置图层填充前景色
/// </summary>
/// <param name="color"></param>
public void SetLayerFillForeColor(Color color)
{
try
{
Layer3DSettingVector layer3DSettingVector = new Layer3DSettingVector(m_setting);
GeoStyle3D geoStyle3D = new GeoStyle3D(m_geostyle3d);
geoStyle3D.FillForeColor = color;
layer3DSettingVector.Style = geoStyle3D;
m_layer3DDataset.AdditionalSetting = layer3DSettingVector;
PropertyHelper.Mymainwindow.m_sceneControl.Scene.Refresh();
}
catch (Exception)
{
throw;
}
}
我尝试更改已经添加到场景中的图层的前景色,但是这个方法写下来,图层中geostyle3d的前景色确实变了,但是在场景中并没有刷新出来,是什么原因呢