Interaction logic for Bookmarks.xaml
Inheritance: System.Windows.Controls.UserControl
Exemple #1
0
 public BookmarkPanelItem(string url, string title, TabView tv, MainWindow mw, BookmarksPanel books)
 {
     InitializeComponent();
     _url          = url;
     _tv           = tv;
     label.Content = title;
     Loaded       += BookmarkItem_Loaded;
     mainWindow    = mw;
     bookmarks     = books;
 }
 public BookmarkPanelItem(string url, string title, TabView tv, MainWindow mw, BookmarksPanel books)
 {
     InitializeComponent();
     _url = url;
     _tv = tv;
     label.Content = title;
     Loaded += BookmarkItem_Loaded;
     mainWindow = mw;
     bookmarks = books;
 }
Exemple #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.BookmarksContent = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.bookmarks = ((WebExpress.Bookmarks.BookmarksPanel)(target));
                return;

            case 3:
                this.WeatherHeader = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.City = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.State = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.Temp = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.WeatherImage = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.mainCanvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }