/// <summary> /// Initializes a new instance of the <see cref="WatermarkAdorner"/> class /// </summary> /// <param name="adornedElement"><see cref="UIElement"/> to be adorned</param> /// <param name="watermark">The watermark</param> public WatermarkAdorner(UIElement adornedElement, object watermark) : base(adornedElement) { IsHitTestVisible = false; contentPresenter = new ContentPresenter { Content = watermark, Opacity = 0.5, Margin = new Thickness(Control.Margin.Left + Control.Padding.Left, Control.Margin.Top + Control.Padding.Top, 0, 0) }; if (Control is ItemsControl && !(Control is ComboBox)) { contentPresenter.VerticalAlignment = VerticalAlignment.Center; contentPresenter.HorizontalAlignment = HorizontalAlignment.Center; } // Hide the control adorner when the adorned element is hidden var binding = new Binding("IsVisible") { Source = adornedElement, Converter = new BooleanToVisibilityConverter() }; SetBinding(VisibilityProperty, binding); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyImage = ((System.Windows.Controls.Image)(target)); return; case 2: this.Article = ((System.Windows.Controls.Grid)(target)); return; case 3: this.ArticleField = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.ProductName = ((System.Windows.Controls.Grid)(target)); return; case 5: this.Price = ((System.Windows.Controls.Grid)(target)); return; case 6: this.Amount = ((System.Windows.Controls.Grid)(target)); return; case 7: this.RestParams = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { // get a reference to the frame's content presenter // this is the element we will fade in and out _contentPresenter = GetTemplateChild("PART_FrameCP") as ContentPresenter; base.OnApplyTemplate(); }
/// <summary> /// 设置折叠状态 /// </summary> private void TreeView_MouseDown(object sender, MouseButtonEventArgs e) { //获取选中的索引对象 TreeViewItem SelectedfItem = new TreeViewItem(); //获取点击的类型 if (sender.GetType() == typeof(ToggleButton)) { //构建一个byte ToggleButton btn = (ToggleButton)sender; System.Windows.Controls.ContentPresenter CP = (System.Windows.Controls.ContentPresenter)btn.Tag; SelectedfItem = (TreeViewItem)CP.TemplatedParent; } else if (sender.GetType() == typeof(Border)) { //进行里式转换 Border btn = (Border)sender; System.Windows.Controls.ContentPresenter CP = (System.Windows.Controls.ContentPresenter)btn.Tag; SelectedfItem = (TreeViewItem)CP.TemplatedParent; } else if (e.Source.GetType() == typeof(TreeViewItem)) { SelectedfItem = (TreeViewItem)sender; } if (SelectedfItem == null || ((TreeViewNode)SelectedfItem.DataContext).IsChildNode || ((TreeViewNode)SelectedfItem.DataContext).IsNodeAdd) { SelectedfItem.IsExpanded = SelectedfItem.IsExpanded == true ? false : true; } }
//重写OnApplyTemplate()方法获取模板样式的子控件 public override void OnApplyTemplate() { base.OnApplyTemplate(); this.body = this.GetTemplateChild("body") as ContentPresenter; this.backgroundRect = this.GetTemplateChild("backgroundRect") as System.Windows.Shapes.Rectangle; InitializeMessagePrompt(); }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new IssueGoodsCommand { ContentPre = contentPresenter }; }
private void ResizeThumb_DragStarted(object sender, DragStartedEventArgs e) { this.designerItem = this.DataContext as ContentControl; if (this.designerItem != null) { this.canvas = VisualTreeHelper.GetParent(this.designerItem) as ContentPresenter; if (this.canvas != null) { this.transformOrigin = this.designerItem.RenderTransformOrigin; this.rotateTransform = this.designerItem.RenderTransform as RotateTransform; if (this.rotateTransform != null) { this.angle = this.rotateTransform.Angle * Math.PI / 180.0; } else { this.angle = 0.0d; } AdornerLayer adornerLayer = AdornerLayer.GetAdornerLayer(this.canvas); if (adornerLayer != null) { this.adorner = new SizeAdorner(this.designerItem); adornerLayer.Add(this.adorner); } } } }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new ViewSupplierBalanceCommand { ContentPre = contentPresenter }; }
internal ICommand ParseCommand(string requestedCommand, ContentPresenter contentPresenter) { var command = FindRequestedCommand(requestedCommand); if(command ==null) return new NotFoundCommand{Name = requestedCommand}; return command.MakeCommand(contentPresenter); }
public PopupButton() { var content = new ContentPresenter(); content.SetBinding(ContentPresenter.ContentProperty, new Binding("PopupContent") { Source = this }); var border = new Border() { CornerRadius = new CornerRadius(5), BorderThickness = new Thickness(1), Child = content }; border.SetResourceReference(Border.BackgroundProperty, "BaseWindowBackgroundBrush"); border.SetResourceReference(Border.BorderBrushProperty, "WindowBorderBrush"); _popup = new Popup() { AllowsTransparency = true, StaysOpen = false, Placement = PlacementMode.Bottom, PlacementTarget = this, DataContext = this, Child = border, }; _popup.SetBinding(Popup.IsOpenProperty, "IsChecked"); _popup.SetBinding(Popup.WidthProperty, "Width"); SetBinding(PopupButton.IsHitTestVisibleProperty, new Binding("IsOpen") { Source = _popup, Mode = BindingMode.OneWay, Converter = new InverseBooleanConverter() }); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.placeholder = ((System.Windows.Controls.ScrollViewer)(target)); return; case 2: this.mainBody = ((System.Windows.Controls.Grid)(target)); return; case 3: this.MainBreadCrumb = ((ShopInventory.Pages.Common.BreadCrumb)(target)); return; case 4: this.bodyContainer = ((System.Windows.Controls.ContentPresenter)(target)); return; case 5: this.loadingCanvas = ((System.Windows.Controls.Grid)(target)); return; case 6: this.waitingTxt = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.PopupContainer = ((ShopInventory.Pages.Common.ModalContainer)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { base.OnApplyTemplate(); _presenter = this.GetTemplateChild("ContentContainer") as ContentPresenter; SetupZoomRight(); SetupGestureListener(this.GetTemplateChild("ContentBorder")); }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new ViewCustomerLedgerCommand { ContentPre = contentPresenter }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.tv_current_project = ((System.Windows.Controls.TreeView)(target)); #line 87 "..\..\..\Views\MainWindow.xaml" this.tv_current_project.Loaded += new System.Windows.RoutedEventHandler(this.TreeView_Loaded); #line default #line hidden #line 88 "..\..\..\Views\MainWindow.xaml" this.tv_current_project.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.TreeView_SelectedItemChanged); #line default #line hidden return; case 2: this.main_content = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new SupplierDuePaymentCommand { ContentPre = contentPresenter }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DeckList = ((System.Windows.Controls.ListView)(target)); return; case 3: this.NewCardDeck = ((System.Windows.Controls.ListViewItem)(target)); return; case 4: this.DisplayWindow = ((System.Windows.Controls.ContentPresenter)(target)); return; case 5: this.ModeSwitching = ((System.Windows.Controls.Button)(target)); #line 71 "..\..\MainWindow.xaml" this.ModeSwitching.Click += new System.Windows.RoutedEventHandler(this.ModeSwitch); #line default #line hidden return; } this._contentLoaded = true; }
//重写OnApplyTemplate()方法获取模板样式的子控件 public override void OnApplyTemplate() { base.OnApplyTemplate(); this.body = this.GetTemplateChild("body") as ContentPresenter; this.backgroundRect = this.GetTemplateChild("backgroundRect") as Rectangle; InitializeMessagePrompt(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.title = ((System.Windows.Controls.Label)(target)); return; case 2: this.yes = ((System.Windows.Controls.Button)(target)); return; case 3: this.no = ((System.Windows.Controls.Button)(target)); return; case 4: this.icon = ((System.Windows.Controls.Image)(target)); return; case 5: this.content = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.AcceptButton = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\..\Pads\WatchInputBox.xaml" this.AcceptButton.Click += new System.Windows.RoutedEventHandler(this.AcceptButton_Click); #line default #line hidden return; case 2: this.CancelButton = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\..\Pads\WatchInputBox.xaml" this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click); #line default #line hidden return; case 3: this.ConsolePanel = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new DoBankDepositCommand { ContentPre = contentPresenter }; }
public DataTemplateAdorner(object data, UIElement adornedElement, DataTemplate dataTemplate) : base(adornedElement) { _contentPresenter = new ContentPresenter() { Content = data, ContentTemplate = dataTemplate, }; }
private void UpdateCells() { var grid = this.Content as UniformGrid; int counter = 0; foreach (Border child in grid.Children) { try { var cp = new ContentPresenter(); cp.MouseLeftButtonDown += (sender, args) => { UIElement el = (UIElement) sender; var _point = args.MouseDevice.GetPosition(el); el.CaptureMouse(); }; cp.Content = board[counter++]; child.Child = cp; //child.Child = new TextBlock() //{ // Text = board[counter++].GetType().ToString() //}; } catch (Exception ex) { MessageBox.Show(ex.ToString()); return; } } }
private void RotateThumb_DragStarted(object sender, DragStartedEventArgs e) { this.designerItem = DataContext as ContentControl; if (this.designerItem != null) { this.canvas = VisualTreeHelper.GetParent(this.designerItem) as ContentPresenter; if (this.canvas != null) { this.centerPoint = this.designerItem.TranslatePoint( new Point(this.designerItem.Width * this.designerItem.RenderTransformOrigin.X, this.designerItem.Height * this.designerItem.RenderTransformOrigin.Y), this.canvas); Point startPoint = Mouse.GetPosition(this.canvas); this.startVector = Point.Subtract(startPoint, this.centerPoint); this.rotateTransform = this.designerItem.RenderTransform as RotateTransform; if (this.rotateTransform == null) { this.designerItem.RenderTransform = new RotateTransform(0); this.initialAngle = 0; } else { this.initialAngle = this.rotateTransform.Angle; } } } }
/// <summary> /// Initializes a new instance of the <see cref="DropPreviewAdorner"/> class. /// </summary> /// <param name="feedbackUI">The UI element used as feedback element.</param> /// <param name="adornedElement">The element to bind the adorner to.</param> public DropPreviewAdorner(UIElement feedbackUI, UIElement adornedElement) : base(adornedElement) { m_Presenter = new ContentPresenter(); m_Presenter.Content = feedbackUI; m_Presenter.IsHitTestVisible = false; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new RepairCompanyListCommand { ContentPre = contentPresenter }; }
public TeamSettingsControl(ContentPresenter disabler, TeamManagement teamManagement) { _teamManagement = teamManagement; InitializeComponent(); InitGwupeDataCaptureForm(disabler, StatusText, ErrorText); ProcessingWord = "Updating"; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new ViewInitialBalanceCommand { ContentPre = contentPresenter }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Control = ((MaterialMenu.SideMenu)(target)); return; case 2: this.MenuColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 3: this.ShadowColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 4: this.MenuPresenter = ((System.Windows.Controls.ContentPresenter)(target)); return; case 5: #line 25 "..\..\SideMenu.xaml" ((System.Windows.Controls.Border)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ShadowMouseDown); #line default #line hidden return; } this._contentLoaded = true; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new MachineLegerCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new DoBankWithdrawalCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new ViewStockRegisterCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new CardListCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new SetupProductCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new SectionWiseIssueCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new CompanyCommand { ContentPre = contentPresenter }; }
public ICommand MakeCommand(ContentPresenter contentPresenter) { return new SetupBankAccountsCommand { ContentPre = contentPresenter }; }
/// <summary> /// This gets called when the template has been applied and we have our visual tree /// </summary> public override void OnApplyTemplate() { m_paintArea = Template.FindName("PART_PaintArea", this) as Shape; m_mainContent = Template.FindName("PART_MainContent", this) as ContentPresenter; base.OnApplyTemplate(); }
public WebProjectSelectionNode(Core.VplControl hostCanvas) : base(hostCanvas) { DataContext = this; AddOutputPortToNode("Project", typeof(object)); // Call the Singleton Class to get the actual loaded elements -> Connection to the DataModel _controller = DataController.Instance; IsResizeable = true; var webControl = new WebProjectSelection(_controller.IntBase); { Visibility = Visibility.Visible; }; // webControl.ProjectChangedEventHandler += ProjectSelectionViewModelOnProjectChangedEventHandler; // webControl.TeamChangedEventHandler += ProjectSelectionViewModelOnTeamChangedEventHandler; var pr = new ContentPresenter { Content = webControl, MinWidth = 600, MinHeight = 600 }; AddControlToNode(pr); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\View\Windows\MainWindow.xaml" ((TrueFriendsApp.View.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded); #line default #line hidden return; case 2: this.ButtonFAQ = ((System.Windows.Controls.Button)(target)); return; case 3: this.ButtonPopUpLogout = ((System.Windows.Controls.Button)(target)); return; case 4: this.GridMenu = ((System.Windows.Controls.Grid)(target)); return; case 5: this.MenuControlPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 6: this.ButtonCloseMenu = ((System.Windows.Controls.Button)(target)); return; case 7: this.ButtonOpenMenu = ((System.Windows.Controls.Button)(target)); return; case 8: this.MenuButtons = ((System.Windows.Controls.StackPanel)(target)); return; case 9: this.HomeButton = ((System.Windows.Controls.Button)(target)); return; case 10: this.CreateAdButton = ((System.Windows.Controls.Button)(target)); return; case 11: this.GitHubButton = ((System.Windows.Controls.Button)(target)); return; case 12: this.OutputView = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuBorder = ((System.Windows.Controls.Border)(target)); return; case 2: this.StatusBar = ((SCA.WPF.ViewsRoot.Views.StatusBarView)(target)); return; case 3: this.MainGrid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.DetailsPane = ((System.Windows.Controls.Grid)(target)); return; case 5: this.DiagramBorder = ((System.Windows.Controls.Border)(target)); return; case 6: this.Navigator = ((SCA.WPF.ViewsRoot.Views.Navigator.NavigatorView)(target)); return; case 7: this.ContentArea = ((System.Windows.Controls.ContentPresenter)(target)); return; case 8: this.WelcomeUserControl = ((SCA.WPF.ViewsRoot.Views.WelcomeView)(target)); return; case 9: this.ProjectUserControl = ((SCA.WPF.ViewsRoot.Views.CreateProjectView)(target)); return; case 10: this.ImportFromOldVersionUserControl = ((SCA.WPF.ViewsRoot.Views.ImportFromOldVersionView)(target)); return; case 11: this.CreateControllerUserControl = ((SCA.WPF.ViewsRoot.Views.CreateControllerView)(target)); return; case 12: this.ImportControllerUserControl = ((SCA.WPF.ViewsRoot.Views.ImportControllerView)(target)); return; case 13: this.CreateViewArea = ((System.Windows.Controls.StackPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ContentPresenter = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/BeeHive;component/LevelHostControl.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.PART_CONTENT = ((System.Windows.Controls.ContentPresenter)(this.FindName("PART_CONTENT"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/BrokerTools;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.MainContent = ((System.Windows.Controls.ContentPresenter)(this.FindName("MainContent"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\MainWindow.xaml" ((timesheet.wpf.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.lblTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.titleBar = ((System.Windows.Controls.Border)(target)); #line 26 "..\..\MainWindow.xaml" this.titleBar.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBar_MouseLeftButtonDown); #line default #line hidden return; case 4: this.btnBack = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\MainWindow.xaml" this.btnBack.Click += new System.Windows.RoutedEventHandler(this.btnBack_Click); #line default #line hidden return; case 5: this.btnClose = ((System.Windows.Controls.Button)(target)); #line 69 "..\..\MainWindow.xaml" this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click); #line default #line hidden return; case 6: this.layout = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public override void OnApplyTemplate() { if (this.IsTransitioning) { this.AbortTransition(); } if (this.CustomVisualStates != null && this.CustomVisualStates.Any()) { var presentationGroup = VisualStates.TryGetVisualStateGroup(this, PresentationGroup); if (presentationGroup != null) { foreach (var state in this.CustomVisualStates) { presentationGroup.States.Add(state); } } } base.OnApplyTemplate(); this.previousContentPresentationSite = this.GetTemplateChild(PreviousContentPresentationSitePartName) as System.Windows.Controls.ContentPresenter; this.currentContentPresentationSite = this.GetTemplateChild(CurrentContentPresentationSitePartName) as System.Windows.Controls.ContentPresenter; if (this.currentContentPresentationSite != null) { if (this.ContentTemplateSelector != null) { this.currentContentPresentationSite.ContentTemplate = this.ContentTemplateSelector.SelectTemplate(this.Content, this); } else { this.currentContentPresentationSite.ContentTemplate = this.ContentTemplate; } this.currentContentPresentationSite.Content = this.Content; } // hookup currenttransition Storyboard transition = this.GetStoryboard(this.Transition); this.CurrentTransition = transition; if (transition == null) { var invalidTransition = this.Transition; // revert to default this.Transition = DefaultTransitionState; throw new ArgumentException(string.Format("'{0}' Transition could not be found!", invalidTransition), "Transition"); } System.Windows.VisualStateManager.GoToState(this, NormalState, false); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 16 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdProprio); #line default #line hidden return; case 2: #line 17 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdSociete); #line default #line hidden return; case 3: #line 18 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdTransaction); #line default #line hidden return; case 4: #line 19 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.cmdQuitter); #line default #line hidden return; case 5: this.IMGlogo = ((System.Windows.Controls.Image)(target)); return; case 6: this.presenteurContenu = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.stateMachineDesigner = ((Wxwinter.BPM.Machine.Design.StateMachineDesigner)(target)); return; case 2: this.stateMachineContentPresenter = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.SearchListbox = ((System.Windows.Controls.ListView)(target)); return; case 2: this.mainContentControl = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.CSharpResourceDictionary = ((System.Windows.ResourceDictionary)(target)); return; case 2: this.CSharpCodingContentPresenter = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/GameManager;component/MainPage.xaml", System.UriKind.Relative)); this.ListTemplate = ((System.Windows.DataTemplate)(this.FindName("ListTemplate"))); this.GridTemplate = ((System.Windows.DataTemplate)(this.FindName("GridTemplate"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.viewButton = ((System.Windows.Controls.Image)(this.FindName("viewButton"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.Presenter = ((System.Windows.Controls.ContentPresenter)(this.FindName("Presenter"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.grid1 = ((System.Windows.Controls.Grid)(target)); return; case 2: this.Row2 = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this.btnChoixMenu = ((System.Windows.Controls.Button)(target)); #line 109 "..\..\MainWindow.xaml" this.btnChoixMenu.Click += new System.Windows.RoutedEventHandler(this.clkCreerPiece); #line default #line hidden return; case 4: this.btnChoixMenu2 = ((System.Windows.Controls.Button)(target)); #line 110 "..\..\MainWindow.xaml" this.btnChoixMenu2.Click += new System.Windows.RoutedEventHandler(this.clkTeleverserPiece); #line default #line hidden return; case 5: #line 111 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.clkContinuer); #line default #line hidden return; case 6: this.presenteurContenu = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.DeckList = ((System.Windows.Controls.ListView)(target)); return; case 3: this.NewCardDeck = ((System.Windows.Controls.ListViewItem)(target)); return; case 4: this.DisplayWindow = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.dockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 2: this.mainMenu = ((System.Windows.Controls.Menu)(target)); return; case 3: this.mainContent = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ImageSource = ((System.Windows.Controls.Image)(target)); return; case 2: this.IconContent = ((System.Windows.Controls.ContentPresenter)(target)); return; case 3: this.TextBlock = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.root = ((ShopInventory.Pages.Common.ModalContainer)(target)); return; case 2: this.RoundBorder = ((System.Windows.Controls.Border)(target)); return; case 3: this.innerContents = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.rbbSair = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); #line 20 "..\..\MainWindow.xaml" this.rbbSair.Click += new System.Windows.RoutedEventHandler(this.rbbSair_Click); #line default #line hidden return; case 2: this.rbbNovo = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); #line 30 "..\..\MainWindow.xaml" this.rbbNovo.Click += new System.Windows.RoutedEventHandler(this.rbbNovo_Click); #line default #line hidden return; case 3: this.rbbLista = ((System.Windows.Controls.Ribbon.RibbonButton)(target)); #line 35 "..\..\MainWindow.xaml" this.rbbLista.Click += new System.Windows.RoutedEventHandler(this.rbbLista_Click); #line default #line hidden return; case 4: this.tw = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.stkContent = ((System.Windows.Controls.ContentPresenter)(target)); return; } this._contentLoaded = true; }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Run21;component/UserControls/CardControl.xaml", System.UriKind.Relative)); this.MoveRobot = ((System.Windows.Media.Animation.Storyboard)(this.FindName("MoveRobot"))); this.Move = ((System.Windows.Media.Animation.Storyboard)(this.FindName("Move"))); this.xMove = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("xMove"))); this.yMove = ((System.Windows.Media.Animation.DoubleAnimation)(this.FindName("yMove"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.screens = ((System.Windows.Controls.Canvas)(this.FindName("screens"))); this.front = ((System.Windows.Controls.Grid)(this.FindName("front"))); this.cardContent = ((System.Windows.Controls.ContentPresenter)(this.FindName("cardContent"))); this.back = ((System.Windows.Controls.Grid)(this.FindName("back"))); this.backContent = ((System.Windows.Controls.ContentPresenter)(this.FindName("backContent"))); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.cp = ((System.Windows.Controls.ContentPresenter)(target)); return; case 2: #line 25 "..\..\..\Window38.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.treeView = ((System.Windows.Controls.TreeView)(target)); return; case 2: this.optionPanelScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); return; case 3: this.optionPanelTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.optionPanelContent = ((System.Windows.Controls.ContentPresenter)(target)); return; case 5: this.okButton = ((System.Windows.Controls.Button)(target)); #line 73 "..\..\..\..\Gui\Dialogs\TreeViewOptionsDialog.xaml" this.okButton.Click += new System.Windows.RoutedEventHandler(this.okButtonClick); #line default #line hidden return; case 6: this.cancelButton = ((System.Windows.Controls.Button)(target)); #line 79 "..\..\..\..\Gui\Dialogs\TreeViewOptionsDialog.xaml" this.cancelButton.Click += new System.Windows.RoutedEventHandler(this.cancelButtonClick); #line default #line hidden return; } this._contentLoaded = true; }
public static void AskToPrint( ContentPresenter content , string printJobDesc = "Tab Content Visual") { var dlg = new PrintDialog(); if (dlg.ShowDialog() != true) return; dlg.PrintVisual(content, printJobDesc); }