使用Windows Touch WPF中提供的ScatterView控件。我想防止在散射視圖項目上發生慣性。但我仍然希望允許用戶移動,縮放和旋轉項目。如何禁用ScatterView中的慣性
所以我嘗試這個...
ScatterviewItem svi = new ScatterviewItem();
svi.ManipulationDelta += OnManipulationDelta;
...
void OnManipulationDelta(object sender, ManipulationDeltaEventArgs args)
{
if (args.IsInertial)
{
args.Complete();
args.Handled = true;
}
}
但該事件永遠不會觸發。我做錯了什麼,還是有另一種方式來做到這一點,或者是防止慣性,只是無法使用scatterview?