private static void ScrollDataReceivedDelegate(object sender, ScrollDataEventArgs e) { var webControl = (Awesomium.Windows.Controls.WebControl)sender; webControl.Height = e.ScrollData.ContentHeight; webControl.Width = e.ScrollData.ContentWidth; webControl.Visibility = Visibility.Visible; }
private void internalGetScrollData( IntPtr caller, int contentWidth, int contentHeight, int preferredWidth, int scrollX, int scrollY ) { ScrollDataEventArgs e = new ScrollDataEventArgs( new ScrollData( contentWidth, contentHeight, preferredWidth, scrollX, scrollY ) ); this.OnScrollDataReceived( this, e ); CommandManager.InvalidateRequerySuggested(); }
private void internalGetScrollData( IntPtr caller, int contentWidth, int contentHeight, int preferredWidth, int scrollX, int scrollY ) { ScrollDataEventArgs e = new ScrollDataEventArgs( new ScrollData( contentWidth, contentHeight, preferredWidth, scrollX, scrollY ) ); this.OnScrollDataReceived( this, e ); }
/// <summary> /// Raises the <see cref="ScrollDataReceived"/> event. /// </summary> protected virtual void OnScrollDataReceived( object sender, ScrollDataEventArgs e ) { if ( ScrollDataReceived != null ) ScrollDataReceived( sender, e ); }
private void OnScrollDataReceived(System.Object sender, ScrollDataEventArgs e) { Debug.LogError("sx: " + e.ScrollData.ScrollX + " sy: " + e.ScrollData.ScrollY); }