• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Controls.Page类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Controls.Page的典型用法代码示例。如果您正苦于以下问题:C# Page类的具体用法?C# Page怎么用?C# Page使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Page类属于System.Windows.Controls命名空间,在下文中一共展示了Page类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: CreateUserViewModel

        /// <summary>
        /// constructeur
        /// </summary>
        public CreateUserViewModel(Page lkView)
        {
            _linkedView = lkView;

            _createCommand = new RelayCommand(param => CreateAccount(), param => IsValidForm());
            _imageCommand = new RelayCommand(param => SelectImage(), param => true);

            _name = "";
            _firstname = "";
            _login = "";
            _password = "";
            _confirmPassword = "";

            _availableRoleList = new List<string>();
            _availableRoleList.Add("Chirurgien");
            _availableRoleList.Add("Infirmière");
            _availableRoleList.Add("Medecin");
            _availableRoleList.Add("Radiologue");

            _role = "Chirurgien";

            _iscreatingaccount = false;
            _imagepath = "";
            _imagesrc = null;
            _waitingMessage = "";
        }
开发者ID:chahla,项目名称:wpf-medical,代码行数:29,代码来源:CreateUserViewModel.cs


示例2: MenuPrincipal

 public MenuPrincipal(Page pagina,String usuario,int id,String nombre)
 {
     this.pagina = pagina;
     this.usuario=usuario;
     this.id = id;
     this.nombre = nombre;
 }
开发者ID:BestBollas,项目名称:SAC,代码行数:7,代码来源:MenuPrincipal.cs


示例3: MainWindow

        public MainWindow()
        {
            try
            {
                this.dropNetClient = new DropNetClient(API_KEY, APP_SECRET);
                this.dropNetClient.UseSandbox = true;
                this.employees = HierarchyGenerator.GenerateEmployees();

                InitializeComponent();

                this.importDataBtn.Click += (sender, eventArgs) =>
                {
                    var reportsPage = new ReportsPage(employees);
                    this.pagesFrame.Navigate(reportsPage);
                    this.currentPage = reportsPage;
                };
                this.exportToDropBoxBtn.Click += ExportToDropBoxAccount;
                this.exportToWordBtn.Click += (sender, e) =>
                {
                    try
                    {
                        ExportToWordFile(sender, e);
                    }
                    catch (Exception ex)
                    {
                        ShowError(ex);
                    }
                };
                this.aboutBtn.Click += ShowAboutBox;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
开发者ID:nok32,项目名称:SoftUny-HW,代码行数:35,代码来源:MainWindow.xaml.cs


示例4: GetModulePage

        public Page GetModulePage(string ModuleKey)
        {

            Page PageModule = (Page)this.GetModuleItem(ModuleKey).Instance;
            if (PageModule == null)
            {
                try
                {
                    ObjectHandle handle = Activator.CreateInstanceFrom(Assembly.GetExecutingAssembly().Location, this.GetModuleItem(ModuleKey).ClassName);
                    PageModule = (Page)handle.Unwrap();
                    this.GetModuleItem(ModuleKey).Instance = PageModule;
                }
                catch (Exception ex)
                {
                    //If error that means the page is under construction.
                    LogManager.Instance.LogMessage("Unable to load page: " + ModuleKey, ex);
                    
                    PageModule = new Page();
                    i9Label l = new i9Label();
                    l.Content = ModuleKey + " Coming Soon";
                    l.FontSize = 18;
                    l.HorizontalContentAlignment = HorizontalAlignment.Center;
                    l.VerticalAlignment = VerticalAlignment.Center;
                    PageModule.Content = l;

                    this.GetModuleItem(ModuleKey).Instance = PageModule;
                }
            }

            return PageModule;
        }
开发者ID:Nsobi,项目名称:PoliceReports,代码行数:31,代码来源:ModuleManager.cs


示例5: NavigateToPage

 void NavigateToPage(Page p)
 {
     Frm_Content.Navigate(p);
     IPage ip = (IPage)p;
     Lbl_Path.Content = ip.Path;
     ip.NavigateToPage += new EventHandler<NavigateToPageEventArgs>(NavigateToPage);
 }
开发者ID:JiNanCVT,项目名称:Calligraphy,代码行数:7,代码来源:MainWindow.xaml.cs


示例6: LoadPage

 protected override void LoadPage(Page page)
   {
       ClearAndSetup.Execute(null);
       IRNId = PresentationUtility.ParseIdFromUrl(page.NavigationService.CurrentSource);
     if (IRNId == Guid.Empty)
           {
            
               ShowAddVisibility = Visibility.Visible;
               ShowConfirmVisibility = Visibility.Visible;
               OrderReferencesIsEnabled = true;
               EnterLoadNoIsEnabled = true;
               CancelAction = "Cancel";
               RunLoad();
           }
           else
           {
               CancelAction = "Back";
               ShowAddVisibility = Visibility.Collapsed;
               ShowConfirmVisibility = Visibility.Collapsed;
               OrderReferencesIsEnabled = false;
               EnterLoadNoIsEnabled = false;
               RunLoadGrn();
           }
          
       
   }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:26,代码来源:AddGRNViewModel.cs


示例7: opdrachtPage

        public opdrachtPage(Page page, Job job = null)
        {
            this.previousPage = page;
            InitializeComponent();

            this.selectedItems = new List<JobObject>();

            this.dbhandler = singletonDbHandler.getInstance();
            this.brandSelection.ItemsSource = this.dbhandler.getBrands();

            if (job != null) {
                this.opdracht = job;
                this.jobList = new ObservableCollection<JobObject>(this.opdracht.JobObjects);
                this.jobTasksViewer.ItemsSource = this.jobList;
                this.setPageElements();
                this.updateJobViewer();
            } else {
                this.opdracht = new Job();
                this.jobList = new ObservableCollection<JobObject>(this.opdracht.JobObjects);
                this.jobTasksViewer.ItemsSource = this.jobList;
                this.opdracht.setPrize(helperFunctions.milieukosten);
            }

            this.environmentCosts.Content = helperFunctions.prizeToString(helperFunctions.milieukosten);
            this.subTotalPrize.Content = helperFunctions.prizeToString(helperFunctions.calculateAmountExcl(this.opdracht.JobObjects));
            int totalExcl = helperFunctions.exclVAT(this.opdracht.Amount) + helperFunctions.milieukosten;
            this.totalExclBtw.Content = helperFunctions.prizeToString(totalExcl);

            int totalIncl = this.opdracht.Amount + helperFunctions.inclVAT(helperFunctions.milieukosten);
            this.totalPrizeIncl.Content = helperFunctions.prizeToString(totalIncl);

            this.btwPrize.Content = helperFunctions.prizeToString(totalIncl - totalExcl);
        }
开发者ID:ColinSmits,项目名称:WPF-PriceChecker,代码行数:33,代码来源:opdrachtPage.xaml.cs


示例8: GoToNextPage

 public void GoToNextPage()
 {
     if (this.currentPage.Name == "NewCartName")
     {
         this.currentPage = new NewCart2(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
     else if (this.currentPage.Name == "NewCart2Name")
     {
         this.currentPage = new Btn(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
     else if (this.currentPage.Name == "BtnName")
     {
         this.currentPage = new DataGrid(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
     else if (this.currentPage.Name == "DataGridName")
     {
         this.currentPage = new SOP(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
     else if (this.currentPage.Name == "SOPName") {
         this.currentPage = new Scale(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
     else
     {
         this.currentPage = new NewCart(this);
         NaviFrame.NavigationService.Navigate(this.currentPage);
     }
 }
开发者ID:SongFuZhen,项目名称:WPFUI,代码行数:32,代码来源:MainWindow.xaml.cs


示例9: SnapshotItem

        public SnapshotItem(Page parentPage)
        {
            Init();

            ParentPage = parentPage;
            ParentSnapshot = new Snapshot();
        }
开发者ID:TrakHound,项目名称:TrakHound-Community,代码行数:7,代码来源:SnapshotItem.xaml.cs


示例10: Page1

 public Page1(Window1 parent, Page successor)
 {
     InitializeComponent();
     this.parent = parent;
     this.next = successor;
     this.login.Focus();
 }
开发者ID:jrichter1,项目名称:developer-platform-installer-wpf,代码行数:7,代码来源:Page1.xaml.cs


示例11: ThanksPageViewModel

        public ThanksPageViewModel(Page view)
        {
            this.view = view;

            delayTimer = new Timer(1500);
            delayTimer.Elapsed += DelayTimerOnElapsed;
        }
开发者ID:nuc134r,项目名称:CinemaTicketOffice,代码行数:7,代码来源:ThanksPageViewModel.cs


示例12: FuzzyAutomaton

 public FuzzyAutomaton(Window window, Page prevPage)
 {
     InitializeComponent();
     mainWindow = window;
     this.prevPage = prevPage;
     mainWindow.Height = 325;
 }
开发者ID:lukaszw896,项目名称:BachelorProgram,代码行数:7,代码来源:FuzzyAutomaton.xaml.cs


示例13: Playlist

 public Playlist(Page p, string link)
 {
     InitializeComponent();
     previousPage = p;
     this.PlayListLink = link;
     SetUpPage();
 }
开发者ID:GitHubUsername1,项目名称:YouTube-Downloader,代码行数:7,代码来源:Playlist.xaml.cs


示例14: PatientBrowserViewModel

        /// <summary>
        /// constructeur
        /// </summary>
        public PatientBrowserViewModel(Page lkView)
        {
            _linkedView = lkView;

            _imageCommand = new RelayCommand(param => ImageAccess(param), param => true);

            _createObservationCommand = new RelayCommand(param => NavigateToCreateObservation(param), param => IsButtonAvailable());
            _addPatientCommand = new RelayCommand(param => ClickAddPatient(), param => true);
            _navigateToHomeCommand = new RelayCommand(param => NavigateToHome(), param => true);
            _deletePatientCommand = new RelayCommand(param => NavigateToDeletePatient(param), param => IsButtonAvailable());

            /// Definit si les bouton de creation/suppression est disponible ou non
            if (NavigationMessenger.GetInstance().IsRWAccount) {
                IsAvailableRW = Visibility.Visible;
            }
            else {
                IsAvailableRW = Visibility.Hidden;
            }

            _listPatient = new ObservableCollection<ServicePatient.Patient>();

            BackgroundWorker worker = new BackgroundWorker();

            worker.DoWork += new DoWorkEventHandler((object s, DoWorkEventArgs e) =>
            {
                Debug.WriteLine("DEBUT");
                ServicePatient.ServicePatientClient patientService = new ServicePatient.ServicePatientClient();
                e.Result = patientService.GetListPatient();
            });

            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler((object s, RunWorkerCompletedEventArgs e) =>
            {
                Debug.WriteLine("FIN");
                if (e.Cancelled)
                {
                }
                if (e.Error != null)
                {
                }
                if (e.Result == null)
                {
                }
                else
                {
                    ServicePatient.Patient[] res = e.Result as ServicePatient.Patient[];
                    if (res != null)
                    {
                        foreach (ServicePatient.Patient item in res)
                        {
                            _listPatient.Add(item);
                        }
                    }
                    else {
                    }
                }
            });

            worker.RunWorkerAsync();
        }
开发者ID:chahla,项目名称:wpf-medical,代码行数:62,代码来源:PatientBrowserViewModel.cs


示例15: InitializeComponent

 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/SilverlightCSharp;component/Views/Vowels.xaml", System.UriKind.Relative));
     this.mainPage = ((System.Windows.Controls.Page)(this.FindName("mainPage")));
 }
开发者ID:shiouen,项目名称:UI.views.net,代码行数:8,代码来源:Vowels.g.i.cs


示例16: initialize

        private void initialize(Page parent)
        {
            this.parent = parent;
            shortCutReaderWriter = SpringUtil.getService<IShortcutReaderWriterService>();

            editView = new ShortCutEditView();
            editView.OnSaveEvent += new EventHandler(editView_OnSaveEvent);
        }
开发者ID:philiWeitz,项目名称:InteractionTechniques,代码行数:8,代码来源:ShortCutsMainView.xaml.cs


示例17: PageContainer

        public PageContainer(Page page)
        {
            InitializeComponent();

            Title = page.Title;
            labelPageTitle.Content = page.Title;
            frameNav.Navigate(page);
        }
开发者ID:dhaigh,项目名称:Swimalicious,代码行数:8,代码来源:PageContainer.xaml.cs


示例18: Quit

 public static void Quit(Page page)
 {
     int count = page.NavigationService.BackStack.Count();
     for (int i = 0; i < count; i++)
     {
         page.NavigationService.RemoveBackEntry();
     }
 }
开发者ID:anytao,项目名称:ModernReader,代码行数:8,代码来源:NavHelper.cs


示例19: Photo

 public Photo(Page p)
 {
     this.p = p;
     image = new BitmapImage(new Uri("img.jpg", UriKind.Relative));
     Name = "Test";
     Price = "Test";
     Size = "Test";
 }
开发者ID:alienpham,项目名称:helenekling,代码行数:8,代码来源:Photo.cs


示例20: UnloadPage

		void UnloadPage(Page page)
		{
			Storyboard hidePage = (Resources[string.Format("{0}Out", TransitionType.ToString())] as Storyboard).Clone();

			hidePage.Completed += hidePage_Completed;

			hidePage.Begin(contentPresenter);
		}
开发者ID:humanosc,项目名称:Work,代码行数:8,代码来源:PageTransition.xaml.cs



注:本文中的System.Windows.Controls.Page类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Controls.Panel类代码示例发布时间:2022-05-26
下一篇:
C# Controls.OpenFileDialog类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap