Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.@switch = ((FileExplorer.WPF.BaseControls.Switch)(target));
                return;

            case 2:
                this.bexp = ((FileExplorer.WPF.BaseControls.DropDownList)(target));
                return;

            case 3:
                this.path = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.btree = ((FileExplorer.WPF.UserControls.BreadcrumbTree)(target));
                return;

            case 5:
                this.sbox = ((FileExplorer.WPF.BaseControls.SuggestBox)(target));
                return;

            case 6:
                this.StarGeometry = ((System.Windows.Shapes.Path)(target));
                return;

            case 7:
                this.AddBookmarks = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        protected static void OnSuggestionsChanged(object sender, DependencyPropertyChangedEventArgs args)
        {
            SuggestBox sbox = sender as SuggestBox;

            if (args.OldValue != args.NewValue)
            {
                sbox.popupIfSuggest();
            }
        }