Программирование - это просто
Advertisement
arrow C# arrow Windows Presentation Foundation (WPF). arrow Windows Presentation Foundation (WPF). 1. ""
06.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
Windows Presentation Foundation (WPF). 1. "" E-mail
megabax   
11.10.2012 .
http

Windows Presentation Foundation (WPF). 1. ""

WPF - .NET Framework, 3.0. XAML HTML Flash . WPF:

  • CPU, .

  • Web- (, ).

  • , , , , 3D .

  • , .

  • ,

  • (New, Open, Copy).

  • . . Apple Mac OS. Widows  .

  • dpi .

WPF . , Visual Studio :

Windows Presentation Foundation (WPF).  1.        ""

WPF:

Windows Presentation Foundation (WPF).  1.        ""

XAML:

Windows Presentation Foundation (WPF).  1.        ""

, XAML :

Windows Presentation Foundation (WPF).  1.        ""

, :

Windows Presentation Foundation (WPF).  1.        ""

. (NavigationWindow). XAML , NavigationWindow. :

<Window x:Class="WpfApplication2.MainWindow"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        Title=" " Height="350" Width="525">

    <Grid>

       

    </Grid>

</Window>

:

<NavigationWindow x:Class="WpfApplication2.MainWindow"

        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        Title=" " Height="350" Width="525">

</NavigationWindow>


<Grid></Grid> , NavigationWindow .

MainWindow.xaml.cs. :

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Data;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Imaging;

using System.Windows.Navigation;

using System.Windows.Shapes;

 

namespace WpfApplication2

{

    /// <summary>

    /// MainWindow.xaml

    /// </summary>

    public partial class MainWindow : Window

    {

        public MainWindow()

        {

            InitializeComponent();

        }

    }

}

:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Data;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Imaging;

using System.Windows.Navigation;

using System.Windows.Shapes;

 

namespace WpfApplication2

{

    /// <summary>

    /// MainWindow.xaml

    /// </summary>

    public partial class MainWindow : NavigationWindow

    {

        public MainWindow()

        {

            InitializeComponent();

        }

    }

}

, Windows NavigationWindow.

, , :

Windows Presentation Foundation (WPF).  1.        ""

, . , . , .

XAML :

Windows Presentation Foundation (WPF).  1.        ""

:

Windows Presentation Foundation (WPF).  1.        ""

Content:

Windows Presentation Foundation (WPF).  1.        ""

:

Windows Presentation Foundation (WPF).  1.        ""

Page2.xaml.cs:

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Data;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Imaging;

using System.Windows.Navigation;

using System.Windows.Shapes;

 

namespace WpfApplication2

{

    /// <summary>

    /// Page2.xaml

    /// </summary>

    public partial class Page2 : Page

    {

        public Page2()

        {

            InitializeComponent();

        }

    }

}

Page2:

    public partial class Page2 : Page

    {

        public Page2(string str)

        {

            InitializeComponent();

            label1.Content = str;

        }

    }

, :

        private void button1_Click(object sender, RoutedEventArgs e)

        {

            Page2 page = new Page2(" ");

            this.NavigationService.Navigate(page);

        }

 

        private void button2_Click(object sender, RoutedEventArgs e)

        {

            Page2 page = new Page2(" ");

            this.NavigationService.Navigate(page);

        }

, , , MainWindows Source "Page1.xaml":

Windows Presentation Foundation (WPF).  1.        ""

:

Windows Presentation Foundation (WPF).  1.        ""

, , .

 

 

( 11.10.2012 . )
 
« .
 
© 2023 Программирование - это просто
Joomla! - , GNU/GPL.
© 2005-2008 Joom.Ru - Joomla!
Design by Mamboteam.com | Powered by Mambobanner.de
  .