How do I switch an image in “XAML for Windows Embedded (Compact 2013)”
问题 I have a project for Windows CE that uses XAML for Windows Embedded (Compact 2013) (also known as "Silverlight for Windows Embedded") for the GUI. I defined an image in xaml and now I want to switch this image in the c++ code behind part. How do I do this? 回答1: I found this solution: m_pBatteryStateImage is the image, defined in Xaml. The URIs for the images can be found in the auto generated file PROJECTNAMEGenerated.rc2 void MainPage::SetBatteryState(BatteryStateFlags batteryState) { BSTR