Example #1
0
        private void OnRequestSetStatusBar_Hyperlink(object sender, RoutedEventArgs e)
        {
            RequestSetStatusBarEventArgs statusEvent = e as RequestSetStatusBarEventArgs;

            if (statusEvent != null)
            {
                SetStatusBarText(statusEvent.Text);
            }
        }
Example #2
0
        private void OnRequestSetStatusBar_Hyperlink(object sender, RoutedEventArgs e)
        {
            RequestSetStatusBarEventArgs requestSetStatusBarEventArgs = e as RequestSetStatusBarEventArgs;

            if (requestSetStatusBarEventArgs != null)
            {
                this.SetStatusBarText(requestSetStatusBarEventArgs.Text);
            }
        }
Example #3
0
        private static void UpdateStatusBar(object sender) 
        {
            IInputElement element = (IInputElement)sender;
            DependencyObject dObject = (DependencyObject)sender;
 
            Uri targetUri = (Uri)dObject.GetValue(GetNavigateUriProperty(element));
 
            // 
            // Keep the identification code for the element that's to be protected against spoofing
            // attacks because its URI is shown on the status bar. 
            //
            s_criticalNavigateUriProtectee.Value = dObject.GetHashCode();

            // 
            // Cache URI for spoofing countermeasures.
            // 
            CacheNavigateUri(dObject, targetUri); 

            RequestSetStatusBarEventArgs args = new RequestSetStatusBarEventArgs(targetUri); 
            element.RaiseEvent(args);
        }