Question about manipulation : How to horizontally swipe on control to do something ?

<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,9.5,19,0">
<ListView x:Name="cc" ManipulationMode="TranslateX" ManipulationDelta="cc_ManipulationDelta" />
</Grid>
I want to swipe horizontally to change the ItemsSource of the ListView?, but it only change the first time, then which part of the code need to be changed?
private void cc_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
this.pageTitle.Text = e.Delta.Translation.X.ToString();
if (e.Delta.Translation.X > 0)
this.cc.ItemsSource = list1;
else if (e.Delta.Translation.X < 0)
this.cc.ItemsSource = list3;

Your code works fine for me.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.

Similar Messages

  • Hello , I want to ask some question about ipads \  How powerful is the iPad?  How useful is it for reading books, newspaper or magazines or for surfing the web? Can you identify any shortcomings of the device?   please help me :(

    Hello ,
    I want to ask some question about ipads \
    How powerful is the iPad? 
    How useful is it for reading books, newspaper or magazines or for surfing the web?
    Can you identify any shortcomings of the device?  
    please help me

    it's less powerful than your average computer. THink of it like a netbook but with a better processor.
    It'll do fine for surfing (although if you browse a lot of flash based sites you will need to get a third party browser since safari doesn't accommodate it)
    You may do OK on reading books, papers or magazines, especially if they have apps, but the ipad's screen is backlit, so it doesn't work well outdoors and you may need to fiddle with the brightness so that you don't get eye strain (it's just like doing too much reading from a computer screen)
    I would say the biggest short comings are data transfer. Apple's preferred work flow is that everything is done via iTunes or the internet....well people dont' always have 100% reliable always on internet access so you can find yourself in a situation where you can't get things on/off the iPad.
    By and large, it's a good device for day to day stuff, but is not a computer replacement.

  • HT2506 Hello guys, I have a question about Preview - How do you loop a slideshow?

    Hello guys, I have a question about Preview - How do you loop a slideshow?

    Had the "loop" feature using Preview in 10.4.11; upgaded to 10.5.8 and it's gone. Don't you have to work at "Taking" it away? Makes no sense. Now you have to look for a third market for something that was included in Preview since the first version was launched.  ....I don't get this one.

  • Question about slowdown - how iPhoto's database works

    If I import X number of photos, edit them, export them, and then delete them from the library... does that impact in any way?
    I only have about 12,000 photos in my library, but it's slow at different times... such as browsing photos in full screen... sometimes (every 10-20 photos or so) it hiccups for 5 seconds or so before moving onto the next photo when I press the right arrow key...
    I have no idea why it's doing this... and I'm trying to figure out what's making it freak out like this...
    I have imported a lot of photos, but deleted them later from the library... does that negatively affect the database?

    If I import X number of photos, edit them, export them, and then delete them from the library... does that impact in any way?
    Apart from disabling the key features of iPhoto such as lossless editing, no.
    Back Up and try rebuild the library: hold down the apple and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    How big is your HD and how much free space on it?
    Regards
    TD

  • Keep getting blue banner question about homepage -- how do I stop it?

    When I open firefox the bluebanner at the top appears asking about making google my home page even though it is already set to google. How do you get rid of the blue banner?

    I think that is a page ad from Google.
    Separate Issue;
    Your System Details shows;
    Installed Plug-ins
    NVIDIA 3D Vision Streaming plugin for Mozilla browsers
    NVIDIA 3D Vision plugin for Mozilla browsers * Are these the same thing?
    Shockwave Flash 13.0 r0
    Shockwave Flash 16.0 r0
    Having more than one version of a program may cause issues.
    Flash:
    Grab the uninstaller from here:
    '''[http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html Uninstall Flash Player | Windows]'''
    '''[http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html Uninstall Flash Player | Mac]'''
    Then reinstall the latest version.
    Flash Player '''v16.0.0.287<br>https://www.adobe.com/products/flashplayer/distribution3.html'''

  • Question about Quads (how do I view them from both sides?)

    Hi guys. Well I just started using Java3D...I've used Open GL in C++ for a little while so I had some experience coming in. I got a world up where you can move the camera around and rotate it and stuff and I can load Quads and their texture coordinates from a text file...but for some reason no matter what I try the polygons can only be viewed from one side. It just so happens that this is sometimes the side that I want to be able to see. Can someone help me with this? Thanks,
    Compaq

    For some reason this line worked:
    (Attributes)a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_FILL, PolygonAttributes.CULL_NONE, 0));
    so I guess it just has to do with the getPolygonAttributes...I'll use this for now but I hope that POLYGON_FILL does not mess up anything although I don't think it will...I just don't fully understand it yet. Oh well thanks again! If it wern't for the PolygonAttributes information I wouldn't have been able to solve it. Now any ideas on my other post about rotating in two planes hehe? Thanks,
    Compaq

  • Where can I ask questions about manipulating LOBs?

    I'm interested in finding best practices for working with LOBs. i.e. Optimization, when to avoid, how to get around them, etc. Some of our operations are very slow when it comes to LOBs.
    Thank you,
    Scott Keller
    [email protected]

    Did you have a look to the Oracle® Database Application Developer's Guide - Large Objects: http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14249/toc.htm.
    It has some interesting sections such as:
    Advanced Design Considerations
    Performance Guidelines

  • Questions about licenses - How to get them back?

    Hey Guys!
    For maybe a year ago I bought Logic Pro 9 in App Store. And if I got it right, I have 5 licenses - right?
    So I installed it on my partners Mac, my iMac, and my two MacBooks. (That gives me one licens back).
    If I later decides to sell one of my computers, is there a way to get the licens back? (So i have two)
    Maybe by deleting the program or even format the computer.? Or do I have to buy it again? What to do?
    Looking forward to hear from you guys! :-)
    Kind Regards
    Mathias Thunbo - Denmark.

    What makes you think you have 5 licenses? Did you purchase a volume license? Or are you referring to the "install on all Macs you own and control"?
    If you are referring to the limit of 5 with iTunes, that is iTunes (music/video content) and has nothing to do with software applications purchased/downloaded from the Mac App Store.
    Here is an excerpt of the SLA:
    2. Permitted License Uses and Restrictions.
    A. Subject to the terms and conditions of this License, unless you obtained the Apple Software under a volume license, maintenance or other written agreement from Apple, you are granted a limited non-transferable license to install and use the Apple Software only on Apple-branded computers that you own or control in accordance with the Mac App Store Product Usage Rules located at: http://www.apple.com/legal/itunes/ww/ (“Mac Usage Rules”). Except as permitted under the Mac Usage Rules, you may not distribute or make the Apple Software available over a network where it could be used by multiple devices at the same time. You may not rent, lease, lend, sell, transfer, redistribute or sublicense the Apple Software.
    You can download the entire thing here:
    http://www.apple.com/legal/sla/
    http://www.apple.com/legal/itunes/us/terms.html#APPS
    As far as I know, you cannot give/sell the license to someone else if/when you sell your Mac. The license is tied to your Apple ID and (I believe) not transferable. Applications sold in the app store not only have the store terms attached to them, but the individual software license agreements as well.

  • Question about keyboard, how can I turn off shortcuts?

    Hello all, I've had my laptop for a few weeks now and I have adjusted to the smaller keyboard but there must be shortcut keys built in cause my curser ends up all over the place when I'm typing (I must be bumping a key somewhere with my hand). I'm forever putting the curser back at the 'end' so I can continue with what I am typing. this happens ALL THE TIME! I am a fast typer so having to stop frequently and edit is driving me up the wall.
    Is there a way I can turn the shortcuts off? I hvent found any information anywhere. It's not the hotkey function.
    Or do I maybe have a faulty keyboard?? Is there some setting I can adjust so sthe keyboard isnt so sensitive to touch? My fingernails are longish so may be inadvertantly tapping another key.
    cheers,
    JO

    Maybe you're touching the touch pad by accident while typing, resulting in your cursor moving all over the place. You could adjust touch pad sensitivity or even turn it of and use external mouse.

  • Question about MyVegas games continually spinning out of control

    Windows 7
    flashplayer version 16,0,0,235
    Google Chrome
    MyVegas games will not stop spinning most of the time. Checked updates etc. all else works fine. Anyone else having same problem? All posts greatly appreciated.

    Please ask your question on a forum for the Flash Player

  • Question about the "goback" opterations in ALV GRID control.

    Hi everyone,
      I have a little situation here:
        in my ALV ,I deactive some of the standard toolbar functions  and  add one button of mine
    on the toolbar.  I leave 3 standard toolbar functions: insert a row ,delete a row and  go back.
    after I used standard toolbar functions to insert/delete a row, I can use the function "go back" and
    It really goes back to the previous status. But after I used my own button(the function is insert a
    row too) to insert a row, I can never go back to the previous status by pressing the button "go back".
    I want to know why and how can I make my own button able to go back.
    thanks for your help.

    see example
    Button  > : displays the next N records                            *
    Button  < : displays the previous N records                       *
    Button I< : displays the first page                                     *
    Button >I : displays the last page                                      *
    When the buttons Sort up, sort down, Filter, Delete Filter are      *
    pressed, N record are still displayed                  
    FORM f_read_data USING u_ucomm TYPE syucomm.
      STATICS :
        l_1   TYPE sytabix,
        l_2   TYPE sytabix.
      DATA l_max TYPE sytabix.             " Internal table size
      DESCRIBE TABLE gt_mara_ftr LINES l_max.
      CASE u_ucomm.
        WHEN c_first_page.                 " 1st page
          l_1 = 1.
        WHEN c_prev_page.                  " Previous page
          SUBTRACT p_max FROM l_1.
          IF l_1 < 1.
            l_1 = 1.
          ENDIF.
        WHEN c_next_page.                  " Next page
          IF l_1 IS INITIAL.
            l_1 = 1.
          ELSE.
            ADD p_max TO l_1.
          ENDIF.
          IF l_1 > l_max.
            l_1 = l_max.
          ENDIF.
        WHEN c_last_page.                  " Last page
          l_1 = l_max - p_max + 1.
          IF l_1 < 1.
            l_1 = 1.
          ENDIF.
      ENDCASE.
      l_2 = l_1 + p_max - 1.
      IF l_2 > l_max.
        l_2 = l_max.
      ENDIF.
      REFRESH gt_mara.
      IF l_max > 0.
        APPEND LINES OF gt_mara_ftr FROM l_1
                                      TO l_2
                                      TO gt_mara.
      ENDIF.
    ENDFORM.                               " F_READ_DATA
    FORM user_command USING u_ucomm     TYPE syucomm
                            us_selfield TYPE slis_selfield.     "#EC CALLED
      CASE u_ucomm.
        WHEN c_first_page OR c_next_page OR
        c_prev_page OR c_last_page.        " Page F, P, N, L
          PERFORM f_read_data USING u_ucomm.             " Update gt_mara
          us_selfield-refresh = 'X'.
        WHEN '&OUP' OR '&ODN'.             " Sort
          PERFORM f_sort_big_table.
          PERFORM f_read_data USING c_first_page.
          us_selfield-refresh = 'X'.
        WHEN '&ILT'.                       " Filter
          PERFORM f_filter_data.
          PERFORM f_read_data USING c_first_page.
          us_selfield-refresh = 'X'.
        WHEN '&ILD'.                       " Delete filter
          gt_mara_ftr[] = gt_mara_all[].
          PERFORM f_read_data USING c_first_page.
          us_selfield-refresh = 'X'.
      ENDCASE.
    ENDFORM.                               " USER_COMMAND

  • Request for a unlocked BIOS for GT70 0ND 202US and question about donation

    I am using GT70 0ND 202US。 The current BIOS version is E1762IMS.10R from the official MSI website.
    The features I need are basically, exchange the Fn and Win keys, disable a SATA drive.
    I also like to play around with some other unlocked features in BIOS, if you would like to provide one.
    Also a question about donation, how much I should donate?
    Thanks.

    Tell EC version used[along with BIOS version] in BIOS Setup, system info.
    Quote
    Also a question about donation, how much I should donate?
    It's up to you, its left to people to decide depend of their possibilities.
    Quote
    The features I need are basically, exchange the Fn and Win keys, disable a SATA drive.
    IE like this:
    Quote
    I also like to play around with some other unlocked features in BIOS, if you would like to provide one.
    oki

  • How to make content horizontal swipe in single standard frame in Indesign CS6?

    How to make content horizontal swipe in single standard frame in Indesign CS6?

    This sounds like a question for the DPS forum. We don't handle DPS questions here:
    Digital Publishing Suite

  • I have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    i have question about hooking up an external hdd to a time capsule and still have my printer hooked up as well. Anyone got any tips for me, how to do it and what brand of harddrive that will work best for me 1 or 2 TB

    You just need a powered hub.. if you already use one then fine.
    Plug in just about any external hard disk will work fine. Format has to be readable by the TC.. ie fat32.. or much better HFS+.. plug it into a Mac to prepare the drive.
    Pick whatever size suits.. nowadays 2TB are most economical.
    WD, Seagate have goobled up all the minor players.. so pick one.
    Whatever suits your budget and asthetics.
    NOTE.. The USB on the TC is fine for printers.. IMHO it is the wrong way to go with USB disks.. use the internal disk of the TC.. USB is less than half the native speed plugged into a Mac.. TC to USB is slow.. far slower than internal drive.. or using external drive as external.

  • Had to change my Apple ID because the original email address is no longer valid.  How do I change the iCloud user name on iMac?  I found instructions about signing out of iCloud and signing back end.  It asks questions about contact, etc.

    Had to change Apple ID due to email address no longer valid.  Trying to change id for icloud...saw direction online about signing out of icloud and signing back in...when it ask questions about contacts, photos, etc. being deleted how do I answer those?  That just sort of freaks me out.

    For the ones that give you an option, select the option you want (keep on the Mac or Delete). For the ones that are simply warning you, click on Delete from Mac.
    They will all come back when you sign back on, since all you did was change your existing Apple ID to a new email address. It's the same iCloud account, just with a different name.
    It's the only way to get your updated ID signed onto iCloud.
    Cheers,
    GB

Maybe you are looking for

  • How do you set up dns

    i need to set up a dns sever for a sound server but i do not know how to config it on the bt homehub

  • Save an image from interactive form to R/3 system table

    Hi to all, my scenario is this: Web AS 7.0 (probably patched to the last available patch), NWDS 7.0 and, at the moment, a 4.6c R/3 backend system (within some months we will upgrade to ECC 6.0). I have an online interactive form with some input field

  • CiscoView 6.1.9 error on stacked WS-C2960S-48FPD-L

    Hi CiscoView 6.1.9 is not identifing correctly the Te (10 GB) interfaces on the slave modules of a stacked WS-C2960S-48FPD-L. On the master switch of the stack it correctly identifies the Te interface. On the slave switches of the stack CiscoView ass

  • Copper cable / GigE Copper Interface as Private Interconnect for Oracle RAC

    Hello Gurus Can some one confirm if the copper Cables ( Cat5/RJ45) can be used for Gig Ethernet i.e. Private interconnects for deploying Oracle RAC 9.x or 10gR2 on Solaris 9/10 . i am planning to use 2 X GigE Interfaces (one port each from X4445 Quad

  • Microsoft Office Student Edition

    I didn't know where to post it so I will post it here. My sister just currently got a macbook for graduation(http://www.flickr.com/photos/ischutz/sets/72157600828795534/) and for college she needs something that she can type up reports etc. My mom's