找传奇、传世资源到传世资源站!

Programming Windows 6th Edition.pdf

  • 资源分类:Windows/学习书籍
  • 发 布 人:房东的猫
  • 文件大小:9709814
  • 文件格式:.pdf
  • 浏览次数:30
  • 下载次数: 0
  • 发布时间:9月16日

  • 标签: window
8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

[Microsoft Press] Programming Windows 6th Edition.pdffrom clipboard
Introduction ......................................................................................................... 9The Versions of Windows 8 ....................................................................................................................................................... 9The Focus of This Book .............................................................................................................................................................10The Approach ...............................................................................................................................................................................12My Setup........................................................................................................................................................................................13The Programming Windows Heritage ..................................................................................................................................13Behind the Scenes .......................................................................................................................................................................16Errata & Book Support ..............................................................................................................................................................17We Want to Hear from You .....................................................................................................................................................17Stay in Touch ................................................................................................................................................................................17Chapter 1: Markup and Code ..........................................................................18The First Project ...........................................................................................................................................................................18Graphical Greetings ....................................................................................................................................................................24Variations in Text .........................................................................................................................................................................28Media As Well ..............................................................................................................................................................................36The Code Alternatives ...............................................................................................................................................................37Images in Code ............................................................................................................................................................................41Not Even a Page ..........................................................................................................................................................................43Chapter 2: XAML Syntax ..................................................................................45The Gradient Brush in Code ....................................................................................................................................................45Property Element Syntax ..........................................................................................................................................................48Content Properties......................................................................................................................................................................51The TextBlock Content Property.............................................................................................................................................55Sharing Brushes (and Other Resources) ...............................................................................................................................57Resources Are Shared ................................................................................................................................................................61A Bit of Vector Graphics ............................................................................................................................................................62Stretching with Viewbox ...........................................................................................................................................................71Styles ...............................................................................................................................................................................................74A Taste of Data Binding ............................................................................................................................................................803Chapter 3: Basic Event Handling .................................................................... 83The Tapped Event ........................................................................................................................................................................83Routed Event Handling .............................................................................................................................................................86Overriding the Handled Setting .............................................................................................................................................92Input, Alignment, and Backgrounds .....................................................................................................................................93Size and Orientation Changes ................................................................................................................................................97Bindings to Run? .......................................................................................................................................................................101Timers and Animation .............................................................................................................................................................103Chapter 4: The Border Element ..................................................................... 111The Border Element ..................................................................................................................................................................111Rectangle and Ellipse ...............................................................................................................................................................115The StackPanel ...........................................................................................................................................................................117Horizontal Stacks .......................................................................................................................................................................121WhatSize with Bindings (and a Converter) .......................................................................................................................124The ScrollViewer Solution .......................................................................................................................................................128Layout Weirdness or Normalcy? ..........................................................................................................................................134Making an E-Book ....................................................................................................................................................................135Fancier StackPanel Items ........................................................................................................................................................138Deriving from UserControl.....................................................................................................................................................141Creating Windows Runtime Libraries .................................................................................................................................143The Wrap Alternative ...............................................................................................................................................................146The Canvas and Attached Properties .................................................................................................................................148The Z-Index .................................................................................................................................................................................153Canvas Weirdness .....................................................................................................................................................................153Chapter 5: Control Interaction ...................................................................... 155The Control Difference ............................................................................................................................................................155The Slider for Ranges ...............................................................................................................................................................157The Grid........................................................................................................................................................................................161Orientation and Aspect Ratios ..............................................................................................................................................168Slider and the Formatted String Converter ......................................................................................................................1714Tooltips and Conversions .......................................................................................................................................................171Sketching with Sliders ..............................................................................................................................................................174The Varieties of Button Experience .....................................................................................................................................176Defining Dependency Properties .........................................................................................................................................184RadioButton Tags ......................................................................................................................................................................194Keyboard Input and TextBox .................................................................................................................................................200Touch and Thumb.....................................................................................................................................................................204Chapter 6: WinRT and MVVM .......................................................................211MVVM (Brief and Simplified).................................................................................................................................................211Data Binding Notifications .....................................................................................................................................................212A View Model for ColorScroll ................................................................................................................................................214Syntactic Shortcuts ...................................................................................................................................................................219The DataContext Property .....................................................................................................................................................222Bindings and TextBox...............................................................................................................................................................224Buttons and MVVM ..................................................................................................................................................................230The DelegateCommand Class ................................................................................................................................................231Chapter 7: Building an Application ..............................................................238Commands, Options, and Settings ......................................................................................................................................238The Segoe UI Symbol Font.....................................................................................................................................................240The Application Bar ..................................................................................................................................................................246Popups and Dialogs .................................................................................................................................................................248Windows Runtime File I/O .....................................................................................................................................................251Await and Async ........................................................................................................................................................................258Calling Your Own Async Methods .......................................................................................................................................260Controls for XamlCruncher ....................................................................................................................................................263Application Settings and Isolated Storage........................................................................................................................278The XamlCruncher Page .........................................................................................................................................................282Parsing the XAML......................................................................................................................................................................286XAML Files In and Out .............................................................................................................................................................288The Settings Dialog ..................................................................................................................................................................2925Beyond the Windows Runtime .............................................................................................................................................298Chapter 8: Animation ..................................................................................... 299The Windows.UI.Xaml.Media.Animation Namespace ....................................................................................................299Animation Basics .......................................................................................................................................................................300Animation Variation Appreciation .......................................................................................................................................303Other Double Animations ......................................................................................................................................................310Animating Attached Properties ............................................................................................................................................317The Easing Functions ...............................................................................................................................................................320All-XAML Animations...............................................................................................................................................................329Animating Custom Classes .....................................................................................................................................................333Key Frame Animations.............................................................................................................................................................337The Object Animation ..............................................................................................................................................................341Predefined Animations and Transitions .............................................................................................................................343Chapter 9: Transforms .................................................................................... 347A Brief Overview ........................................................................................................................................................................347Rotation (Manual and Animated) ........................................................................................................................................350Visual Feedback .........................................................................................................................................................................356Translation ...................................................................................................................................................................................358Transform Groups .....................................................................................................................................................................361The Scale Transform .................................................................................................................................................................366Building an Analog Clock .......................................................................................................................................................370Skew...............................................................................................................................................................................................375Making an Entrance .................................................................................................................................................................378Transform Mathematics ..........................................................................................................................................................379The CompositeTransform .......................................................................................................................................................386Geometry Transforms ..............................................................................................................................................................389Brush Transforms .......................................................................................................................................................................391Dude, Where’s My Element? .................................................................................................................................................395Projection Transforms ..............................................................................................................................................................398Deriving a Matrix3D .................................................................................................................................................................4056Chapter 13: Touch, Etc. ...................................................................................416A Pointer Roadmap ..................................................................................................................................................................417A First Dab at Finger Painting ...............................................................................................................................................420Capturing the Pointer ..............................................................................................................................................................423Editing with a Popup Menu ...................................................................................................................................................431Pressure Sensitivity ...................................................................................................................................................................435How Do I Save My Drawings? ...............................................................................................................................................438A Touch Piano ............................................................................................................................................................................439Manipulation, Fingers, and Elements .................................................................................................................................444Working with Inertia ................................................................................................................................................................452An XYSlider Control ..................................................................................................................................................................456Centered Scaling and Rotation .............................................................................................................................................462Single-Finger Rotation.............................................................................................................................................................466Chapter 14: Bitmaps .......................................................................................473Pixel Bits .......................................................................................................................................................................................474Transparency and Premultiplied Alphas ............................................................................................................................480A Radial Gradient Brush ..........................................................................................................................................................485Loading and Saving Image Files...........................................................................................................................................493In Progress ...................................................................................................................................................................................503Completed ...................................................................................................................................................................................503Chapter 15: Printing .......................................................................................504Basic Printing ..............................................................................................................................................................................504Printable and Unprintable Margins .....................................................................................................................................511The Pagination Process ...........................................................................................................................................................515Custom Printing Properties....................................................................................................................................................522Printing a Monthly Planner ....................................................................................................................................................527Printing a Range of Pages ......................................................................................................................................................537Where to Do the Big Jobs? ....................................................................................................................................................5487Chapter 16: Going Native .............................................................................. 549An Introduction to P/Invoke..................................................................................................................................................549Some Help ...................................................................................................................................................................................555Time Zone Information ...........................................................................................................................................................555A Windows Runtime Component Wrapper for DirectX ...............................................................................................577About the Author ........................................................................................... 578

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复