Hello!
Today I follow the example of maps and Surface Dial in a UWP App. In today’s scenario, I will add a new functionality to the application with the map
- Use the Surface Dial spin to control the map zoom
- Use the Surface Dial spin to rotate the current view on the map
- Disable Surface Dial Spin
In this case I have created 3 different menu items that can be selected using the click of the Surface Dial.
Each of these elements is added to the menu items collection associated with this view in the Surface Dial. The next step is to subscribe to the Invoked() event of each menu item. In each Invoke action I’ll change the working mode of the view. The code that implements this functionality is as follows
Happy Coding!
Source Code en GitHub
Greeting @ Toronto
El Bruno
References
- El Bruno,Β Rotating maps with C# and Surface Dial in UWP Apps
- El Bruno,Β 2 lines of C# code to handle maps using a Surface Dial
- El Bruno, Controlling a Media Player Element with Surface Dial in a Windows Store App
- El Bruno,Β Kind of a Hello World with a Surface Dial in a Windows StoreΒ App
- Windows Dev Center, Surface Dial Interactions
- Canadian Developer Connection, Developing for Surface Dial
- Visual Studio MarketPlace, Windows Template Studio
4 comments