locked
Crash after resize RRS feed

  • Question

  • Hi there,

       I'm new here...

    I have tried to resize silverlight application... but my approach seem doesn't work with google chrome 6 and firefox 3, it works fine only with Internet Explorer 8, Opera 10 and Safari 5. This is my sample: 

    #region Constructor
    
            /// <summary>
            /// Constructor
            /// </summary>
            public MainPage()
    		{
    			// Required to initialize variables
    			InitializeComponent();
    
                this.MinHeight =
                    (int)LayoutRoot.ActualHeight;
    
                this.MinWidth = 
                    (int)LayoutRoot.ActualWidth; 
            }
    
            #endregion
    
            #region Event handler
    
            /// <summary>
            /// Start logo animation
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            private void UserControl_Loaded(object sender, RoutedEventArgs e)
            {
                // register event handler 
                App.Current.Host.Content.Resized +=
                    new EventHandler(contentResized);
    
                // start logo animation
                Logo1.Begin(); 
            }
    
            // resize silverlight application at runtime
            void contentResized(object sender, EventArgs e)
            {
                this.Width =
                    App.Current.Host.Content.ActualWidth;
    
                this.Height =
                    App.Current.Host.Content.ActualHeight;
            }
    ...
    #endregion

    What si wrong??Why this doesn't work with Google Chrome and Firefox (message error: "Unknow Hard Error"... another issue is that google chrome is very slow "with" animation... with other browsers, all animations are fast)?? Please help me ;-)


    Thx for any help

    Paolo

    Saturday, September 11, 2010 4:03 PM

Answers

  • OK, 

       after some (some bhau bhau many...) tests I have found bug... HtmlHost control doesn't work well with google chrome and firefox ooooooooooopsete.


    Bye

    Sunday, September 12, 2010 8:39 PM