[WP8.1][Xaml]Update ListView items when other items are selected

hi,
i am developing an app for windows phone and using listview to list items. i am using custom template for the listview item. this custom template contains labels, image and button.
i trying to update the other listview items while one item is selected or multiple item selected. to change listview item i am iterating over the listview and try to get custom template using visual tree helper class. using helper class i am able to retrieve
control from custom template. once i changing the image in listview if i scroll the listview vertically image changed to its default state.
is it possible to change the custom template values using visual tree helper class or do i need to do some other changes in my code.
please suggest.
<ListView x:Name="lst" Grid.Row="2" SelectionMode="Single" SelectedItem="{Binding ListBoxSelectedItem}"
ItemsSource="{Binding TssVariableInfo}" Padding="0" Margin="0"
HorizontalAlignment="Stretch" Grid.Column="0" Grid.ColumnSpan="2" ReorderMode="Disabled" AllowDrop="False"
VerticalAlignment="Stretch" Holding="lst_Holding" >
<ListView.ItemTemplate>
<DataTemplate>
<local:VariableTemplateSelectorClass Content="{Binding}" FontFamily="Segoe UI" >
<local:VariableTemplateSelectorClass.IsLiteAndNonDuplicate >
<DataTemplate>
<Border BorderThickness="0,1,0,1" BorderBrush="DarkGray" x:Name="bordername">
<Grid Margin="0,0,0,0" Tapped="Grid_Tap" x:Name="GridVarDetail" Background="#E8E8E8" Holding="Grid_Hold" HorizontalAlignment="Stretch" Width="{Binding ElementName=lst, Path=ActualWidth}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="16"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" />
<ColumnDefinition Width="4*" />
</Grid.ColumnDefinitions>
<Image x:Name="imgLegend" Source="/Assets/Images/Legends/00-Blank.png" Width="13" Height="13" Grid.Row="0" Margin="0,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center"></Image>
<TextBlock Foreground="Green" Margin="14,0,0,0" Grid.Row="0" FlowDirection="LeftToRight" x:Name="lblCustomerGivenName" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
Text="{Binding VariableCustomerGivenName }" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" VerticalAlignment="Bottom" FontSize="16" />
<TextBlock Foreground="Green" Margin="14,0,0,0" Grid.Row="1" VerticalAlignment="Top" Width="Auto" x:Name="lblStandardName" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
Text="{Binding VariableStandarName}" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" FontSize="16" />
<TextBlock Foreground="Gray" Margin="14,0,0,0" Grid.Row="2" VerticalAlignment="Top" Width="Auto" x:Name="lblSection" Grid.Column="0" TextWrapping="NoWrap" TextTrimming="WordEllipsis"
Text="{Binding SectionName }" FontWeight="Normal" HorizontalAlignment="Left" FontFamily="Calibri" FontSize="16" />
<TextBlock Margin="321,0,40,0" Foreground="Red" Grid.Row="0" VerticalAlignment="Bottom" Width="Auto" x:Name="lblValue" Grid.Column="1" TextWrapping="NoWrap"
Text="{Binding Value}" FontWeight="Normal" HorizontalAlignment="Right" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="16" />
<TextBlock Foreground="Gray" Margin="321,0,40,0" Grid.Row="1" VerticalAlignment="Top" Width="Auto" x:Name="lblLastDate" Grid.Column="1" TextWrapping="NoWrap"
Text="{Binding LastDate}" FontWeight="Normal" HorizontalAlignment="Right" FlowDirection="RightToLeft" FontFamily="Calibri" FontSize="16" />
<Image Source="/Assets/Images/LeftArrow.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="imgLeftArrow" Tapped="btnMore_Tap" />
<Image Source="/Assets/Images/2Y-OFF.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="btn2Y" Tapped="btn2Y_Tap"/>
<Image Source="/Assets/Images/CP-Off.png" Height="50" Width="40" Grid.Row="0" Grid.Column="1" Grid.RowSpan="3" HorizontalAlignment="Right" Visibility="Collapsed" x:Name="btnTL" Tapped="btnTL_Tap" />
</Grid>
</Border>
</DataTemplate>
</local:VariableTemplateSelectorClass.IsLiteAndNonDuplicate>
</local:VariableTemplateSelectorClass>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
private void Grid_Hold(object sender, HoldingRoutedEventArgs e)
if (e.HoldingState != Windows.UI.Input.HoldingState.Started)
return;
Image imgPlotImage;
Grid GridVar = (Grid)sender;
imgPlotImage = (Image)GridVar.FindName("imgLegend");
General.VariableArrayYAxis.Add(dataObject.VariableID);
General.DictSelectedVariableType.Add(dataObject.VariableID.ToString(), dataObject.IsTSSLite.ToString());
GridVar.Background = new SolidColorBrush(Color.FromArgb(100, 255, 255, 255));
Image imgLeftArrow = (Image)GridVar.FindName("imgLeftArrow");
imgLeftArrow.Visibility = Windows.UI.Xaml.Visibility.Visible;

That link is my signature not that i have provided it for reference. 
You already have implemented binding in your code, just like you have bindings for TextBlock's 'Text' property, likewise you can defined a property for the 'Visibility' of image in the code behind
e.g.
private Visibility imgvisible
public Visibility_ImgVisibility
get { return imgvisible; }
set
if (imgvisible!= value)
NotifyPropertyChanging("_ImgVisibility");
imgvisible= value;
NotifyPropertyChanged("_ImgVisibility");
Then in xaml file, bind this property with the Visibility property of Image and access it as per your requirement (e.g. on tap of an item)
http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

Similar Messages

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • ORA-12721: operation cannot execute when other sessions are active

    Hi,
    I started my DB like following :
    1) Change INIT.ORA file;  unset parallel_server parameter.
    2) Execute these commands:
    STARTUP MOUNT ;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    SQL> STARTUP RESTRICT  pfile='C:\oracle\product\10.2.0\db_1\database\initORCL.ora';
    ORACLE instance started.
    SQL> alter database national character set INTERNAL_CONVERT UTF8;
    alter database national character set INTERNAL_CONVERT UTF8
    ERROR at line 1:
    ORA-12721: operation cannot execute when other sessions are activeWhy this error when DB is opened in strict and I'm the only user ?
    SQL> select count (*) from v$session;
      COUNT(*)
            20Any solution ?
    Thank you.

    Hi
    This operation is dangerous, please ensure that you have a full backup before doing that operation.
    Please use that order :
    SHUTDOWN IMMEDIATE;
    -- make sure there is a database backup you can rely on, or create one
    STARTUP MOUNT;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    ALTER DATABASE CHARACTER SET <new_character_set>;
    -- a alter database takes typically only a few minutes or less,
    -- it depends on the number of columns in the database, not the
    -- amount of data.
    SHUTDOWN;
    Please note that :
    The command requires the database to be
    open but only one session, the one executing the command, is allowed.
    For the above error conditions Oracle9i will report one of the errors:
    ORA-12719: operation requires database is in RESTRICTED mode
    ORA-12720: operation requires database is in EXCLUSIVE mode
    ORA-12721: operation cannot execute when other sessions are active
    Oracle9i can also report:
    ORA-12718: operation requires connection as SYS
    if you are not connect as SYS (INTERNAL, "/ AS SYSDBA").
    Let us know if this helps.
    regards,
    Hub
    Edited by: Hub on Dec 10, 2008 1:22 PM

  • Ipad drops streaming radio when other apps are in use

    why does ipad drop streaming radio app when other apps are in use?
    what can I do to prevent this, if anything?

    To rule out the app itself, try downloading another free radio app (CBC Canada, iFreeRadio, for example) and see if they behave the same way.
    Background radio streaming should work fine - one of the types of apps that can truly run in background.

  • PSE7 Faces tagging doesn't work (No items are selected)

    Hi,
    I try to use the Faces tagging feature in PSE 7 (with windows vista 32bit sp1) but it doesn't work.
    For some reasons, the faces tagging interface never display the photos I've selected. In the lower left corner, it says "No items are selected".
    I tried selecting zero, one or more photos in the photo browser. When I select zero photos, it asks me if I want to find faces on all the displayed picture (I have about 5 000 pictures) but none appears in the faces tagging interface.
    The menu item Find->Find Faces for tagging and the button Face Faces for Tagging give the same result (doesn't work).
    Can anyone help me?
    Cheers,
    Alexandre

    Hi,
    Thanks for the help, but it did not work :(
    I tried two times:
    1) The repair command said it did not find any error and I said No to "Repair anyway", then optimized.
    2) Same thing, but I said yes to Repair anyway with the Visually similar content checkbox checked.
    Cheers,
    Alexandre

  • Updating Acrobat X when Office-Apps are running

    We want to update our clients, which already have installed an older version of Acrobat Professional 9.x with ADOBE Acrobat Professional X (10.1.0). This action must run silent with no user interaction.
    I have written a script which kills all running processes using acrobat.exe and close all open PDF-files, also in IE. Then the Acrobat-MSI is started using a customized MST (including Serialnumber) with the parameter /qn. This script is mandatory launched by SCCM where the program-option “Allow users to interact with this program” is NOT set.
    If a Office-application like PowerPoint or Word (with the Acrobat Plug-in) is running, the script fails (with 9.x of Acrobat the same worked fine and without any errors…).
    Any ideas how to silent update an existing installation of Acrobat with Acrobat X when Office-Apps are open (won’t kill them)?

    Hi Vinod
    Thank's very much for your answer. In the meantime I found the article
    http://forums.adobe.com/thread/868930?tstart=0
    too. It's pity that's no more possible to do a silent install of Acrobat even Office Apps.are running. Therefore I have to kill all of them and to disturbe all users by there daily work.
    Res

  • Firefox is showing a grey globe for secure site when other browsers are showing a lock icon.

    We have several sites that have SSL Certificates. When the website switches to HTTPS, Firefox still shows our pages with a grey globe. Sites (like Amazon) are showing they are secure displaying HTTPS pages. Other browsers are displaying our pages secure like they should.

    a grey globe should only be shown for a "secure" page when there's mixed content on that page
    https://blog.mozilla.org/ux/2012/06/site-identity-ui-updates/
    https://developer.mozilla.org/en-US/docs/Security/MixedContent

  • How Do You Control the Order That Menu Items Are Selected

    I am using iDVD 6 with the Portfolio Theme (iDVD 5). I created a project with one 15-minutes iMovie project and seven slideshows (created in iDVD).
    In Preview mode (or with the final) DVD, the order that entries on the main menu are selected does not seem to follow a logical pattern. As I try to advance using the right cursor, the second item (horizontally) is skipped. (I have two rows, each with four items). When I have one of the other three items in that row selected, the second item is selected if I hit the down arrow.
    In 'flowchart view' the eight items are in the order I want them to be selected. That is, the item that is being skipped is in the second position on the flowchart.
    Any insight on this would be appreciated.
    PowerBook G4 1.33 Ghz (me) & FP iMac - 1.0 Ghz (kids)   Mac OS X (10.4.4)   iMac (for the kids)

    I created an iMovie and then exported to iDVD, iDVD used the same sequence as the iMovie. When you build you Movie or slide show it follows the sequence that you place them in the time line. I have a Slide Show movie with video clips in the time line all of the shows and clips play in the order that I placed them. When you move through the menu use the right arrow to move accross the menu and the down arrow to move down to the next row. There is an button to move to the next menu. I have 13 chapters in my iDVD and they appear on 3 menus. Each menu shows 6 buttons you can edit the button titles and reposition them if you deselect the snap to grid and select the other option. When I open my project after exporting the titles overlayed each other. The buttons picted up my iMovie titles so I had to fix them and reduce the type size and move the buttons to separate them. The time line sets the order and the arrow keys move throgh the buttons on you Mac screen you can select with the mouse by clicking the button. On a DVD player you are stuck with the arrows and enter keys on the remote. You may have a glitch in your data check the time line along bottom of your original to see if the chapter markers are in position.
    Richard
    1.25 GHz Dual G4 Desk Top Mac OS X (10.4.6)

  • Mail.app crashes when certain messages are selected

    I recently migrated a user from OS X 10.4 to 10.5. When we run Mail.app, it will crash when certain messages are clicked.
    I've tried everything I could to get the mail in in a different way -- importing it in different ways, deleting ~/Library/Preferences/com.apple.mail.plist, and re-importing, etc.
    It certainly seems that the problem is tied to the individual message, as clicking on a certain message, even if it is in different folders (because of the way it was imported) causes the crash.
    Most of the dozen-or-so crash logs start like this:
    Process: Mail [17905] Path:
    /Applications/Mail.app/Contents/MacOS/Mail
    Identifier: com.apple.mail
    Version: 3.3 (926.1) Build
    Info: Mail-9260100~1 Code Type:
    X86 (Native) Parent Process: launchd
    [119]
    Date/Time: 2009-09-29
    10:47:52.713 -0600 OS Version:
    Mac OS X 10.5.7 (9J61) Report Version:
    6 Anonymous UUID:
    285B8613-3118-4F91-A28C-BC405D91FAFD
    Exception Type: EXCBADACCESS
    (SIGSEGV) Exception Codes:
    KERNINVALIDADDRESS at
    0x0000000089082454 Crashed Thread: 0
    Application Specific Information:
    -[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]
    One entry shows:
    Application Specific Information:
    -[MessageTransfer _synchronouslyPerformTransfer]
    +[Library synchronouslyUpdateMessageFiles]
    -[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]

    My guess, the email(s) are from windos users?
    I had this problem, until I switched to thunderbird. A few people, using a version (don't remember the version number) of outlook/outlook express, would send multimedia attachments.
    As soon as I would select the email, Mail would crash.
    I would copy the offending email to a folder with no other contents, and then open it up with TextEdit, to view the non-attachment portion.

  • HT5364 I installed OX X Moutain Lion and now I have trouble printing pdf documents--get messages like "plug in failed" or "no pages selected on printer" when clearly pages are selected

    I installed OS X Mountain Lion on my desktop MAC and since then I cannot print pdf documents---I get messages like "plug in failed" or sometimes "no pages selected on printer" when clearly pages are selected

    DO NOT USE PREVIEW TO FILL OUT PDF FORMS, IT WILL DESTROY PDF FILES. Sorry, but I had to shout here to prevent damage to your PDF files.
    Here is one of the symptoms when you fill out a PDF form with Preview: If you save it and return it to the author, they will not be able to see the text that you've added to form fields - unless they click on a field, which will reveal the contents of just that field. You can recover from this problem, but Preview will also remove other field types, and will actually rewrite your complete PDF while ignoring what it does not understand. Take a look at this blog post for more information about the damage that Preview will cause: Preview.app - Killer of PDF Files

  • SWF linked by reference in FM does not update in RH when FM files are updated

    Hi all, using TCS2 on WindowsXP.
    I have a FM book with a Captivate SWF linked by reference. When I link my FM book into RH, all works nicely. But here's the catch - when I change something in my Cativate project and re-publish the swf (to update the old swf), although the FM SWF updates to the new one, RH does not. The SWF found in RH is the one from the original instance of linking the FM book.  This is an issue as it seems to be hampering my 'single sourcing' world.
    Any thoughts?
    Thanks,
    Adriana

    HI there
    Are you able to just delete the SWF from RoboHelp? I'm thinking that if you could do that, the SWF would simply have to update from FM as it wouldn't be found any longer.
    I do realize it's a kludge and things should simply just *WORK*, but we do live in an imperfect world.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • When menu items are selected they become invsible

    when I select a menu item the words become invisible.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • ITunes stops downloading when other programs are running

    I noticed recently that as soon as I open any other programs while iTunes is running in the background, it stops downloading music. Any suggestions?
    David

    When you say "downloading music", do you mean downloading music to your iPod, or importing music from CDs, or something else?
    Also, with other applications closed by iTunes opened, launch your Task Manager, and go to the "Processes" tab.
    Watch these three processes: iTunes.exe, iPodService.exe, and iTunesHelper.exe.
    Now, try launching some other application.
    Do either of those three processes in any way disappear, then reappear again, or anything similar? Or do they stay fine and the same when you open another program?
    -Kylene

  • Ghost clip appears in canvas only when other clips are placed in its place

    Gd afternoon, this may sound crazy but here we go. the space on the timeline is blank, and when the sequence is played the blank section shows nothing but black screen. however when i drop any clip in the empty space on the timeline an old clip I changed the speed of shows over whatever clip i just dropped in the empty spot. Again, when the spot is empty nothing shows, only when a different clip is placed in that spot does the "ghost" clip appear over the new clip and the space that the ghost clip holds shows a blue rendered line for the speed that was changed.
    How do I get rid of this ghost clip?

    +thanks, i tried to delete the rendered clip but no help+
    No, what is required when the problem reaches the stage you described is to delete ALL of the render files for that sequence. One way to do that is to go to Tools > Render Manager and navigate to the problem sequence and clicking in the Remove column for that sequence. Then click OK.
    That will delete all of the render files for the sequence. Then you re-render. This sometimes works, as I said.

  • GMail keeps asking for password when other accounts are fine

    Currently I am running 4 IMAP and 1 Exchange account on Mail. I am trying to add a fifth IMAP GMail account but can't get past the setup screen as it keeps saying my password is wrong when it clearly is correct.
    How can I get IMAP running again and correctly on Mail?
    Thank you

    So I removed the buggy GMail account from Mail and waited a day. Today I decided to re-add it and all was well for one hour until the pop up for passwords happened again... I went into Preferences and accounts and saw my password wasn't stored so I added it and saved but still same issue.
    Also I added this account to my iPhone and it was working fine til an hour again so maybe a syncing issue?

Maybe you are looking for

  • Planned order creation with PDS valid on only order start date and not finish date

    Hi All, We have requirement to allow creation of planned order manually if production version is valid on order start date and not finish date.  This is because lead time of order is longer. I refered OSS notes 385602. I could find out solution for t

  • ITunes 7.0.2 crashes when I connect my iPod Nano

    iTunes 7.0.2 crashes when I connect my iPod Nano. What can I do about this? Thank you!

  • Question about network simlocks and countries

    No, I'm not asking how to unlock the phone, as that would be unethical. (Whether or not it is illegal is an interesting question, but not one I'm prepared to venture into here.) A friend of mine has a phone that is simlocked to Orange in the UK, and

  • HT4436 is icloud useful to me if I can't install it on my PC

    I just got an iphone and am using icloud to back it up.  I am unable to install icloud on my PC due to my OS. Is it still a useful tool for me? I've logged in onto icloud.com and am not sure if I have all the same options. Thanks.

  • P2 card Final cut pro

    G'day, I am loving shooting on the Panasonic HVX202 P2 card, however I need to get the files into FCP. I have saved all my files on my desktop - these are all under a folder called 'Contents' with sub-folders called Audio, Clip, Icon, Proxy, Video an