0
私はこのようなマップにforeachループで画鋲を追加してい:ビン地図に複数のテキスト行を表示するにはどうすればいいですか?
Pushpin p = new Pushpin() { Location = new Microsoft.Maps.MapControl.WPF.Location { Latitude = n.latitude, Longitude = n.longtitude} };
私のクラスには、次のようになります。
public class Address
{
public int ID { get; set; }
public string companyName { get; set; }
public string address { get; set; }
public string street { get; set; }
public string houseNumber { get; set; }
public double longtitude { get; set; }
public double latitude { get; set; }
}
どのように私はAddressクラスからのプッシュピンに他のデータを追加し、それかこのようなものでしょうか? Pushpin
PushpinはContentControlであるため、適切なContentTemplateを設定することができます。 – Clemens