How to remove Frame.BackStackDepth

Hi
I am developing a windows 8.1 app which includes several pages. I want to know how can I remove Frame.BackStackDepth so that when the user press the back button the app will navigate the control to the first page.
I tried this but its not working .
private void backButton_Click(object sender, RoutedEventArgs e)
this.Frame.BackStack.Remove(this.Frame.BackStackDepth);
this.Frame.GoBack();
samEE

Hi Sameel,
You can use following code to remove back-stack and  go First  Page
private void backButton_Click(object sender, RoutedEventArgs e)
{var rootFrame = (Window.Current.Content as Frame);
rootFrame.Navigate(typeof(FirstPage));
rootFrame.BackStack.Clear();
Don't
forget to mark the right answer and vote up if helps you.

Similar Messages

  • How to remove frames in ISA B2B

    Hi Everyone,
    Our requirement is to change the looks and feels of the standard ISA B2B application drastically. To achieve the requested looks and feel, we may have to remove the frames, but at this point we are not sure if this is possible.
    I would like to know if frames in B2B app can be removed? If Yes then, how easy or difficult it is to do that? What are the disadvantages of doing that?
    Many thanks in advance,
    Yoshi.

    Hi Yoshi,
    Remove frame/frames in ISA B2B is a standard requirement.
    There are 2 main files from where you can control ISA Frames.
    1.  fs_start_inner.jsp
    2.  fs_startworkarea.jsp
    You cannot remove frame from ISA B2B frame structure but you can hide frame.
    Below is the example to hide "History Frame"
    Open file fs_startworkarea.jsp.
    Try to find below line.
    <frameset cols="*,15,80" id="fourthFS" border="0" frameborder="0" framespacing="0">
    Here 15 and 80 represent closer_history and _history frames. Suppose you want to hide these 2 frames from ISA B2B frame structur then change as below.
    <frameset cols="*,0,0" id="fourthFS" border="0" frameborder="0" framespacing="0">
    Now save "fa_startworkarea.jsp" and run ISA B2B you will not see closer History and History frames on right side.
    Actually in ISA B2B we are not removing frames but we are hiding frames which is as good as removing frames.
    Hiding frame will not create any problem in ISA B2B as you are not bracking any logic or process flow so do not worry.
    Again remember we are not removing any frame from standard structure but we are just hiding it by making it "0"
    I hope it will help you to achieve  your goal.
    eCommerce Developer.
    Edited by: Ecommerce Developer on Jul 29, 2009 7:27 PM

  • How to remove frames from a exporrted Crystal Report10 ms word file

    Dear All
    I am generating reports in MS Word Format from Crystal Report 10 Export. The problem is that I have to change the formatting of the report, once it is exported to word file but the exported word file containing so may frames and due to these frames, I am unable to format the word file, copy/paste like MS word can.
    Please give me some solution to remove frmaes from word file or tell me some settings in the crystal report at the design time to generate report without frames.
    Thank you.
    Sachiko

    Mohamed,
    I am using Crystal Report 10 and no "Microsoft Word - Editable (RTF)" in the list
    I tried "MS Word" and "Rich Text Format", but both were same. Frames each text fields
    and can not copy/paste/edit
    Thank you.
    Sachiko

  • Remove frame from indicator

    How to remove frame from numeric indicator? I tried in "Modern" but cannot get rid of the frame. There is "System" indicator  but I cannot change the background color to match vi's background. Any ideas?
    I put picture of what I need. 
    Thanks,
    Zoran
    Solved!
    Go to Solution.
    Attachments:
    frame.JPG ‏33 KB

    And in order to remove the frame from the modern indicator, you use the paint tool and color it transparent. Make sure you select the frame by hitting the space bar.

  • How to remove a freeze frame in final cut pro x

    I've added a freeze frame using Add Freeze Frame, but I don't know how to remove it and go back to the normal timing.  I can remove it immediately with Undo, but I don't know how to do it later.  I've searched around and the only close answer is using Modify > Retime > Reset Speed, but that doesn't do anything.  I also don't see anything in the Inspector window that allows me to remove the freeze frame.  Thanks.
    Denise

    Hello Denise,
    Assuming your clip is on the Primary Storyline:
    Press Cmd+B to Blade the clip immediately before the frame in question.
    Select the first part of the clip and press Alt+Cmd+Up-Arrow to lift it from the Primary Storyline.
    Drag out the end to cover the duration of the clip you want to overwrite.
    Press Alt+Cmd+DOWN- arrow to overwrite to the Primary Storyline.
    I hope that's what you're looking for.
    Andy
    (PS - Tom, I think Denise is a female name).

  • Software update to Mavericks, now 'movable frame' appears on screen. Anyone know how to remove it as I have no idea?

    Software update to Mavericks, now 'movable frame' appears on screen. Anyone know how to remove it as I have no idea?
    iMac, Early 2009.  Processor  2.93 GHz Intel Core 2 Duo.  Memory  4 GB 1067 MHz DDR3

    From the menu bar, select
               ▹ System Preferences... ▹ Accessibility ▹ Zoom ▹ Zoom Style: Fullscreen

  • Pages - How to remove the grey frame?

    Hi!
    I am wondering how to remove the grey frame around the page so that when you print the page there won't be white borders around the page?
    Thanks!

    The grey border is probably the part the printer can't print on. It can be deselected in View > Hide layout. No matter what it will be white paper when you print.
    To not get white paper you need to be able to print borderless and you need to have images and text al the way out to the edge.

  • How can I remove frames in the middle of a clip?

    Seems Precision Editor should let me remove frams from the middle of an individual clip, but I can't figure out a way to do this.

    What application are you using?

  • Urgent help: How to remove the accumaltion when show movies step by step with buttons

    I want to show the movie step by step by clicking the next
    button. Inside each frame, many movie clips are generated
    dynamically at runtime, and they can be played interactively.
    I achieves the step-by-step display of those frames by adding
    another layer with the action stop(). But I got one trouble: all
    the movie clips from previous frames are accumalted. How to remove
    the accumulation from previous frames?
    For the continuous display of the movie, I tried to use
    onEnterFrame() and change the _visible property of all the movie
    clips to false in this function. But it doesn't work for the
    step-by-step display. Once I click the next button, the movie clips
    at the current frame just show very quickly, then disappear. What
    should I do?
    I need to fix this immediately.
    Your help would be greatly appreciated.
    - zcx

    you can use the removeMovieClip() method for those movieclips
    added dynamically.

  • Problem with p2 import - 30p via firestore but won't remove frames

    Hi all-
    Not sure what happened… I’ve been working this way for months and have never had a problem. Shooting 720/30p on HVX200 to firestore. Import into fcp via p2 import and checked remove frames and ended up with quicktimes that were 30 frames. This time I know we recorded 720 30p, but fcp did not/will not remove frames and I am left with qts that only work without renders in a 59.94 sequence, not the 30 I want. And there are 2 frames for every 1. What went wrong/what to do/how to fix?
    Thanks

    Can you check the MXF files with a program other than FC (a logger of some sort)? This will confirm that the MXF files are 30p. If they are 30p try the firestore repair clips function.
    TonyTony

  • Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"

    Portal 7.3 masthead customization - How to remove Logoff dialog box "Are you sure you want to logoff?"
    I have recently upgraded our portal to 7.3 sps10 and we are using the Ajax framework
    I have a requirement to Remove the Logoff Dialog box "Are you sure you want to logoff?"
    I am able to Import masthead.war into NWDS and get the project ready for development with the appropriate jar and libraries.
    I am able to deploy the project also. I need help finding How to turn this dialog box off and just log the user off. I was able to accomplish this in Classic frame work page HeaderiView.jsp.
    I have looked at afpmasthead.org.sj and masthead.jsp. I am not a js/jsp developer.
    I can see the logoff dialog box being created but I am having trouble finding the logoff code.
    Please advise me on the code changes required to remove the  Logoff dialog box "Are you sure you want to logoff?" from the Ajax framework.
    Any help on this matter would be greatly appreciated.
    Thank you
    Sarah

    Thank you Troy for your Helpful Threads.
    Problem Solution:
    Followed the thread on How to download and change AFP Masthead on SAP Portal 7.3
    Located the file which contains the logoff code from thread http://scn.sap.com/thread/3265584
    The File with the Logoff coding in it is a Javascript file afpmasthead.js
    Identified logoff code without dialog box using this thread https://scn.sap.com/thread/3307601
    NovaDialogBox.performLogout();    (perform logoff)
    I was able to remove the Logoff dialog box Do you really want to logoff? And replace it with logging the user off.
    afpmasthead.js  All the code is on 1 line,  To fix this go to -->Source -->Format
    Comment out the following lines of code and replace with logoff code
    logoffLinkElement.onmouseup= function(aS) {
    logoffLinkElement.onmouseup= function(aS) {
    NovaDialogBox.performLogout();
    Sarah

  • How to remove the underline in the parameters in the selection screen?

    how to remove the underline from the parameters in the selection screen?
    i came through the comment statements in the forum is there any other ways like setting some fields in the declarattion of the parameter itself?
    like
    parameter:p1 type string .......?

    I dont think there is an alternative to removing the underlines other than to go for COMMENT. In the selection texts (of text elements) we can just give the parameter name or take the standard text from dictionary, but theres no option to remove the underlines.
    SELECTION-SCREEN BEGIN OF BLOCK rbg WITH FRAME TITLE tit.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-001 MODIF ID sc1.
    PARAMETERS:
      p_param TYPE vbak-vbeln.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS:
      p_posnr TYPE vbap-posnr.
    SELECTION-SCREEN END OF BLOCK rbg.

  • How to remove an selection screen element at the event

    hi,
    can any one tell me how to remove / Disable an selection screen element at the runtime after an event occurs like selection of Value from a parameter.
    Thanks and Regards
    Guhapriyan Subrahmanyam

    TABLES : BKPF.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.
    "Company code
    SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.
    "Accounting Doc No
    PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.
    "Fiscal year
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON S_BELNR.
    IF S_BELNR IS NOT INITIAL.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'M02' .
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF.

  • Can any one tell me how to remove the 3 buttons at the top of a dialog?

    Hi all
    Can any one tell me how to remove the 3 buttons at the top of a dialog?
    The Close, Minimize and the other I don�t know what you call that one.
    Thanks for you time All
    Have a great day
    Craig

    Try http://java.sun.com/docs/books/tutorial/uiswing/components/frame.html#setDefaultLookAndFeelDecorated

  • How to remove all transitions?

    I used the automate to sequence with default transition. A few dozens of transitions were added to the sequence.
    How to remove all the transitions without deleting the sequence and starting from scratch please?
    Thanks in advance.

    The difference in file size you are seeing is because you are only using motionless stills in your movies. No motion, and no effects. Some codecs allows for file size reduction by writing first and last frame information for a still, regardless of the length in the video sequence. Why the transition increases file size is because the codec actually has to write info for each frame in the length of the transition.
    This is not going to be the case with anybody working with actual video clips, or if someone adds motion to their stills. The codec then has to write information for every frame, resulting in a larger file size. For most projects, transitions will not make any significant change in file size.

Maybe you are looking for

  • Will Ubuntu work?

    I'm having a hard time gauging whether Ubuntu will install on particular HP laptops, since there are so many models out there. Specifically, I was looking to get the HP PAVILION 15-P241ND for use at my job, because it has 16GB RAM, and I don't care m

  • Graphical interface improvements on JDeveloper 11g

    Congratulations you really improved the design interface I finally could drag an jsf adf item to anothre place, But I can't move the prompt of that item so easily. I don't know if you checked yahoo geocities free web designer, this is very interestin

  • Why won't my ATV go to sleep?

    I have my Apple TV set to go to sleep after 15 minutes but it rarely does. The LED is always lit up in the front. Any advice?

  • IMac overheating. Take imac in store?

    I've had my 27" iMac since 2010, after 2 years I suddenly noticed heat. It heats up so much it makes me paranoid. I have smc fan control installed, and it helps, but I know that upping the fan speeds can risk the life span of my hardware (fan). So I

  • General idea required for unit wise separation?

    Hi Experts, I have to share my present state that I am handling the Material Management system in my concern. That MM having many tables,sequences,packages,procedure and function and other relevant objects too. Now let i explain the issue. The compan