WP 8.1 Checkbox change image source

i'm using MS Visual Studio.I'm working with windows Phone 8.1 universal app. That what i want is, when check box on second page is checked then also in main page is different image.

This is code for second page

private void CheckBox_Checked(object sender, RoutedEventArgs e) { points.Text = (Convert.ToInt32(points.Text) + 4).ToString(); var currentCheckBoxItem = sender as CheckBox; if (currentCheckBoxItem.IsChecked == true) { otra.bedre1.Source = (new Uri("ms-appx:///Assets/complete.png", UriKind.Absolute)); }

But this is code for mainpage :

protected override void OnNavigatedTo(NavigationEventArgs e) { bedre1.Source = ImageSource; }

I know this is not correct, but i will try..

Any idea?

Category:c# Views:3 Time:2018-09-13

Related post

  • Changing image source in xaml with trigger does not work properly 2011-04-14

    I need to change image in toolbar according to some boolean property in my viewModel. I am using trigger to change image source. Is it the right way? My code is not running properly, sometimes it works, but sometimes the image stay unchanged. <Ima

  • Javascript - change image source to gif ?! asp.net 2009-10-12

    I have the below code in a .ascx file as part of an asp.net project. How can I write the javascript to change the image source to a gif? <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Steps123.ascx.cs" Inherits="SwintonTaxiWeb.UserCo

  • jqZoom change image source 2010-01-12

    I have a gallery of 5 thumbnails and one larger image. I have jqZoom tied to the large image so when you mouse over it, you can see a zoomed in version. I'm having trouble when a user clicks an alternate thumbnail. I can get the larger image to chang

  • Change image source at run time 2010-02-16

    I want to change the image at click event.I change the source of the image on click but its not reflecting immediately it comes when any other event is fired.Why is it so and anyone have the solution?? --------------Solutions------------- Call image.

  • Blend 4 Beta: How to change image source as part of Timeline 2010-04-28

    I'm trying out Blend 4 beta, and looking for a way to do a simple thing: When a mouse is hovered on an image, the image should change its source to a different image. When the MouseLeave happens, the image changes back. I know I can do it in source c

  • Change image source in code behind - Wpf 2010-09-24

    I need to set image source dynamically, please note my image is in somewhere on the Network, here is my code BitmapImage logo = new BitmapImage(); logo.BeginInit(); logo.UriSource = new Uri(@"pack://application:,,,\\myserver\\folder1\\Customer Data\\

  • change image source by xaml code? 2010-10-25

    How can I change an image source continuously by xaml codes?? --------------Solutions------------- in case of in-place: <Image Source="smiley_stackpanel.png" Stretch="Fill"/> if in style: <Style TargetType="Image"> <Setter Property="So

  • css - how to change image source by its id? 2011-02-27

    Does anyone know how can I control the image source from the CSS? I need to be able to change the image src from the CSS. I have loop printing < img id=.. > tags, and for every id it different image. I want to be able to set the source by its i

  • Change Image source inside a Button template 2011-05-31

    I have a button in WPF application. I am presenting an image instead of a button. When my app comes up , all the controls are disabled , until a user logs in. I want my app to start with button that it's image is gray-->disabled . and when someone

  • Change image source and folder on hover and click - jQuery 2011-07-20

    Morning folks. I have an interactive gallery in mind, whereby a user hovers over a colour and the image changes to that colour. There is also another option where they can click a seperate option. I have 8 folders, each with 21 colours inside them. M

  • javascript changing image source not persisting 2011-08-28

    Being new in Javascript I have to change an image source when the image is clicked. The issue is the image changes only during the execution of the function, but revert to its initial value immediately after!!! This is what I have done so far: <he

  • Change image source with javascript 2011-09-05

    So I'm new with Javascript (this is actually my first attempt to make something work) and I'm having a bit of trouble. I thought I had enough knowledge to make this work, I've even googled for tutorials and scripts that could help me work this out bu

  • Dynamic change image source in windows phone 7.1 apps 2012-01-08

    I have a list box in my app and a button inside that list box. I applied a image to that button (appbar.edit.rest.png icon). but when theme change to light, icon doesn't display...what should i do to dynamic change that icon when theme changed. Xaml

  • In Expression Blend for Windows Phone change image source of button in different states 2012-02-01

    In Expression Blend for Windows Phone, how can I change the image source of a button in different states. I want different images to be displayed in normal state and pressed state. --------------Solutions------------- A couple of options come to mind

  • DataGrid Image ItemRenderer --> How to change image source of other rows, not only the selected one 2013-09-11

    I have an Image <mx:itemRenderer> in my DataGrid. Its purpose is to play and stop an audio, so I need to change the image source from the "Play" image to the "Stop" image every time I click on it. I've already accomplished that with the next co

  • how to dynamically change image source in a silverlight for windows phone 7 project? 2010-09-26

    I'm working on a windows phone 7 project, with silverlight, and i'm trying to show 4 images in sequence to give the user the feeling of a short movie. I have 4 urls pointing to 4 different jpeg images, and I'm using an Image control to show these jpe

  • HTML Button Change Image Source 2012-01-09

    Okay, I was wondering if this is possible. I want an image, and a totally separate button. When the button is clicked, I would like the Img Src to change from "images/test" to "images/test2" Is this possible? Let's just say I have a very simple site,

  • Jquery change image source depending on id of div clicked 2011-11-29

    I want a click on a thumb to reveal a larger image with a pre-loader and then a fade-in when loading is complete. I am almost there thanks to this answer - which enables different images to load depending on what thumb is clicked - and this guide whi

  • jQuery - changing image source dynamically flashes original image first then changes it 2012-04-03

    EDIT: I am looking for an all jquery solution here, I can't edit the html/css to initially not show the image. I've tried doing this a bunch of different ways, however it still flashes the original image before changing it over to the new source imag

  • Change image source by hovering on a label 2009-12-03

    I have multiple labels on a bar my web page and I want when I hover on that label, image in other div should change based on the label being hovered. Any help would be highly appreciared. Sjain --------------Solutions------------- With jQuery, the po

  • Changing image "source" dynamically in runtime 2010-03-12

    i am trying to modify during runtime an image in my application, this image is located inside assets folder, so thats why i dissable -use-network=false flag, then i call something like this: img.source="../assets/pict.png"; but it's not working. i kn

  • Firefox won't change image source 2010-05-13

    I'm trying to change an image in JavaScript+Prototype by changing the "src" attribute of the element. It works fine in IE, but not in Firefox. I don't get any errors and the script continues executing after this bit executes: var image = $('toggle');

  • Change image source based on asp:DropDownList selection 2010-11-23

    I want to be able to change an image depending on what is selected in the drop down box... I have this JS code to change the image. Simplified of course. <script type="text/javascript"> function changeImage() { var oDDL = document.all("ddlNAME"

  • Change image source if file exists 2011-04-15

    I have http://jsfiddle.net/rcebw/3/ The point of this is I will have numerous of these inlinediv divs. Each one has 2 divs inside it, one which holds an image and one which holds a link. These are generated dynamically from a list of the subsites on

  • Changing image source with Jquery 2011-04-17

    Using Jquery, I've managed to make a dropdown login form triggered by clicking a button. However, I am also trying to change the direction of the arrow next to it by replacing the src image, and it appears to do nothing. $("#login_panel").slideToggle

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.105 (s). 11 q(s)