make a content Dialog movable like the one in the Groove app

前端 未结 3 457
旧巷少年郎
旧巷少年郎 2021-01-07 02:12

I have created a ContentDialog to apply a Style (that I can\'t apply with a Message Dialog and a PopUp),but I am having problem with it,it\'s not movable or I can\'t close i

3条回答
  •  青春惊慌失措
    2021-01-07 02:53

    I think you can do it the other way:

    1. Create a UserControl, define the UI like the pop up.
    2. Set ManipulationMode to Translate.
    3. Handle ManipulationDelta event to move
    4. the UserControll (lets put a CompositeTransform as RenderTransform).
    5. Implement animation as you want Use the UserControll in your Page

提交回复
热议问题