// Token: 0x06002920 RID: 10528 RVA: 0x000BE190 File Offset: 0x000BC390
 internal NavigatingCancelEventArgs(Uri uri, object content, CustomContentState customContentState, object extraData, NavigationMode navigationMode, WebRequest request, object Navigator, bool isNavInitiator)
 {
     this._uri                = uri;
     this._content            = content;
     this._targetContentState = customContentState;
     this._navigationMode     = navigationMode;
     this._extraData          = extraData;
     this._webRequest         = request;
     this._isNavInitiator     = isNavInitiator;
     this._navigator          = Navigator;
 }
        // Internal constructor
        // <param name="uri">URI of the markup page being navigated to.</param>
        // <param name="content">Root of the element tree being navigated to.</param>
        // <param name="navigationMode">Enum {New, Back, Forward, Refresh}</param>
	    // <param name="Naviagtor">navigator that raised this event</param>
        internal NavigatingCancelEventArgs(
            Uri uri, Object content, CustomContentState customContentState,
            Object extraData, NavigationMode navigationMode, 
            WebRequest request, object Navigator, bool isNavInitiator)
        {
            _uri = uri;
            _content = content;
            _targetContentState = customContentState;
            _navigationMode = navigationMode;
            _extraData = extraData;
            _webRequest = request;
            _isNavInitiator = isNavInitiator;
            _navigator = Navigator;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Adds a new journal entry to NavigationWindow's back history.
 /// </summary>
 /// <param name="state"> The custom content state (or view state) to be encapsulated in the
 /// journal entry. If null, IProvideCustomContentState.GetContentState() will be called on
 /// the NavigationWindow.Content or Frame.Content object.
 /// </param>
 public void AddBackEntry(CustomContentState state)
 {
     VerifyAccess();
     _navigationService.AddBackEntry(state);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds a new journal entry to NavigationWindow's back history.
 /// </summary>
 /// <param name="state"> The custom content state (or view state) to be encapsulated in the
 /// journal entry. If null, IProvideCustomContentState.GetContentState() will be called on
 /// the NavigationWindow.Content or Frame.Content object.
 /// </param>
 public void AddBackEntry(CustomContentState state)
 {
     VerifyContextAndObjectState();
     NavigationService.AddBackEntry(state);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Adds a new journal entry to NavigationWindow's back history.
 /// </summary>
 /// <param name="state"> The custom content state (or view state) to be encapsulated in the
 /// journal entry. If null, IProvideCustomContentState.GetContentState() will be called on
 /// the NavigationWindow.Content or Frame.Content object.
 /// </param>
 public void AddBackEntry(CustomContentState state)
 {
     VerifyContextAndObjectState();
     NavigationService.AddBackEntry(state);
 }
Exemplo n.º 6
0
 public void AddBackEntry(CustomContentState state) 
 { 
     _host.VerifyContextAndObjectState();
     _rootNavSvc.AddBackEntry(state); 
 }
Exemplo n.º 7
0
        /// <summary>
        /// Adds a new journal entry to NavigationWindow's back history.
        /// </summary>
        /// <param name="state"> The custom content state (or view state) to be encapsulated in the
        /// journal entry. If null, IProvideCustomContentState.GetContentState() will be called on
        /// the NavigationWindow.Content or Frame.Content object.
        /// </param>
        public void AddBackEntry(CustomContentState state)
        {
            if (IsDisposed)
            {
                return;
            }
            if (_bp == null)
                throw new InvalidOperationException(SR.Get(SRID.InvalidOperation_AddBackEntryNoContent));

            _customContentStateToSave = state;
            JournalEntry je = UpdateJournal(NavigationMode.New, JournalReason.AddBackEntry, null);
            // Controls state is not saved by design (saveContent=false). If client applications
            // require it to be synchronized with the CustomContentState, they can explicitly
            // include it.

            _customContentStateToSave = null;

            // Since state=null is allowed on input, make sure we get an object either via the
            // IProvideCustomContentState interface or from a Navigating event handler.
            // Otherwise it doesn't make sense to add a journal entry.
            if (je != null && je.CustomContentState == null)
            {
                RemoveBackEntry();
                throw new InvalidOperationException(
                    SR.Get(SRID.InvalidOperation_MustImplementIPCCSOrHandleNavigating,
                            _bp != null ? _bp.GetType().ToString() : "null"));
            }
        }
Exemplo n.º 8
0
 public void AddBackEntry(CustomContentState state)
 {
 }
 public void AddBackEntry(CustomContentState state)
 {
     PART_Frame.AddBackEntry(state);
 }
 public void AddBackEntry(CustomContentState state)
 {
 }