void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\9_Special\PUSlideShow.xaml" ((Panuon.UI.PUSlideShow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 2: this.StkMain = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.BtnLeft = ((Panuon.UI.PUButton)(target)); return; case 4: this.BtnRight = ((Panuon.UI.PUButton)(target)); return; case 5: this.Indicator = ((Panuon.UI.PUIndicator)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\9_Special\PUSlideShow.xaml" ((Panuon.UI.PUSlideShow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 2: this.PART_STKMAIN = ((System.Windows.Controls.VirtualizingStackPanel)(target)); return; case 3: this.PART_BTNLEFT = ((Panuon.UI.PUButton)(target)); return; case 4: this.PART_BTNRIGHT = ((Panuon.UI.PUButton)(target)); return; case 5: this.PART_INDICATOR = ((Panuon.UI.PUIndicator)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtContent = ((System.Windows.Controls.TextBlock)(target)); return; case 2: this.groupTip = ((System.Windows.Controls.Grid)(target)); return; case 3: this.groupConfirm = ((System.Windows.Controls.Grid)(target)); return; case 4: this.BtnYes = ((Panuon.UI.PUButton)(target)); return; case 5: this.BtnNo = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); Loaded += delegate { if (AllowAutoCoverMask && _parentWindow != null) { _parentWindow.IsCoverMaskShow = true; } if (AnimateIn) { OnBeginLoadStoryboard(); } else { OnSkipLoadStoryboard(); } }; var grdNavbar = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(this, 0), 0), 0), 0) as Grid; _stkNav = VisualTreeHelper.GetChild(grdNavbar, 1) as StackPanel; grdNavbar.MouseLeftButtonDown += delegate { this.DragMove(); }; _btnClose = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(grdNavbar, 1), 2) as PUButton; }
/// <summary> /// 向控制栏的左侧添加一个新的按钮。 /// <para>警告:当Window的前景色发生改变时,该按钮的前景色不会随之变化。</para> /// </summary> /// <param name="content">按钮的内容</param> /// <param name="clickHandler">点击按钮时应该触发的事件。</param> public void AppendNavButton(object content, RoutedEventHandler clickHandler, bool isIconFont = true, object tooltip = null) { var btn = new PUButton() { Content = content, ButtonStyle = ButtonStyles.Hollow, Foreground = Foreground, BorderBrush = new SolidColorBrush(Colors.Transparent), CoverBrush = new SolidColorBrush(((Color)ColorConverter.ConvertFromString("#99999999"))), HorizontalAlignment = HorizontalAlignment.Right, }; if (isIconFont) { btn.FontFamily = FindResource("IconFont") as FontFamily; } if (tooltip != null) { btn.ToolTip = tooltip; } var visibility = new Binding() { Path = new PropertyPath("NavButtonVisibility"), UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Mode = BindingMode.OneWay }; BindingOperations.SetBinding(btn, VisibilityProperty, visibility); var width = new Binding() { Path = new PropertyPath("NavButtonWidth"), UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Mode = BindingMode.OneWay }; BindingOperations.SetBinding(btn, WidthProperty, width); var height = new Binding() { Path = new PropertyPath("NavButtonHeight"), UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Mode = BindingMode.OneWay }; BindingOperations.SetBinding(btn, HeightProperty, height); var fontsize = new Binding() { Path = new PropertyPath("FontSize"), UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged, Source = this, Mode = BindingMode.OneWay }; BindingOperations.SetBinding(btn, FontSizeProperty, fontsize); btn.Click += clickHandler; if (IsLoaded) { _stkNav.Children.Insert(0, btn); } else { Loaded += delegate { _stkNav.Children.Insert(0, btn); }; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.GetValue = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); var grdNavbar = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(this, 0), 0), 0), 0) as Grid; grdNavbar.MouseLeftButtonDown += delegate { this.DragMove(); }; _btnClose = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(grdNavbar, 1), 2) as PUButton; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ContentWord = ((Panuon.UI.PUTextBox)(target)); return; case 2: this.Search = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.scrollview = ((System.Windows.Controls.ScrollViewer)(target)); return; case 2: this.roomcardgrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.roominfobtgrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.buttonstackpanel = ((System.Windows.Controls.StackPanel)(target)); return; case 5: this.rankrule = ((Panuon.UI.PUComboBox)(target)); return; case 6: this.filterule_row = ((Panuon.UI.PUComboBox)(target)); return; case 7: this.filterule_type = ((Panuon.UI.PUComboBox)(target)); return; case 8: this.filterule_state = ((Panuon.UI.PUComboBox)(target)); return; case 9: this.filerule_rmingtime = ((Panuon.UI.PUTextBox)(target)); return; case 10: this.StateColors = ((System.Windows.Controls.StackPanel)(target)); return; case 11: this.IsEdit = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Login = ((Panuon.UI.PUButton)(target)); #line 51 "..\..\..\..\..\Views\Controls\Examples\LoginWindow.xaml" this.Login.Click += new System.Windows.RoutedEventHandler(this.Login_Click); #line default #line hidden return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { var auto = Owner; Loaded += delegate { if (AllowAutoCoverMask && (Owner as PUWindow) != null) { (Owner as PUWindow).IsCoverMaskShow = true; } if (AnimateIn) { OnBeginLoadStoryboard(); } else { OnSkipLoadStoryboard(); } if (!AllowForcingClose) { DisableAltF4(this); } }; var grdResize = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(this, 0), 1) as Grid; if (grdResize != null) { foreach (Rectangle resizeRectangle in grdResize.Children) { resizeRectangle.PreviewMouseDown += ResizeRectangle_PreviewMouseDown; resizeRectangle.MouseMove += ResizeRectangle_MouseMove; } } var grdNavbar = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(this, 0), 0), 0), 0), 0) as Grid; _stkNav = VisualTreeHelper.GetChild(grdNavbar, 1) as StackPanel; grdNavbar.MouseLeftButtonDown += delegate { this.DragMove(); }; _btnClose = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(grdNavbar, 1), 2) as PUButton; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.titlebar = ((System.Windows.Controls.Border)(target)); return; case 2: this.TitleText = ((System.Windows.Controls.Label)(target)); return; case 3: this.closeicongrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.closeicon = ((System.Windows.Controls.Image)(target)); return; case 5: this.datapicker = ((Panuon.UI.PUDatePicker)(target)); return; case 6: this.timeString = ((Panuon.UI.PUTextBox)(target)); return; case 7: this.Confirm = ((Panuon.UI.PUButton)(target)); #line 42 "..\..\..\..\Views\FunctionWindow\DataPickerWindow.xaml" this.Confirm.Click += new System.Windows.RoutedEventHandler(this.Confirm_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.RandomValue = ((Panuon.UI.PUButton)(target)); return; case 2: this.ChangeAxis = ((Panuon.UI.PUButton)(target)); return; case 3: this.ChangeColor = ((Panuon.UI.PUButton)(target)); return; case 4: this.AddValues = ((Panuon.UI.PURepeatButton)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); Loaded += delegate { if (AnimateIn) { OnBeginLoadStoryboard(); } else { OnSkipLoadStoryboard(); } }; var grdNavbar = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(this, 0), 0), 0), 0) as Grid; grdNavbar.MouseLeftButtonDown += delegate { this.DragMove(); }; _btnClose = VisualTreeHelper.GetChild(VisualTreeHelper.GetChild(grdNavbar, 1), 2) as PUButton; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.canvas = ((System.Windows.Controls.Canvas)(target)); return; case 2: this.tbInput = ((Panuon.UI.PUTextBox)(target)); return; case 3: this.btnSend = ((Panuon.UI.PUButton)(target)); return; case 4: this.btnClose = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.scrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 2: this.listBox = ((Panuon.UI.PUListBox)(target)); return; case 3: this.Clear = ((Panuon.UI.PUButton)(target)); return; case 4: this.AddTask = ((Panuon.UI.PUButton)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.svMain = ((System.Windows.Controls.ScrollViewer)(target)); return; case 2: this.stkMain = ((System.Windows.Controls.StackPanel)(target)); return; case 3: this.tbInput = ((Panuon.UI.PUTextBox)(target)); return; case 4: this.btnSend = ((Panuon.UI.PUButton)(target)); #line 48 "..\..\..\..\..\Views\Controls\Examples\ChatWindow.xaml" this.btnSend.Click += new System.Windows.RoutedEventHandler(this.btnSend_Click); #line default #line hidden return; case 5: this.btnClose = ((Panuon.UI.PUButton)(target)); #line 57 "..\..\..\..\..\Views\Controls\Examples\ChatWindow.xaml" this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.datePicker = ((Panuon.UI.PUDatePicker)(target)); return; case 2: this.GrdDate = ((System.Windows.Controls.Grid)(target)); return; case 3: this.BtnDecYear = ((Panuon.UI.PUButton)(target)); return; case 4: this.BtnDecMonth = ((Panuon.UI.PUButton)(target)); return; case 5: this.BtnAddMonth = ((Panuon.UI.PUButton)(target)); return; case 6: this.BtnAddYear = ((Panuon.UI.PUButton)(target)); return; case 7: this.BtnTitleLeft = ((Panuon.UI.PUButton)(target)); return; case 8: this.BtnTitleRight = ((Panuon.UI.PUButton)(target)); return; case 9: this.GrdDatePanel = ((System.Windows.Controls.Grid)(target)); return; case 10: this.GrdTime = ((System.Windows.Controls.Grid)(target)); return; case 11: this.BtnBack = ((Panuon.UI.PUButton)(target)); return; case 12: this.ScrollHour = ((System.Windows.Controls.ScrollViewer)(target)); return; case 13: this.StkHour = ((System.Windows.Controls.VirtualizingStackPanel)(target)); return; case 14: this.ScrollMinute = ((System.Windows.Controls.ScrollViewer)(target)); return; case 15: this.StkMinute = ((System.Windows.Controls.VirtualizingStackPanel)(target)); return; case 16: this.ScrollSecond = ((System.Windows.Controls.ScrollViewer)(target)); return; case 17: this.StkSecond = ((System.Windows.Controls.VirtualizingStackPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" ((DealCIM.PostLotWnd)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 9 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" ((DealCIM.PostLotWnd)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" ((DealCIM.PostLotWnd)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: #line 20 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown); #line default #line hidden return; case 3: this.tbFab = ((System.Windows.Controls.Label)(target)); return; case 4: this.tbArea = ((System.Windows.Controls.Label)(target)); return; case 5: this.tbLine = ((System.Windows.Controls.Label)(target)); return; case 6: this.tbOperation = ((System.Windows.Controls.Label)(target)); return; case 7: this.tbUserID = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.tbModelNo = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.tbLot = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.btnPostLot = ((Panuon.UI.PUButton)(target)); #line 59 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" this.btnPostLot.Click += new System.Windows.RoutedEventHandler(this.BtnPostLot_Click); #line default #line hidden return; case 11: this.btnCancel = ((Panuon.UI.PUButton)(target)); #line 60 "..\..\..\..\..\CIM\UI\PostLotWnd.xaml" this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.BtnCancel_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 35 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 2: #line 45 "..\..\MainWindow.xaml" ((System.Windows.Documents.Run)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Run_MouseEnter); #line default #line hidden return; case 3: this.poplink = ((System.Windows.Controls.Primitives.Popup)(target)); return; case 4: #line 51 "..\..\MainWindow.xaml" ((System.Windows.Documents.Hyperlink)(target)).Click += new System.Windows.RoutedEventHandler(this.link_Click); #line default #line hidden return; case 5: this.txtboxinput = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.pubtn3 = ((Panuon.UI.PUButton)(target)); #line 61 "..\..\MainWindow.xaml" this.pubtn3.Click += new System.Windows.RoutedEventHandler(this.Pubtn3_Click); #line default #line hidden return; case 7: this.listbox1 = ((System.Windows.Controls.ListBox)(target)); return; case 8: this.checkboxbrush = ((System.Windows.Controls.CheckBox)(target)); return; case 9: this.checkboxpaste = ((System.Windows.Controls.CheckBox)(target)); return; case 10: this.radiobtn1 = ((System.Windows.Controls.RadioButton)(target)); return; case 11: this.radiobtn2 = ((System.Windows.Controls.RadioButton)(target)); return; case 12: this.checkboxgraduated = ((System.Windows.Controls.CheckBox)(target)); return; case 13: this.btn1 = ((System.Windows.Controls.Button)(target)); #line 70 "..\..\MainWindow.xaml" this.btn1.Click += new System.Windows.RoutedEventHandler(this.Btn1_Click); #line default #line hidden return; case 14: this.pubtn1 = ((Panuon.UI.PUButton)(target)); return; case 15: this.pubtn2 = ((Panuon.UI.PUButton)(target)); return; case 16: this.txtbox1 = ((System.Windows.Controls.TextBlock)(target)); return; case 17: this.btn2 = ((System.Windows.Controls.Button)(target)); #line 78 "..\..\MainWindow.xaml" this.btn2.Click += new System.Windows.RoutedEventHandler(this.Btn2_Click); #line default #line hidden return; case 18: this.txtblock1 = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.slider1 = ((System.Windows.Controls.Slider)(target)); return; case 20: this.txtblock2 = ((System.Windows.Controls.TextBlock)(target)); return; case 21: this.txtblock3 = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.txtblock4 = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.txtblock5 = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.txtblock6 = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.txtboxId = ((System.Windows.Controls.TextBox)(target)); return; case 26: this.txtboxName = ((System.Windows.Controls.TextBox)(target)); return; case 27: this.txtboxAge = ((System.Windows.Controls.TextBox)(target)); return; case 28: this.txtblock7 = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.txtblockSelectedItem = ((System.Windows.Controls.TextBlock)(target)); return; case 30: this.combox1 = ((System.Windows.Controls.ComboBox)(target)); return; case 31: this.txtboxID = ((System.Windows.Controls.TextBox)(target)); return; case 32: this.listboxEmployeeList = ((System.Windows.Controls.ListBox)(target)); return; case 33: this.listview1 = ((System.Windows.Controls.ListView)(target)); return; case 34: this.txtboxa = ((System.Windows.Controls.TextBox)(target)); return; case 35: this.txtboxb = ((System.Windows.Controls.TextBox)(target)); return; case 36: this.txtboxpath = ((System.Windows.Controls.TextBox)(target)); return; case 37: #line 172 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 38: this.txtboxhome = ((System.Windows.Controls.TextBox)(target)); return; case 39: this.txtboxnetwork = ((System.Windows.Controls.TextBox)(target)); return; case 40: this.txtboxnetweb = ((System.Windows.Controls.TextBox)(target)); return; case 41: this.txtboxnetsecondary = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }