Programming WPF
Book information
Description
Programming WPF 2nd Table of Contents Forewords First Edition Second Edition Preface Who This Book Is For How This Book Is Organized What You Need to Use This Book Conventions Used in This Book Using Code Examples How to Contact Us Safari® Books Online Ian’s Acknowledgments Chris’s Acknowledgments Hello, WPF WPF from Scratch Building Applications WPF Applications XAML Editing XAML XAML Browser Applications (XBAPs) Content Models XAML Property Element Syntax Layout Grid Layout XAML Attached Property Syntax Controls Data Binding XAML Markup Extensions Data Templates Dependency Properties Resources XAML Namespace Mapping Syntax Styles Animation Control Templates Graphics 3D Documents and Printing Where Are We? Applications and Settings Application Lifetime Explicit Application Creation Application Access Implicit Application Creation Top-Level Windows Application Shutdown Modes Application Events Startup event Activated and Deactivated events DispatcherUnhandledException event SessionEnding event Exit event Application Instancing Single instance applications Other Application Services Application Deployment Simple Publishing The User Experience WPF ClickOnce Specifics Settings Designing Settings Using Settings Integrating Settings with WPF Where Are We? Layout Layout Basics StackPanel WrapPanel DockPanel Grid Column Widths and Row Heights Spanning Multiple Rows and Columns Consistency Across Multiple Grids UniformGrid Canvas Viewbox Common Layout Properties Width and Height MinWidth, MaxWidth, MinHeight, and MaxHeight HorizontalAlignment and VerticalAlignment Margin Padding Visibility FlowDirection Panel.ZIndex RenderTransform and LayoutTransform When Content Doesn’t Fit ScrollViewer Scrollable Region and IScrollInfo Custom Layout Where Are We? Input Routed Events Halting Event Routing Determining the Target Routed Events and Normal Events Attached Events Mouse Input Mouse Input and Hit Testing Mouse State Keyboard Input Keyboard State Ink Input Commands Command Objects Defining commands Using commands in XAML Input Bindings Command Source Command Bindings Enabling and disabling commands Command routing Code-Based Input Handling Versus Triggers Where Are We? Controls What Are Controls? Buttons Slider and Scroll Controls ProgressBar Text Controls Label ToolTip GroupBox and Expander List Controls List View Tree View Menus Toolbars GridSplitter Where Are We? Simple Data Binding Without Data Binding Object Changes UI Changes Data Binding Bindings Implicit Data Source Data Islands Explicit Data Source Binding to Other Controls Value Conversion Editable Value Conversion Validation Custom validation rules Binding Path Syntax Relative Sources Update Source Trigger Debugging Data Binding Where Are We? Binding to List Data Binding to List Data Current Item Getting the current item Navigating between items List Data Targets Display Members, Value Members, and Look-Up Bindings Data Templates Typed data templates DataTemplates and the DataContext List Changes Sorting Default Collection Views Filtering Grouping Declarative Sorting and Grouping Data Source Providers Object Data Provider Asynchronous data retrieval Passing parameters Binding to Relational Data XML Data Source Provider XML data islands XML binding without the data source provider Master-Detail Binding Hierarchical Binding Where Are We? Styles Without Styles Inline Styles Named Styles The Target Type Attribute Reusing Styles Overriding Style Properties Extending Styles Setting Styles Programmatically Element-Typed Styles Element-Typed Styles and Derived Types Data Templates and Styles Data Templates Redux Data Templates with Style Triggers Property Triggers Multiple Triggers Multicondition Property Triggers Data Triggers Multicondition Data Triggers Event Triggers Where Are We? Control Templates Beyond Styles Control Templates and Styles Template Binding Content Presenters Template Triggers Extending Templates Repurposing an existing property Defining a custom dependency property The Control Template Contract Property binding Named parts Content placeholders Placeholders indicated by properties Special-Purpose Elements Examining the Built-in Templates Logical and Visual Trees Data-Driven UI Where Are We? Windows and Dialogs Window Window Look and Feel Window Lifetime Window Location and Size Window Owners Window Visibility and State Dialogs Common Dialogs Available common dialogs Custom Dialogs Dialog look and feel Dialog data exchange Handling OK and Cancel Data validation Modeless dialogs Where Are We? Navigation NavigationWindow Pages Loose XAML Fragment Navigation Page Lifetime Passing Data Between Pages Page Functions Frames XBAPs XBAP Publication and Deployment Navigation to HTML Where Are We? Resources Creating and Using Resources Resource Scope Defining custom system-scope resources Using system-scope resources Resource References Reusing Drawings Resources and Styles Skins and Themes Binary Resources Binary Resources and the Application Class Pack URIs Global Applications Building Localizable Applications with XAML Where Are We? Graphics Graphics Fundamentals Integration Drawing Object Model Resolution Independence Scaling and rotation Resolution, coordinates, and “pixels” Shapes, Brushes, and Pens Composition Shapes Base Shape Class Rectangle Ellipse Line Polyline Polygon Path Bézier curves Combining shapes Path geometry text format Bitmaps Image ImageSource Creating Bitmaps Bitmap Encoders and Decoders Bitmap Effects Brushes and Pens Color SolidColorBrush LinearGradientBrush RadialGradientBrush ImageBrush, DrawingBrush, and VisualBrush TileBrush ImageBrush DrawingBrush VisualBrush Pen Transformations Visual Layer Programming Rendering On Demand Where Are We? Text and Flow Documents Fonts and Text Styles Common Text Properties Fonts and Font Families FontSize Stretch Style Weight Decorations Text Trimming Text Wrapping and Hyphenation Text Alignment Text and the User Interface TextBlock Label and AccessText Flow Documents and Viewer Controls Visual Layer Text Glyph runs FormattedText Glyphs Text Object Model Inline Run Span LineBreak InlineUIContainer Block Paragraph List Table Section BlockUIContainer Figures and Floaters Images Text and Data Binding Coding with the Text Object Model TextPointer Typography Where Are We? Printing and XPS XPS Open Packaging Conventions XPS Document Classes FixedDocumentSequence FixedDocument FixedPage Page sizing Page content limitations Fonts, bitmaps, and other resources Generating XPS Output Printing Fixed Documents Printing Visuals Printing with Document Paginators Asynchronous Printing XPS File Generation Features Package-Level XPS API Core Document Properties Thumbnails Hyperlinks Compression System.Printing PrintQueue PrintServer PrintSystemJobInfo PrintTicket and PrintCapabilities PrintDialog Media Description Displaying Fixed Documents Where Are We? Animation and Media Animation Fundamentals Animation Types IAnimatable Triggers Timelines Hierarchy Duration Repetition Filling Speed Keyframe Animations Path Animations Clocks and Control Controlling Animations with Storyboards Controlling Animations with Clocks Transition Animations Audio and Video Simple Media Playback Using MediaElement in Clock Mode Slipping Where Are We? 3D Graphics 3D Content in a 2D World Cameras Models Geometry3D Materials DiffuseMaterial SpecularMaterial EmissiveMaterial MaterialGroup ModelVisual3D Lights AmbientLight DirectionalLight PointLight SpotLight Textures Transforms TranslateTransform3D ScaleTransform3D RotateTransform3D Transform3DGroup MatrixTransform3D 3D Data Visualization Hit Testing Where Are We? Custom Controls Custom Control Basics Choosing a Base Class Custom Functionality Properties Attached properties Value change notification Change notifications for property consumers Property metadata options Events Attached events Commands Supporting Templates in Custom Controls Property Binding Named Parts Content Placeholders Placeholders Indicated by Properties Default Styles UserControl Adorners AdornerDecorator Where Are We? XAML XAML Essentials Namespaces Generating Classes Properties Children Properties Property Element Syntax Attached Properties Attached properties and the property element syntax Markup Extensions Built-in Markup Extensions NullExtension TypeExtension ArrayExtension StaticExtension StaticResourceExtension DynamicResourceExtension ComponentResourceKey Binding RelativeSource TemplateBindingExtension Code Behind Code in XAML Loading XAML Parsing XAML at Runtime Loading Compiled XAML (BAML) Interoperability WPF and HWNDs Hosting a Windows Form Control in WPF Hosting a WPF Control in Windows Forms Hosting WPF in Native HWND Apps WPF and ActiveX Controls WPF and HTML Limitations of WPF/HWND Interop Airspace Transforms, Events, and Nested Interop Asynchronous and Multithreaded WPF Programming The WPF Threading Model DispatcherObject The Dispatcher Obtaining a Dispatcher Getting Onto the Right Thread with a Dispatcher DispatcherOperation DispatcherTimer Multiple UI Threads and Dispatchers The Event-Based Asynchronous Pattern BackgroundWorker WPF Base Types DispatcherObject DependencyObject Visual Visual3D UIElement FrameworkElement Decorator Panel Shape Control ContentControl HeaderedContentControl UserControl ItemsControl HeaderedItemsControl Selector ContentElement FrameworkContentElement Freezable Animatable Silverlight Why Silverlight? What Is Silverlight? Hello, Silverlight Silverlight XAML Layout Model Namespaces Graphics Mouse Cursors Measuring Text Transformations Animations Silverlight and WPF Development Model Hosting in HTML End-User Installation Handling XAML Errors Event Model Working with XAML Properties The Plug-in Working with the XAML Object Model An Example: Creating a Button Creating Dynamic XAML Controlling Media Controlling Animations Controlling animation execution Delaying storyboards Mixing Silverlight and HTML The Silverlight Downloader ASP.NET and Silverlight Commingling with ASP.NET Dynamic XAML XAML and User Controls A Taste of Silverlight 1.1 Tool Support Expression Toolset Expression Design Expression Blend Expression Media Visual Studio Other Tools Examples in the World Where Are We? Index Color Plates
Similar books
Programming WPF
2007 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF