void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TCPrincipal = ((MahApps.Metro.Controls.MetroTabControl)(target)); return; case 2: this.Btn_despliegaFly = ((System.Windows.Controls.Button)(target)); #line 68 "..\..\MainWindow.xaml" this.Btn_despliegaFly.Click += new System.Windows.RoutedEventHandler(this.Btn_despliegaFly_Click); #line default #line hidden return; case 3: this.Btn_CerrarApp = ((System.Windows.Controls.Button)(target)); return; case 4: this.Btn_MinApp = ((System.Windows.Controls.Button)(target)); return; case 5: this.fly = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
private static Tuple<Theme, Accent> DetectTheme(Flyout flyout) { if (flyout == null) return null; // first look for owner var window = flyout.TryFindParent<MetroWindow>(); var theme = window != null ? ThemeManager.DetectTheme(window) : null; if (theme != null && theme.Item2 != null) return theme; // second try, look for main window if (Application.Current != null) { var mainWindow = Application.Current.MainWindow as MetroWindow; theme = mainWindow != null ? ThemeManager.DetectTheme(mainWindow) : null; if (theme != null && theme.Item2 != null) return theme; // oh no, now look at application resource theme = ThemeManager.DetectTheme(Application.Current); if (theme != null && theme.Item2 != null) return theme; } return null; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.TC = ((MahApps.Metro.Controls.MetroTabControl)(target)); return; case 3: #line 153 "..\..\..\..\ExampleWindows\CleanWindowDemo.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 4: #line 157 "..\..\..\..\ExampleWindows\CleanWindowDemo.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; } this._contentLoaded = true; }
private void DetachHandlers(Flyout item) { var isOpenChanged = DependencyPropertyDescriptor.FromProperty(Flyout.IsOpenProperty, typeof(Flyout)); var themeChanged = DependencyPropertyDescriptor.FromProperty(Flyout.ThemeProperty, typeof(Flyout)); isOpenChanged.RemoveValueChanged(item, this.FlyoutStatusChanged); themeChanged.RemoveValueChanged(item, this.FlyoutStatusChanged); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\MainWindow.xaml" ((RecognitionClient.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 3: this.Feed = ((MahApps.Metro.Controls.Flyout)(target)); return; case 4: this.TrainPreview = ((System.Windows.Controls.Image)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.flyoutsControl = ((MahApps.Metro.Controls.FlyoutsControl)(target)); return; case 2: this.settingsFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 3: this.PeopleName = ((System.Windows.Controls.TextBox)(target)); #line 40 "..\..\..\Views\StudentCIView.xaml" this.PeopleName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.PeopleName_TextChanged); #line default #line hidden return; case 4: this.Record = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MetroWindow = ((StudentManagement.MainWindow)(target)); return; case 2: this.AccountFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 3: this.AccountSettingsFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 4: this.Account = ((MahApps.Metro.Controls.WindowCommands)(target)); return; case 5: this.cmbChangeUC = ((System.Windows.Controls.ComboBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TopCountsStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.TestDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 3: #line 69 "..\..\..\Windows\AdminWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Flyout_Open); #line default #line hidden return; case 4: this.OtherFeaturesFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Options = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\MainWindow.xaml" this.Options.Click += new System.Windows.RoutedEventHandler(this.Options_Click); #line default #line hidden return; case 2: this.Flyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 3: this.btnAbout = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\MainWindow.xaml" this.btnAbout.Click += new System.Windows.RoutedEventHandler(this.btnAbout_Click); #line default #line hidden return; case 4: this.Status = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 33 "..\..\1. Window_MyTestFlyout.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 2: this.flyout1 = ((MahApps.Metro.Controls.Flyout)(target)); return; case 3: this.editDataButton = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 4: this.popup1 = ((System.Windows.Controls.Primitives.Popup)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.BtMenu = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\MainWindow.xaml" this.BtMenu.Click += new System.Windows.RoutedEventHandler(this.BtMenu_Click); #line default #line hidden return; case 2: this.FlyMenu = ((MahApps.Metro.Controls.Flyout)(target)); #line 30 "..\..\MainWindow.xaml" this.FlyMenu.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.Flyout_ContextMenuOpening); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// Initializes the control with a <see cref="MainWindow"/>. Necessary, as the <see cref="Window.GetWindow"/> method is unable to find a window for flyout controls. /// </summary> /// <param name="mainWindow">The <see cref="MainWindow"/>.</param> public void InitWindow( MainWindow mainWindow ) { this.window = mainWindow; flyout = window.OSFlyout; flyout.IsOpenChanged += OsFlyoutOnIsOpenChanged; downloader = new WebClient( ); downloader.DownloadProgressChanged += ( Sender, Args ) => controller.SetProgress( Args.BytesReceived );; downloader.DownloadFileCompleted += DownloaderOnDownloadFileCompleted; LanguageList.SelectionChanged += ( Sender, Args ) => { bool HasSelection = LanguageList.SelectedItems.Count > 0; DownloadSubsLanguagesButton.IsEnabled = HasSelection; }; window.SizeChanged += ( Sender, Args ) => { if ( !Args.WidthChanged ) return; this.Width = Args.NewSize.Width * 0.8; }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Window = ((Wordbook.MainWindow)(target)); return; case 2: this.MainFlyout = ((MahApps.Metro.Controls.Flyout)(target)); #line 50 "..\..\MainWindow.xaml" this.MainFlyout.IsOpenChanged += new System.EventHandler(this.MainFlyoutOnIsOpenChanged); #line default #line hidden return; case 3: this.MainContentControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target)); return; case 4: this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.StatusBarContentControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.FlyOutMenu = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.FlyOutGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.FlyOutCloser = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 33 "..\..\..\Windows\MainWindow.xaml" this.FlyOutCloser.Click += new System.Windows.RoutedEventHandler(this.FlyOutButton_OnClick); #line default #line hidden return; case 4: this.FilterLabel = ((System.Windows.Controls.Label)(target)); return; case 5: this.FileTypeSelection = ((System.Windows.Controls.ListView)(target)); return; case 6: this.UserSection = ((System.Windows.Controls.Grid)(target)); return; case 7: this.SignOutBtn = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\..\Windows\MainWindow.xaml" this.SignOutBtn.Click += new System.Windows.RoutedEventHandler(this.SignOutBtn_Click); #line default #line hidden return; case 8: this.MainGrid = ((System.Windows.Controls.Grid)(target)); return; case 9: this.FlyOutOpener = ((System.Windows.Controls.Primitives.ToggleButton)(target)); #line 107 "..\..\..\Windows\MainWindow.xaml" this.FlyOutOpener.Click += new System.Windows.RoutedEventHandler(this.FlyOutButton_OnClick); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.image = ((System.Windows.Controls.Image)(target)); return; case 2: #line 61 "..\..\..\..\Pages\Comerciante\vComerciante.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click); #line default #line hidden return; case 3: this.label = ((System.Windows.Controls.Label)(target)); return; case 4: this.Configuracion = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.flyoutModuleInformation = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: #line 128 "..\..\..\Views\PumpingWindow.xaml" ((System.Windows.Controls.TextBox)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.TextBox_KeyEnterUpdate); #line default #line hidden return; case 3: this.flyoutErrorInformation = ((MahApps.Metro.Controls.Flyout)(target)); return; case 4: this.ErrorMessageTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.radioButtonBoreHoleInsideDiameter16 = ((System.Windows.Controls.RadioButton)(target)); return; case 6: this.radioButtonBoreHoleInsideDiameter24 = ((System.Windows.Controls.RadioButton)(target)); return; case 7: this.radioButtonBoreHoleInsideDiameter30 = ((System.Windows.Controls.RadioButton)(target)); return; case 8: this.radioButtonBoreHoleInsideDiameter36 = ((System.Windows.Controls.RadioButton)(target)); return; case 9: this.dropDownNominalPipeOutsideDiameter = ((MahApps.Metro.Controls.DropDownButton)(target)); return; case 10: this.dropDownEstimatedIronPipeSizeStandardDiameterRatioNumber = ((MahApps.Metro.Controls.DropDownButton)(target)); return; case 11: this.checkBoxAirVacuumReleaseAssemblies = ((System.Windows.Controls.CheckBox)(target)); return; case 12: this.checkBoxSoftStartVfd = ((System.Windows.Controls.CheckBox)(target)); return; } this._contentLoaded = true; }
public FlyoutInfo(Flyout flyout, object content) { Argument.IsNotNull(() => flyout); Argument.IsNotNull(() => content); Flyout = flyout; Content = content; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SettingsFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target)); #line 50 "..\..\MainWindow.xaml" this.enabledSwitch.IsCheckedChanged += new System.EventHandler(this.OnIsCheckedChanged); #line default #line hidden return; case 3: this.HardwareID = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.ScripList = ((System.Windows.Controls.ListBox)(target)); #line 100 "..\..\MainWindow.xaml" this.ScripList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnSelectionChanged); #line default #line hidden return; case 5: this.SearchBox = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.ReflectTree = ((System.Windows.Controls.TreeView)(target)); return; case 7: this.MessageEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target)); return; case 8: this.InfoEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target)); return; case 9: this.ScripEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target)); return; case 10: this.ToolBar1 = ((System.Windows.Controls.ToolBar)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TaskSetup = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
public AboutActions() { InitializeComponent(); Loaded += (sender, args) => { NotifyOnInternalButtonClick(); parent = this.GetParentObject() as Flyout; }; }
public void HideFlyout(Flyout flyout) { var actualType = flyout.GetType(); var openFlyoutDetail = openFlyouts.FirstOrDefault(x => x.FlyoutType == actualType); if (openFlyoutDetail != null) openFlyoutDetail.IsHidden = true; flyout.IsOpen = false; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AboutButton = ((System.Windows.Controls.Button)(target)); #line 9 "..\..\MainWindowView.xaml" this.AboutButton.Click += new System.Windows.RoutedEventHandler(this.AboutButton_Click); #line default #line hidden return; case 2: #line 24 "..\..\MainWindowView.xaml" ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.ValidationField_Changed); #line default #line hidden return; case 3: #line 26 "..\..\MainWindowView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ValidateButton_Click); #line default #line hidden return; case 4: #line 32 "..\..\MainWindowView.xaml" ((System.Windows.Controls.TextBox)(target)).TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.CalculateField_Changed); #line default #line hidden return; case 5: #line 33 "..\..\MainWindowView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CalculateButton_Click); #line default #line hidden return; case 6: this.AboutFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
public void AddFlyout(string name, Type viewType, Position position, UnloadBehavior unloadBehavior = UnloadBehavior.SaveAndCloseViewModel) { Argument.IsNotNullOrWhitespace(() => name); Argument.IsNotNull(() => viewType); Log.Info("Adding flyout '{0}' with view type '{1}'", name, viewType.FullName); var content = (UIElement) _typeFactory.CreateInstance(viewType); var flyout = new Flyout(); flyout.Theme = FlyoutTheme.Adapt; flyout.Position = position; var flyoutInfo = new FlyoutInfo(flyout, content); flyout.SetBinding(Flyout.HeaderProperty, new Binding("ViewModel.Title") {Source = content}); ((ICompositeCommand) _commandManager.GetCommand("Close")).RegisterAction(() => { flyout.IsOpen = false; }); flyout.IsOpenChanged += async (sender, e) => { if (!flyout.IsOpen) { var vmContainer = flyout.Content as IViewModelContainer; if (vmContainer != null) { var vm = vmContainer.ViewModel; if (vm != null) { switch (unloadBehavior) { case UnloadBehavior.CloseViewModel: await vm.CloseViewModelAsync(null); break; case UnloadBehavior.SaveAndCloseViewModel: await vm.SaveAndCloseViewModelAsync(); break; case UnloadBehavior.CancelAndCloseViewModel: await vm.CancelAndCloseViewModelAsync(); break; default: throw new ArgumentOutOfRangeException("unloadBehavior"); } } } flyout.Content = null; flyout.DataContext = null; } }; _flyouts[name] = flyoutInfo; }
private void AttachHandlers(Flyout flyout) { var isOpenNotifier = new PropertyChangeNotifier(flyout, Flyout.IsOpenProperty); isOpenNotifier.ValueChanged += FlyoutStatusChanged; flyout.IsOpenPropertyChangeNotifier = isOpenNotifier; var themeNotifier = new PropertyChangeNotifier(flyout, Flyout.ThemeProperty); themeNotifier.ValueChanged += FlyoutStatusChanged; flyout.ThemePropertyChangeNotifier = themeNotifier; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.flyout = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 15 "..\..\..\Panels\AdminPanelWindow.xaml" ((CMSUI.Panels.AdminPanelWindow)(target)).Closed += new System.EventHandler(this.MetroWindow_Closed); #line default #line hidden return; case 2: this.helpBtn = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\..\Panels\AdminPanelWindow.xaml" this.helpBtn.Click += new System.Windows.RoutedEventHandler(this.HelpBtn_Click); #line default #line hidden return; case 3: this.flyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 4: this.contentExpander = ((System.Windows.Controls.Expander)(target)); return; case 5: this.tutorialTree = ((System.Windows.Controls.TreeView)(target)); #line 55 "..\..\..\Panels\AdminPanelWindow.xaml" this.tutorialTree.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TutorialTree_SelectedItemChanged); #line default #line hidden return; case 6: this.helpSP = ((System.Windows.Controls.StackPanel)(target)); return; case 7: this.tabs = ((System.Windows.Controls.TabControl)(target)); return; case 8: this.myCoursesControl = ((CMSUI.UserControls.MyCoursesDashboardUserControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.yourMahAppFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.Array = ((System.Windows.Controls.ListView)(target)); return; case 3: this.NewItemBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: #line 30 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddItemClick); #line default #line hidden return; case 5: #line 31 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteItemClick); #line default #line hidden return; case 6: #line 32 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SortArrayClick); #line default #line hidden return; case 7: this.FlipView = ((MahApps.Metro.Controls.FlipView)(target)); #line 48 "..\..\MainWindow.xaml" this.FlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipViewSelectionChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.BorderFirst = ((System.Windows.Controls.Border)(target)); return; case 2: this.MissionsList = ((System.Windows.Controls.Grid)(target)); return; case 3: this.SearchTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.MainTreeView = ((System.Windows.Controls.TreeView)(target)); #line 38 "..\..\..\Pages\AllTasks.xaml" this.MainTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TreeView_SelectedItemChanged); #line default #line hidden return; case 5: this.TasksEmptyTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.Add_Mission = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\..\Pages\AllTasks.xaml" this.Add_Mission.Click += new System.Windows.RoutedEventHandler(this.Add_Mission_Click); #line default #line hidden return; case 7: this.ChartCondition = ((De.TorstenMandelkow.MetroChart.ChartSeries)(target)); return; case 8: this.AddNewMission = ((MahApps.Metro.Controls.Flyout)(target)); return; case 9: this.EditingSelectedMission = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
public void UnregisterFlyout(Flyout flyout) { var mainWindow = Application.Current.MainWindow as MetroWindow; if (mainWindow != null) { flyout.Loaded -= IsOpenBeforeLoadedWorkaround; mainWindow.Flyouts.Remove(flyout); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TxtRut = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.BtnEliminarCliente = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\EliminarCliente.xaml" this.BtnEliminarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnEliminarCliente_Click); #line default #line hidden return; case 3: this.BtnBuscarCliente = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\EliminarCliente.xaml" this.BtnBuscarCliente.Click += new System.Windows.RoutedEventHandler(this.BtnBuscarCliente_Click); #line default #line hidden return; case 4: this.FlyBuscarCliente = ((MahApps.Metro.Controls.Flyout)(target)); return; case 5: this.TxtRutBuscar = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.ComboSexoBuscar = ((System.Windows.Controls.ComboBox)(target)); return; case 7: this.ComboEstCivilBuscar = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.BtnFiltrar = ((System.Windows.Controls.Button)(target)); return; case 9: this.DtgClientes = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.signUpWindow = ((SoBasicEnglish.Views.SignUpWindow)(target)); return; case 2: this.btnAVT = ((System.Windows.Controls.Button)(target)); return; case 3: this.stpSignUp = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this.txtUserLoginName = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.txtUserLoginpPassword = ((System.Windows.Controls.PasswordBox)(target)); return; case 6: this.tbRetypePassWord = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.txtUserLoginpPasswordRetype = ((System.Windows.Controls.PasswordBox)(target)); return; case 8: this.txtEmail = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.txtUserFullName = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.txtBasicInfo = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.flChampions = ((MahApps.Metro.Controls.Flyout)(target)); return; case 12: this.child01 = ((MahApps.Metro.SimpleChildWindow.ChildWindow)(target)); return; } this._contentLoaded = true; }
internal void HandleFlyoutStatusChange(Flyout flyout, MetroWindow parentWindow) { if (flyout == null || parentWindow == null) { return; } this.ReorderZIndices(flyout); var visibleFlyouts = this.GetFlyouts(this.Items).Where(i => i.IsOpen).OrderBy(Panel.GetZIndex); parentWindow.HandleFlyoutStatusChange(flyout, visibleFlyouts); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 11 "..\..\MainWindow.xaml" ((Metro2.MainWindow)(target)).Initialized += new System.EventHandler(this.MetroWindow_Initialized); #line default #line hidden #line 11 "..\..\MainWindow.xaml" ((Metro2.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.MetroWindow_KeyDown); #line default #line hidden return; case 2: this.MainGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.TabList = ((System.Windows.Controls.TabControl)(target)); return; case 4: this.MainTab = ((System.Windows.Controls.TabItem)(target)); return; case 5: this.ButtonsTab = ((System.Windows.Controls.TabItem)(target)); return; case 6: this.SettingsTab = ((System.Windows.Controls.TabItem)(target)); return; case 7: this.DataGrid1 = ((System.Windows.Controls.DataGrid)(target)); return; case 8: this.ProgBarFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 9: this.ProgBar = ((MahApps.Metro.Controls.MetroProgressBar)(target)); return; } this._contentLoaded = true; }
public void CloseFlyout(Flyout flyout) { var actualType = flyout.GetType(); var openFlyoutDetail = openFlyouts.FirstOrDefault(x => x.FlyoutType == actualType); if (openFlyoutDetail != null) { openFlyoutDetail.IsHidden = false; } flyout.IsOpen = false; FlyoutClosedHandler(flyout, null); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.lvTareas = ((System.Windows.Controls.ListView)(target)); return; case 2: this.FlyOutDetalle = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.flSidebar = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.queueWindow = ((MahApps.Metro.SimpleChildWindow.ChildWindow)(target)); return; } this._contentLoaded = true; }
void MainWindow_Loaded(object sender, RoutedEventArgs e) { _dataContext.ShowDefaultCharts(); Flyouts = new FlyoutsControl(); Flyout control = new Flyout(); _lineEditorView = new ucLineEditorView(Token); _lineEditorView.DataContext = new LineEditorViewModel(Token); GlobalDataModel.LineEditorViewModel = _lineEditorView.DataContext as LineEditorViewModel; control.Content = _lineEditorView; control.Position = Position.Right; control.Width = 195; control.IsOpenChanged += control_IsOpenChanged; Flyouts.Items.Add(control); }
public async Task AdaptsWindowCommandsToDarkFlyout() { await TestHost.SwitchToAppThread(); var window = await WindowHelpers.CreateInvisibleWindowAsync<FlyoutWindow>(); var flyout = new Flyout { Theme = FlyoutTheme.Dark }; window.Flyouts.Items.Add(flyout); flyout.IsOpen = true; Color expectedColor = ((SolidColorBrush)ThemeManager.GetAppTheme("BaseDark").Resources["BlackBrush"]).Color; window.AssertWindowCommandsColor(expectedColor); }
private void Control_Loaded(object sender, RoutedEventArgs e) { Log.WriteLine(e.ToString()); _parent = Parent as MahApps.Metro.Controls.Flyout; _mainWindow = Window.GetWindow(_parent.Parent) as AmiKoWindows.MainWindow; // maybe we should make shared instance... FieldInfo info = _mainWindow.GetType().GetField("_patientDb", BindingFlags.NonPublic | BindingFlags.Instance); _patientDb = (PatientDb)info.GetValue(_mainWindow); this.ContactList.DataContext = _patientDb; this.CurrentEntry = new Contact(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.image = ((System.Windows.Controls.Image)(target)); return; case 2: this.button1 = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\Admin.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 3: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 4: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 5: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 6: this.label4 = ((System.Windows.Controls.Label)(target)); return; case 7: this.label5 = ((System.Windows.Controls.Label)(target)); return; case 8: this.FlySupport = ((MahApps.Metro.Controls.Flyout)(target)); return; case 9: this.label = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
private void Control_IsVisibleChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e) { _parent = this.Parent as MahApps.Metro.Controls.Flyout; _parent.AreAnimationsEnabled = false; var isVisible = e.NewValue as bool?; if (isVisible != null && isVisible.Value) { _mainWindow = Window.GetWindow(_parent.Parent) as AmiKoWindows.MainWindow; } else { _mainWindow = null; } }
public void SetSettingsFlyoutControl() { var window = Hearthstone_Deck_Tracker.API.Core.MainWindow; var flyouts = window.Flyouts.Items; Flyout flyout = new Flyout(); flyout.Name = "PluginSettingsFlyoutControl"; flyout.Header = "Video Game Recorder"; flyout.Content = new SettingsControl(); flyout.Position = Position.Left; Panel.SetZIndex(flyout, 100); flyouts.Add(flyout); _settingsFlyout = flyout; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.passwordBox = ((System.Windows.Controls.PasswordBox)(target)); return; case 3: this.checkBox = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.button = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\MainWindow.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 5: this.logo = ((System.Windows.Controls.Image)(target)); return; case 6: this.emergency = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\MainWindow.xaml" this.emergency.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 7: this.Contacto = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
public Task<Flyout> OpenFlyout(Flyout flyout) { var actualType = flyout.GetType(); var openFlyoutDetail = openFlyouts.FirstOrDefault(x => x.FlyoutType == actualType); if (openFlyoutDetail == null) { flyoutsControl.Items.Add(flyout); flyout.ClosingFinished += FlyoutClosedHandler; openFlyoutDetail = new OpenFlyoutDetails(flyout); openFlyouts.Add(openFlyoutDetail); } openFlyoutDetail.IsHidden = false; openFlyoutDetail.Flyout.IsOpen = true; return openFlyoutDetail.TaskCompletionSource.Task; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GeneralFlyoutMenu = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.FlyoutContainer = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.LessonFlyoutMenu = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.TitleBarHelpButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\..\UI\Settings.xaml" this.TitleBarHelpButton.Click += new System.Windows.RoutedEventHandler(this.TitleBarHelpButton_Click); #line default #line hidden return; case 2: this.UserLoginHeader = ((MahApps.Metro.Controls.Tile)(target)); return; case 3: this.RadioLocalePT = ((System.Windows.Controls.RadioButton)(target)); #line 90 "..\..\..\UI\Settings.xaml" this.RadioLocalePT.Click += new System.Windows.RoutedEventHandler(this.RadioLocalePT_Click); #line default #line hidden return; case 4: this.RadioLocaleEN = ((System.Windows.Controls.RadioButton)(target)); #line 97 "..\..\..\UI\Settings.xaml" this.RadioLocaleEN.Click += new System.Windows.RoutedEventHandler(this.RadioLocaleEN_Click); #line default #line hidden return; case 5: this.HelpFlyout = ((MahApps.Metro.Controls.Flyout)(target)); return; } this._contentLoaded = true; }
public static void UpdateWindowCommandsForFlyout(this MetroWindow window, Flyout flyout) { Brush brush = null; if (flyout.Theme == FlyoutTheme.Accent) { brush = (Brush)flyout.FindResource("IdealForegroundColorBrush"); } else if (flyout.ActualTheme == Theme.Light) { brush = (Brush)ThemeManager.LightResource["BlackBrush"]; } else if (flyout.ActualTheme == Theme.Dark) { brush = (Brush)ThemeManager.DarkResource["BlackBrush"]; } window.ChangeAllWindowCommandsBrush(brush, flyout.Position); }
private static void SetSettingsFlyout() { var window = Hearthstone_Deck_Tracker.Helper.MainWindow; var flyouts = window.Flyouts.Items; var settings = new Flyout(); settings.Name = "PluginSettingsFlyout"; settings.Position = Position.Left; Panel.SetZIndex(settings, 100); settings.Header = "End Game Settings"; settings.Content = new Controls.PluginSettings(); //newflyout.Width = 250; //settings.Theme = FlyoutTheme.Accent; flyouts.Add(settings); _settings = settings; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.flyPackages = ((MahApps.Metro.Controls.Flyout)(target)); return; case 2: this.lstPackages = ((System.Windows.Controls.ListBox)(target)); #line 13 "..\..\MainWindow.xaml" this.lstPackages.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstPackages_SelectionChanged); #line default #line hidden return; case 3: this.btnBrowse = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\MainWindow.xaml" this.btnBrowse.Click += new System.Windows.RoutedEventHandler(this.btnBrowse_Click); #line default #line hidden return; case 4: this.tbxPath = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.lstLog = ((System.Windows.Controls.ListBox)(target)); return; case 6: this.btnStart = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\MainWindow.xaml" this.btnStart.Click += new System.Windows.RoutedEventHandler(this.btnStart_Click); #line default #line hidden return; case 7: this.lblStatus = ((System.Windows.Controls.Label)(target)); return; case 8: this.barProgress = ((System.Windows.Controls.ProgressBar)(target)); return; case 9: this.btnChoose = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\MainWindow.xaml" this.btnChoose.Click += new System.Windows.RoutedEventHandler(this.btnChoose_Click); #line default #line hidden return; case 10: this.tbxPackageID = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.title = ((CloudManagerUI.MainWindow)(target)); return; case 2: this.btnAbout = ((System.Windows.Controls.Button)(target)); #line 81 "..\..\MainWindow.xaml" this.btnAbout.Click += new System.Windows.RoutedEventHandler(this.btnAbout_Click); #line default #line hidden return; case 3: this.Flyout = ((MahApps.Metro.Controls.Flyout)(target)); return; case 4: this.GoogleDriveHeading = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.DropboxHeading = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.OneDriveHeading = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.Status = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; } this._contentLoaded = true; }
private void CalculateShalePointFilter() { if (this.Flyouts.Items.Count == 1) { Flyout control = new Flyout { Position = Position.Right, Width = 405 }; control.IsOpenChanged += shalePoint_IsOpenChanged; _shalePointFilterView = new ucShalePointFilterView(Token); _shalePointFilterView.DataContext = new ShalePointFilterViewModel(Token); control.Content = _shalePointFilterView; Flyouts.Items.Add(control); } var dataContext = _shalePointFilterView.DataContext as ShalePointFilterViewModel; dataContext.Refresh(); var flyoutControl = (Flyouts.Items[1] as Flyout); flyoutControl.IsOpen = true; }
private void AttachHandlers(Flyout item) { var isOpenChanged = DependencyPropertyDescriptor.FromProperty(Flyout.IsOpenProperty, typeof(Flyout)); isOpenChanged.AddValueChanged(item, this.FlyoutIsOpenChanged); }
private void AsyncFlyoutHandler(Flyout fly) { Dispatcher.Invoke(() => { fly.IsOpen = false; }); }
private async void FlyoutHandler(Flyout sender) { sender.IsOpen = true; foreach (Flyout fly in allFlyouts.FindChildren<Flyout>()) if (fly.Header != sender.Header) { await Task.Run(() => AsyncFlyoutHandler(fly)); } sender.IsOpen = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target)); #line 12 "..\..\..\FORMS\PrincipalScreen.xaml" this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded); #line default #line hidden return; case 2: this.btnPerfil = ((System.Windows.Controls.Button)(target)); #line 103 "..\..\..\FORMS\PrincipalScreen.xaml" this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click); #line default #line hidden return; case 3: this.grdPrincipal = ((System.Windows.Controls.Grid)(target)); return; case 4: this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target)); return; case 5: #line 159 "..\..\..\FORMS\PrincipalScreen.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2); #line default #line hidden return; case 6: #line 165 "..\..\..\FORMS\PrincipalScreen.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3); #line default #line hidden return; case 7: #line 171 "..\..\..\FORMS\PrincipalScreen.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4); #line default #line hidden return; case 8: #line 177 "..\..\..\FORMS\PrincipalScreen.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1); #line default #line hidden return; case 9: #line 183 "..\..\..\FORMS\PrincipalScreen.xaml" ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click); #line default #line hidden return; case 10: #line 201 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click); #line default #line hidden return; case 11: #line 202 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click); #line default #line hidden return; case 12: #line 203 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click); #line default #line hidden return; case 13: #line 205 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 14: #line 206 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click); #line default #line hidden return; case 15: #line 207 "..\..\..\FORMS\PrincipalScreen.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click); #line default #line hidden return; case 16: this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target)); #line 218 "..\..\..\FORMS\PrincipalScreen.xaml" this.flyoutAgente.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.flyoutAgente_PreviewMouseDown); #line default #line hidden return; case 17: this.btnFzrLogoff = ((System.Windows.Controls.Button)(target)); #line 223 "..\..\..\FORMS\PrincipalScreen.xaml" this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click); #line default #line hidden return; case 18: this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target)); #line 224 "..\..\..\FORMS\PrincipalScreen.xaml" this.tgsTema.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.tgsTema_Checked); #line default #line hidden #line 224 "..\..\..\FORMS\PrincipalScreen.xaml" this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.gdBackgroundContainer = ((System.Windows.Controls.Grid)(target)); return; case 2: this.metro = ((MahApps.Metro.Controls.MetroContentControl)(target)); return; case 3: this.frmContent = ((System.Windows.Controls.Frame)(target)); return; case 4: this.foFlyout = ((MahApps.Metro.Controls.Flyout)(target)); #line 27 "..\..\..\MainWindow.xaml" this.foFlyout.IsOpenChanged += new System.Windows.RoutedEventHandler(this.foFlyout_IsOpenChanged); #line default #line hidden return; case 5: this.flyout = ((System.Windows.Controls.Grid)(target)); return; case 6: #line 29 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Start_Page_Button_Click); #line default #line hidden return; case 7: #line 37 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting_Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void ReorderZIndices(Flyout lastChanged) { var openFlyouts = this.GetFlyouts(this.Items).Where(i => i.IsOpen && i != lastChanged).OrderBy(Panel.GetZIndex); var index = 0; foreach (var openFlyout in openFlyouts) { Panel.SetZIndex(openFlyout, index); index++; } if (lastChanged.IsOpen) { Panel.SetZIndex(lastChanged, index); } }
private static void SetSettingsFlyout() { var window = Hearthstone_Deck_Tracker.Helper.MainWindow; var flyouts = window.Flyouts.Items; // TODO: how to set Panel.ZIndex Flyout settings = new Flyout(); settings.Name = "PluginSettingsFlyout"; settings.Position = Position.Left; settings.Header = "Stats Converter Settings"; settings.Content = new Controls.PluginSettings(); flyouts.Add(settings); _settings = settings; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainForm = ((WinDroid_Universal_Android_Toolkit.MainWindow)(target)); #line 5 "..\..\MainWindow.xaml" this.MainForm.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.gainSuperCIDButton = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\MainWindow.xaml" this.gainSuperCIDButton.Click += new System.Windows.RoutedEventHandler(this.gainSuperCIDButton_Click); #line default #line hidden return; case 3: this.getTokenIDButton = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\MainWindow.xaml" this.getTokenIDButton.Click += new System.Windows.RoutedEventHandler(this.getTokenIDButton_Click); #line default #line hidden return; case 4: this.unlockBootloaderButton = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\MainWindow.xaml" this.unlockBootloaderButton.Click += new System.Windows.RoutedEventHandler(this.unlockBootloaderButton_Click); #line default #line hidden return; case 5: this.recovery1Button = ((System.Windows.Controls.Button)(target)); #line 49 "..\..\MainWindow.xaml" this.recovery1Button.Click += new System.Windows.RoutedEventHandler(this.firstRecoveryButton_Click); #line default #line hidden return; case 6: this.recovery2Button = ((System.Windows.Controls.Button)(target)); #line 50 "..\..\MainWindow.xaml" this.recovery2Button.Click += new System.Windows.RoutedEventHandler(this.secondRecoveryButton_Click); #line default #line hidden return; case 7: this.recovery3Button = ((System.Windows.Controls.Button)(target)); #line 51 "..\..\MainWindow.xaml" this.recovery3Button.Click += new System.Windows.RoutedEventHandler(this.thirdRecoveryButton_Click); #line default #line hidden return; case 8: this.gainRootButton = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\MainWindow.xaml" this.gainRootButton.Click += new System.Windows.RoutedEventHandler(this.gainRootButton_Click); #line default #line hidden return; case 9: #line 60 "..\..\MainWindow.xaml" ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate); #line default #line hidden return; case 10: this.rebootButton = ((System.Windows.Controls.Button)(target)); #line 68 "..\..\MainWindow.xaml" this.rebootButton.Click += new System.Windows.RoutedEventHandler(this.rebootButton_Click); #line default #line hidden return; case 11: this.rebootRecoveryButton = ((System.Windows.Controls.Button)(target)); #line 69 "..\..\MainWindow.xaml" this.rebootRecoveryButton.Click += new System.Windows.RoutedEventHandler(this.rebootRecoveryButton_Click); #line default #line hidden return; case 12: this.rebootBootloaderButton = ((System.Windows.Controls.Button)(target)); #line 70 "..\..\MainWindow.xaml" this.rebootBootloaderButton.Click += new System.Windows.RoutedEventHandler(this.rebootBootloaderButton_Click); #line default #line hidden return; case 13: this.flashKernelButton = ((System.Windows.Controls.Button)(target)); #line 75 "..\..\MainWindow.xaml" this.flashKernelButton.Click += new System.Windows.RoutedEventHandler(this.flashKernelButton_Click); #line default #line hidden return; case 14: this.flashRecoveryButton = ((System.Windows.Controls.Button)(target)); #line 76 "..\..\MainWindow.xaml" this.flashRecoveryButton.Click += new System.Windows.RoutedEventHandler(this.flashRecoveryButton_Click); #line default #line hidden return; case 15: this.sideloadROMButton = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\MainWindow.xaml" this.sideloadROMButton.Click += new System.Windows.RoutedEventHandler(this.sideloadROMButton_Click); #line default #line hidden return; case 16: this.pushFileButton = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\MainWindow.xaml" this.pushFileButton.Click += new System.Windows.RoutedEventHandler(this.pushFileButton_Click); #line default #line hidden return; case 17: this.installAppButton = ((System.Windows.Controls.Button)(target)); #line 83 "..\..\MainWindow.xaml" this.installAppButton.Click += new System.Windows.RoutedEventHandler(this.installAppButton_Click); #line default #line hidden return; case 18: this.relockBootloaderButton = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\MainWindow.xaml" this.relockBootloaderButton.Click += new System.Windows.RoutedEventHandler(this.relockBootloaderButton_Click); #line default #line hidden return; case 19: this.helpButton = ((System.Windows.Controls.Button)(target)); #line 93 "..\..\MainWindow.xaml" this.helpButton.Click += new System.Windows.RoutedEventHandler(this.helpButton_Click); #line default #line hidden return; case 20: this.devicesButton = ((System.Windows.Controls.Button)(target)); #line 94 "..\..\MainWindow.xaml" this.devicesButton.Click += new System.Windows.RoutedEventHandler(this.devicesButton_Click); #line default #line hidden return; case 21: this.requestsButton = ((System.Windows.Controls.Button)(target)); #line 95 "..\..\MainWindow.xaml" this.requestsButton.Click += new System.Windows.RoutedEventHandler(this.requestsButton_Click); #line default #line hidden return; case 22: this.toolkitButton = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\MainWindow.xaml" this.toolkitButton.Click += new System.Windows.RoutedEventHandler(this.toolkitButton_Click); #line default #line hidden return; case 23: this.recoveriesButton = ((System.Windows.Controls.Button)(target)); #line 101 "..\..\MainWindow.xaml" this.recoveriesButton.Click += new System.Windows.RoutedEventHandler(this.recoveriesButton_Click); #line default #line hidden return; case 24: this.ruuButton = ((System.Windows.Controls.Button)(target)); #line 102 "..\..\MainWindow.xaml" this.ruuButton.Click += new System.Windows.RoutedEventHandler(this.ruuButton_Click); #line default #line hidden return; case 25: this.xdaButton = ((System.Windows.Controls.Button)(target)); #line 107 "..\..\MainWindow.xaml" this.xdaButton.Click += new System.Windows.RoutedEventHandler(this.xdaButton_Click); #line default #line hidden return; case 26: this.emailButton = ((System.Windows.Controls.Button)(target)); #line 108 "..\..\MainWindow.xaml" this.emailButton.Click += new System.Windows.RoutedEventHandler(this.emailButton_Click); #line default #line hidden return; case 27: this.twitterButton = ((System.Windows.Controls.Button)(target)); #line 109 "..\..\MainWindow.xaml" this.twitterButton.Click += new System.Windows.RoutedEventHandler(this.twitterButton_Click); #line default #line hidden return; case 28: this.statusEllipse = ((System.Windows.Shapes.Ellipse)(target)); return; case 29: this.statusLabel = ((System.Windows.Controls.Label)(target)); return; case 30: this.refreshButton = ((System.Windows.Controls.Button)(target)); #line 117 "..\..\MainWindow.xaml" this.refreshButton.Click += new System.Windows.RoutedEventHandler(this.refreshButton_Click); #line default #line hidden return; case 31: this.workingSpinner = ((MahApps.Metro.Controls.ProgressRing)(target)); return; case 32: this.logButton = ((System.Windows.Controls.Button)(target)); return; case 33: this.settingsButton = ((System.Windows.Controls.Button)(target)); return; case 34: #line 149 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.TogglePhoneCommand_Executed); #line default #line hidden return; case 35: #line 150 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ToggleLogCommand_Executed); #line default #line hidden return; case 36: #line 151 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveLogCommand_Executed); #line default #line hidden return; case 37: this.Settings2 = ((MahApps.Metro.Controls.Flyout)(target)); return; case 38: this.phoneListBox = ((System.Windows.Controls.ListBox)(target)); #line 158 "..\..\MainWindow.xaml" this.phoneListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.phoneListBox_SelectionChanged); #line default #line hidden return; case 39: this.PhoneTextBox = ((System.Windows.Controls.TextBlock)(target)); return; case 40: this.Log2 = ((MahApps.Metro.Controls.Flyout)(target)); return; case 41: this.logBox = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\MainWindow.xaml" ((Trackball_Project.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.TrackballPage = ((MahApps.Metro.Controls.Flyout)(target)); return; case 3: this.Custom_Icon = ((System.Windows.Controls.Image)(target)); return; case 4: this.Custom_Page_Title = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.ModeIconImage = ((System.Windows.Controls.Image)(target)); return; case 6: this.ModeIcon = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\MainWindow.xaml" this.ModeIcon.Click += new System.Windows.RoutedEventHandler(this.ModeImageChange); #line default #line hidden return; case 7: this.ModeComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 21 "..\..\MainWindow.xaml" this.ModeComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SelectedIndexChanged); #line default #line hidden return; case 8: this.ModeNameTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.ModeAddButton = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\MainWindow.xaml" this.ModeAddButton.Click += new System.Windows.RoutedEventHandler(this.ModeButtonClick); #line default #line hidden return; case 10: this.ModeRemoveButton = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\MainWindow.xaml" this.ModeRemoveButton.Click += new System.Windows.RoutedEventHandler(this.ModeButtonClick); #line default #line hidden return; case 11: this.UpComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 58 "..\..\MainWindow.xaml" this.UpComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 12: this.DownComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 62 "..\..\MainWindow.xaml" this.DownComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 13: this.LeftComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 66 "..\..\MainWindow.xaml" this.LeftComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 14: this.RightComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 70 "..\..\MainWindow.xaml" this.RightComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 15: this.DragUpComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 74 "..\..\MainWindow.xaml" this.DragUpComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 16: this.DragDownComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 78 "..\..\MainWindow.xaml" this.DragDownComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 17: this.Button1ComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 82 "..\..\MainWindow.xaml" this.Button1ComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 18: this.Button2ComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 86 "..\..\MainWindow.xaml" this.Button2ComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ChangedIndex); #line default #line hidden return; case 19: this.SettingPage = ((MahApps.Metro.Controls.Flyout)(target)); return; case 20: this.Setting_Icon = ((System.Windows.Controls.Image)(target)); return; case 21: this.Setting_Page_Title = ((System.Windows.Controls.TextBlock)(target)); return; case 22: #line 98 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Init_Button_Click); #line default #line hidden return; case 23: #line 113 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Driver_Button_Click); #line default #line hidden return; case 24: this.VirtualDesktopButton = ((System.Windows.Controls.Button)(target)); #line 129 "..\..\MainWindow.xaml" this.VirtualDesktopButton.Click += new System.Windows.RoutedEventHandler(this.Virtual_Desktop_Button_Click); #line default #line hidden return; case 25: this.Auto_RID_Event = ((System.Windows.Controls.Button)(target)); #line 145 "..\..\MainWindow.xaml" this.Auto_RID_Event.Click += new System.Windows.RoutedEventHandler(this.Device_Driver_Button_Click); #line default #line hidden return; case 26: this.ETC_Setting_Button = ((System.Windows.Controls.Image)(target)); return; case 27: this.Crimson = ((System.Windows.Controls.Button)(target)); #line 167 "..\..\MainWindow.xaml" this.Crimson.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 28: this.Magenta = ((System.Windows.Controls.Button)(target)); #line 170 "..\..\MainWindow.xaml" this.Magenta.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 29: this.Blue = ((System.Windows.Controls.Button)(target)); #line 173 "..\..\MainWindow.xaml" this.Blue.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 30: this.Purple = ((System.Windows.Controls.Button)(target)); #line 176 "..\..\MainWindow.xaml" this.Purple.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 31: this.Orange = ((System.Windows.Controls.Button)(target)); #line 179 "..\..\MainWindow.xaml" this.Orange.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 32: this.Lime = ((System.Windows.Controls.Button)(target)); #line 182 "..\..\MainWindow.xaml" this.Lime.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 33: this.Emerald = ((System.Windows.Controls.Button)(target)); #line 185 "..\..\MainWindow.xaml" this.Emerald.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 34: this.Teal = ((System.Windows.Controls.Button)(target)); #line 188 "..\..\MainWindow.xaml" this.Teal.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 35: this.Red = ((System.Windows.Controls.Button)(target)); #line 192 "..\..\MainWindow.xaml" this.Red.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 36: this.Pink = ((System.Windows.Controls.Button)(target)); #line 195 "..\..\MainWindow.xaml" this.Pink.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 37: this.Green = ((System.Windows.Controls.Button)(target)); #line 198 "..\..\MainWindow.xaml" this.Green.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 38: this.Amber = ((System.Windows.Controls.Button)(target)); #line 201 "..\..\MainWindow.xaml" this.Amber.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 39: this.Yellow = ((System.Windows.Controls.Button)(target)); #line 204 "..\..\MainWindow.xaml" this.Yellow.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 40: this.Brown = ((System.Windows.Controls.Button)(target)); #line 207 "..\..\MainWindow.xaml" this.Brown.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 41: this.Olive = ((System.Windows.Controls.Button)(target)); #line 210 "..\..\MainWindow.xaml" this.Olive.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 42: this.Steel = ((System.Windows.Controls.Button)(target)); #line 213 "..\..\MainWindow.xaml" this.Steel.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 43: this.Cyan = ((System.Windows.Controls.Button)(target)); #line 217 "..\..\MainWindow.xaml" this.Cyan.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 44: this.Cobalt = ((System.Windows.Controls.Button)(target)); #line 220 "..\..\MainWindow.xaml" this.Cobalt.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 45: this.Indigo = ((System.Windows.Controls.Button)(target)); #line 223 "..\..\MainWindow.xaml" this.Indigo.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 46: this.Violet = ((System.Windows.Controls.Button)(target)); #line 226 "..\..\MainWindow.xaml" this.Violet.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 47: this.Mauve = ((System.Windows.Controls.Button)(target)); #line 229 "..\..\MainWindow.xaml" this.Mauve.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 48: this.Taupe = ((System.Windows.Controls.Button)(target)); #line 232 "..\..\MainWindow.xaml" this.Taupe.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 49: this.Sienna = ((System.Windows.Controls.Button)(target)); #line 235 "..\..\MainWindow.xaml" this.Sienna.Click += new System.Windows.RoutedEventHandler(this.ColorChange); #line default #line hidden return; case 50: this.RootLayout = ((System.Windows.Controls.Grid)(target)); return; case 51: this.Trackball_Background_Image = ((System.Windows.Controls.Image)(target)); return; case 52: #line 246 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Trackball_Button_Click); #line default #line hidden #line 246 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Trackball_Button_Pressed); #line default #line hidden #line 246 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Trackball_Button_Over); #line default #line hidden #line 246 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Trackball_Button_Base); #line default #line hidden return; case 53: #line 286 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting_Button_Click); #line default #line hidden return; } this._contentLoaded = true; }