====== Wpf Samples ====== ==== Draggable Labels Sample for Wpf ==== In this WPF project, you will learn how to place labels from a shapefile into a **SimpleMarkerOverlay**. Using the **DragMode** property of the **SimpleMarkerOverlay**, the user can then drag the labels to place them at the desired location for the most pleasing labeling effect. This project will be later completed to show how to save the state of the dragged labels from the **SimpleMarkerOverlay** and reload them. Please refer to [Wiki](http://wiki.thinkgeo.com/wiki/map_suite_desktop_for_wpf) for the details. {{https://github.com/ThinkGeo/DraggableLabelsSample-ForWpf/raw/master/Screenshot.gif?500|Screenshot}} [[https://github.com/ThinkGeo/DraggableLabelsSample-ForWpf| View this sample on Github]] ==== Multi Line Labeling Sample for Wpf ==== For labeling purpose, **TextStyle** has a property called LabelAllPolygonParts that will label all the parts making up a polygon based feature. Unfortunately, we don’t have an equivalent API for labeling all the parts of a line based feature. But thanks to the flexible framework of Map Suite, we show in this WPF sample how easily you can expand the **TextStyle** class to allow this labeling capability. Look at the custom class **MultiLinetextStyle** and how **DrawCore** function is overridden to have the expected labeling behavior. Please refer to [Wiki](http://wiki.thinkgeo.com/wiki/map_suite_desktop_for_wpf) for the details. {{https://github.com/ThinkGeo/MultiLineLabelingSample-ForWpf/raw/master/ScreenShot.png?500|Screenshot}} [[https://github.com/ThinkGeo/MultiLineLabelingSample-ForWpf| View this sample on Github]]