Adding MapControl in xaml results in a “Catastropic failure”

后端 未结 2 1734
旧巷少年郎
旧巷少年郎 2021-01-17 14:12

I am creating an universal application using Visual Studio Ultimate 2013 Version 12.0.30501.00 Update 2. I am getting Catastrophic failure on adding Map Control in my xaml l

2条回答
  •  伪装坚强ぢ
    2021-01-17 14:56

    I've tested your example and indeed there is such a problem also on my Phone.

    As I have checked it is possible to set Collapsed from code - so as a workaround:

    
       
    
    

    In the code behind:

    public MainPage()
    {
        this.InitializeComponent();
        this.Loaded += (sender, e) => myMap.Visibility = Visibility.Collapsed;
    }
    

提交回复
热议问题