1 1: wpf 2 - RIP Tutorial XML XAML (eXtensible Application Markup Language) . XAML WPF . Windows Forms

  • View
    4

  • Download
    0

Embed Size (px)

Text of 1 1: wpf 2 - RIP Tutorial XML XAML (eXtensible Application Markup Language) . XAML WPF . Windows...

  • wpf

    #wpf

  • 1

    1: wpf 2

    2

    2

    Examples 2

    Hello World 2

    2: " " 6

    6

    Examples 6

    6

    10

    3: System.Windows.Controls.WebBrowser 11

    11

    11

    Examples 11

    BusyIndicator WebBrowser 11

    4: WPF 12

    12

    12

    12

    UpdateSourceTrigger 12

    Examples 12

    12

    DataContext 13

    INotifyPropertyChanged 14

    14

    14

    15

    5: WPF 16

    Examples 16

    . 16

  • 16

    17

    17

    6: WPF 20

    20

    Examples 20

    20

    7: WPF 22

    22

    Examples 22

    22

    23

    ComboBox 25

    29

    DoubleAnimation 29

    8: WPF 32

    Examples 32

    DispatcherObject 32

    32

    32

    32

    DependencyObject 32

    32

    32

    32

    9: WPF 33

    33

    Examples 33

    VB XAML 33

    VB 33

    C # XAML 34

    34

  • 10: WPF 35

    35

    Examples 35

    35

    36

    38

    39

    11: WPF MVVM 41

    41

    Examples 41

    WPF C # MVVM 41

    43

    44

    46

    MVVM 46

    12: WPF 49

    49

    49

    49

    49

    Examples 49

    49

    49

    50

    13: 51

    51

    51

    IValueConverter IMultiValueConverter ? 51

    () 51

    Examples 51

    - BooleanToVisibilityConverter [IValueConverter] 51

  • 52

    [IValueConverter] 52

    53

    [IMultiValueConverter] 54

    54

    ConverterParameter 54

    55

    [IValueConverter] 55

    MarkupExtension . 56

    IMultiValueConverter 57

    14: 59

    Examples 59

    59

    / 59

    59

    15: UserControls 61

    61

    Examples 61

    ComboBox 61

    16: 64

    64

    64

    Examples 64

    IValueConverter 64

    XAML 65

    17: 66

    66

    66

    Examples 66

    66

    MultiTrigger 66

    DataTrigger 67

  • 18: UI 68

    Examples 68

    UI 68

    19: : 70

    70

    70

    Examples 70

    70

    XAML 70

    20: 72

    72

    72

    Examples 72

    - Hello World 72

    21: 73

    73

    73

    Examples 73

    73

    XAML 78

    22: 79

    79

    79

    79

    Examples 79

    79

    ? 79

    80

    80

    80

    80

  • ? 80

    81

    81

    82

    ? 82

    82

    23: 83

    Examples 83

    Windows 8 Windows 10 83

    .NET Framework 4.6.2 WPF 83

    .NET Framework 4.6.1 WPF 83

    84

    Windows 10 85

    Windows 10 85

    86

  • You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: wpf

    It is an unofficial and free wpf ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official wpf.

    The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

    Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@zzzprojects.com

    https://riptutorial.com/ko/home 1

    http://riptutorial.com/ebook/wpf https://archive.org/details/documentation-dump.7z mailto:info@zzzprojects.com

  • 1: wpf WPF (Windows Presentation Foundation) Windows Microsoft . WPF UWP (Universal Windows Platform) .

    WPF , . XML XAML (eXtensible Application Markup Language) . XAML WPF .

    Windows Forms WPF . , .

    WPF Windows Presentation Foundation (Codename Avalon) . Microsoft .NET Framework . WPF Windows Vista, 7, 8 10 Windows XP Server 2003 .

    4.6.1 - 2015 12

    Examples

    Hello World

    Visual Studio WPF

    → → .1.

    → Visual C # → Windows → WPF .2.

    https://riptutorial.com/ko/home 2

    http://i.stack.imgur.com/qsbmx.png

  • MainWindow.xaml ( → ).3.

    XAML ( ) .4.

    https://riptutorial.com/ko/home 3

    http://i.stack.imgur.com/nj6zZ.png http://i.stack.imgur.com/3E0jz.png

  • Hello world!

    Grid :

    .

  • Title="MainWindow" Height="350" Width="525"> Hello world!

    F5 → . .5.

    wpf : https://riptutorial.com/ko/wpf/topic/820/wpf-

    https://riptutorial.com/ko/home 5

    http://i.stack.imgur.com/LmANq.png https://riptutorial.com/ko/wpf/topic/820/wpf-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0 https://riptutorial.com/ko/wpf/topic/820/wpf-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0 https://riptutorial.com/ko/wpf/topic/820/wpf-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0 https://riptutorial.com/ko/wpf/topic/820/wpf-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0 https://riptutorial.com/ko/wpf/topic/820/wpf-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0

  • 2: " " . . .

    .

    Examples

    , 3 .

    4,4,0,0 . 4,4,4,0 . 4,4,4,4. XAML ( ).

    https://riptutorial.com/ko/home 6

    https://i.stack.imgur.com/rqNOk.png

  • . , ? . 0,4,4,0 . 4,4,4,0, 4,4,0,0 . XAML .

    . 4,0,4,4. 4,0,0,4.

    https://riptutorial.com/ko/home 7

  • ? . ( - ) .

    2,2,2,2. 2,2,2,2. 2,2,2,2. 2,2,2,2 ( ) . XAML .

    https://riptutorial.com/ko/home 8

    https://i.stack.imgur.com/ftdQB.png

  • ... . . . XAML .

    . . . XAML .

  • BorderBrush="DarkGreen" BorderThickness="5"/>

    : " " , " " . . "HalfTheWhiteSpace" .

    2

    ( FontFamily, FontSize )

    TextBox .

    DatePickers, Labels ( ) . TextBlock . . TextBlock . TextBlock ; XAML TextBlock TextBlock .

    ( : ScrollViewer, Border ) .

    .

    " " : https://riptutorial.com/ko/wpf/topic/9407/----

    https://riptutorial.com/ko/home 10

    https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC https://riptutorial.com/ko/wpf/topic/9407/-%EC%A0%88%EB%B0%98-%EA%B3%B5%EB%B0%B1-%EB%94%94%EC%9E%90%EC%9D%B8-%EC%9B%90%EB%A6%AC

  • 3: System.Windows.Controls.WebBrowser WPF .

    ( https : // ) InternetExplorer7 . west-wind.com/posts/2011/may/21/web-browser-control- specifying-the-ie-version ).

    . HTML (!) . ( .)

    " "/ " " . .

    Examples

    BusyIndicator WebBrowser

    WebBrowser XAML . , Busy BusyIndicator . WebBrowser BusyIndicator . :

    System.Windows.Controls.WebBrowser : https://riptutorial.com/ko/wpf/topic/9115/system- windows-controls-webbrowser

    https://riptutorial.com/ko/home 11

    https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https://weblog.west-wind.com/posts/2011/may/21/web-browser-control-specifying-the-ie-version https:/