[英]Popup Manipulation WP8.1 C#
我目前正在嘗試使用操作增量類操作圖像的彈出窗口。 因此,我無法弄清楚如何調用操作增量事件。
我已經在網絡上找到了解決方案,但是我無法實現它。
我不知道如何實現此網格,因此將調用操作增量事件。 我試圖通過孩子將其包括在彈出窗口中,並且它位於前面。 (通過更改顏色進行檢查),但它不響應任何操作事件。
我的代碼在下面可見。 ctrlGrid是我正在用(ctrlgrid.ManipulationDelta和imagepopup.ManipulationDelta嘗試過)調用操縱增量事件的那個
感謝您對此的任何幫助。
弗洛
Grid popUpGrid = new Grid
{
MinHeight = imagePopup.ActualHeight,
MinWidth = imagePopup.ActualWidth,
Background = new SolidColorBrush(Colors.Green),
};
imagePopup.Child = popUpGrid;
Image popUpImage = new Image
{
Source = ((Image)sender).Source,
//MaxHeight = popUpGrid.MinHeight,
};
popUpGrid.Children.Add(popUpImage);
Grid ctrlGrid = new Grid
{
MinHeight=imagePopup.ActualHeight,
MinWidth=imagePopup.ActualWidth,
Background = new SolidColorBrush(Colors.Transparent),
IsDoubleTapEnabled=true,
ManipulationMode=ManipulationModes.All
};
popUpGrid.Children.Add(ctrlGrid);
我能夠在同事的幫助下解決它。 我使用了錯誤的deltamanipulation處理程序。 我使用了彈出窗口本身的處理程序,而ctrlGrid_Deltamanipulation處理程序是正確的處理程序。
弗洛
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.