本文整理汇总了C#中Map.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# Map.SetValue方法的具体用法?C# Map.SetValue怎么用?C# Map.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map
的用法示例。
在下文中一共展示了Map.SetValue方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetChildren
/// <summary>
/// Gets the Children collection of a map.
/// </summary>
/// <param name="element">The dependency object</param>
/// <returns>Returns <see cref="ObservableCollection<DependencyObject>"/></returns>
public static ObservableCollection<DependencyObject> GetChildren(Map element)
{
if (element == null)
{
throw new ArgumentNullException("element");
}
ObservableCollection<DependencyObject> childrenCollection = (ObservableCollection<DependencyObject>)element.GetValue(MapExtensions.ChildrenProperty);
if (childrenCollection == null)
{
MapExtensionsChildrenChangeManager childrenChangeManager;
childrenCollection = new ObservableCollection<DependencyObject>();
childrenChangeManager = new MapExtensionsChildrenChangeManager(childrenCollection)
{
Map = element
};
element.SetValue(MapExtensions.ChildrenProperty, childrenCollection);
element.SetValue(MapExtensions.ChildrenChangedManagerProperty, childrenChangeManager);
}
return childrenCollection;
}
示例2: SetHasBingLayers
public static void SetHasBingLayers(Map o, bool value)
{
if (o == null)
return;
o.SetValue(HasBingLayersProperty, value);
}
示例3: SetIsFullNavigationEnabled
public static void SetIsFullNavigationEnabled(Map o, bool value)
{
if (o == null)
return;
o.SetValue(IsFullNavigationEnabledProperty, value);
}
示例4: SetScaleBarMapUnit
public static void SetScaleBarMapUnit(Map o, MapUnit value)
{
o.SetValue(ScaleBarMapUnitProperty, value);
}
示例5: SetWebMapSettings
public static void SetWebMapSettings(Map map, WebMapSettings settings)
{
map.SetValue(MapProperties.WebMapSettingsProperty, settings);
}
示例6: SetGeocodeResult
public static void SetGeocodeResult(Map target, BingMapsService.GeocodeResult value)
{
target.SetValue(GeocodeResultProperty, value);
}