Gets or sets an arbitrary object value that can be used to store custom information about this object.
#ELEMENT 3D V2 CAVITY MAP WINDOWS#
Gets the dependency property that backs the Scale Windows Runtime property. The scale to apply to the 3D map element. Gets the dependency property that backs the Roll Windows Runtime property. Gets or sets the roll of the 3D map element in degrees, where -90 is tilting to the left and +90 is tilting to the right. Gets the dependency property that backs the Pitch Windows Runtime property. A value of 0 is looking out at the horizon and a value of -90 is looking straight down. Gets or sets a value that indicates by how many degrees you want the 3D map element to be tilted. Gets or sets the 3D model that represents a 3D object.
Gets or sets a value that determines the order in which elements of the MapControl receive focus when the user navigates through those elements by pressing the Tab key. Values defined in the style sheet for the state override values defined in the MapStyleSheetEntry. If the style sheet defines a style for that state, that style is applied to this element. Gets or sets the name of the state of this MapElement. Gets or sets the name of an entry in the map's style sheet that you'd like to apply to this MapElement. Gets the dependency property that backs the Location Windows Runtime property. Gets or sets the geographic location of the MapElement3D on the MapControl. Indicates whether users can interact with the MapElement. Gets the dependency property that backs the Heading Windows Runtime property.
Gets or sets the directional heading of the 3D map element in degrees, where 0 or 360 = North, 90 = East, 180 = South, and 270 = West.
#ELEMENT 3D V2 CAVITY MAP CODE#
The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread.Įquivalent WinUI property: Microsoft.UI. Gets the CoreDispatcher that this object is associated with. Then, add the MapElementsLayer to the Layers collection of the map. To display the 3D object on a map control, add the MapElement3D to the MapElements collection of a MapElementsLayer. Var myModel = await MapModel3D.CreateFrom3MFAsync(map3dSphereStreamReference, (new Uri("ms-appx:///Assets/trainengine.3mf")) map3dSphereStreamReference = RandomAccessStreamReference.CreateFromUri This example places a 3D element on the center of the map. Public sealed class MapElement3D : MapElement Public NotInheritable Class MapElement3D / Ĭlass MapElement3D final : MapElement In this article public ref class MapElement3D sealed : MapElement /// Represents a 3D element displayed on a MapControl.