private void Image_btn3_PointerReleased(object sender, PointerRoutedEventArgs e) { Image_btn1.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_main_w.png")); Image_btn2.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_my_w.png")); Image_btn3.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_voicelist_green.png")); Image_btn4.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_notice_w.png")); Frame_Main3.Navigate(typeof(AskingListPage)); }
private void Image_btn4_PointerReleased(object sender, PointerRoutedEventArgs e) { Image_btn1.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/able_main_w.png")); Image_btn2.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_my_w.png")); Image_btn3.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/able_history_w.png")); Image_btn4.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_notice_green.png")); Frame_Main2.Navigate(typeof(NoticePage_Another)); }
/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. /// This parameter is typically used to configure the page.</param> protected override void OnNavigatedTo(NavigationEventArgs e) { if (!Frame_Main3.Navigate(typeof(PadPage_New))) { throw new Exception("Failed to create scenario list"); } Image_btn1.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_main_green.png")); Image_btn2.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_my_w.png")); Image_btn3.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_voicelist_w.png")); Image_btn4.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_notice_w.png")); }
private void Image_btn1_PointerPressed(object sender, PointerRoutedEventArgs e) { Image_btn1.SetBinding(Image.SourceProperty, SetProperty("Assets/top_icon_37x37/dis_main_gray.png")); }