/// <summary> /// Occure when ErrorCorrectLevel or Text changed /// </summary> private static void OnMatrixValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { QrCodeGeoControl geoControl = (QrCodeGeoControl)d; geoControl.UpdateGeometry(); geoControl.UpdatePadding(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.textBox1 = ((System.Windows.Controls.TextBox)(target)); #line 16 "..\..\..\MainWindow.xaml" this.textBox1.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox1_TextChanged); #line default #line hidden return; case 2: this.qrCodeGeoControl1 = ((Gma.QrCodeNet.Encoding.Windows.WPF.QrCodeGeoControl)(target)); return; case 3: this.qrCodeImgControl1 = ((Gma.QrCodeNet.Encoding.Windows.WPF.QrCodeImgControl)(target)); return; } this._contentLoaded = true; }