我試圖從Silverlight MainWindow.xaml文件中沿着Shapes.Path對象獲取點。我使用Expression Blend來創建路徑。沿着XAML Shapes.Path獲取點數
下面的代碼工作正常,除非我嘗試移動表達式融合中的路徑,這隻會移動邊距。顯然,這並沒有得到計算,我得到的路徑最初創建的點。
var pathGeometry = path.Data.GetFlattenedPathGeometry();
var currentPoint = new System.Windows.Point();
var tangentPoint = new System.Windows.Point();
var rList = new List<Point>();
var pointsCount = 10;
for (int i = 0; i < pointsCount; i++)
{
double fraction = (double)i/(double)(pointsCount - 1);
pathGeometry.GetPointAtFractionLength(fraction, out currentPoint, out tangentPoint);
rList.Add(currentPoint);
}
return rList;
關於如何獲得保證金變化的任何建議也計算在?
你不能只是增加或減少保證金? – JDB