Index
Below is a list of all posts created so far for the 2,000 Things You Should Know About WPF blog.
Total number of posts = 1,201
Animation
- #7 – Property-Based Animation
- #686 – Using Animation to Make an Image Pulse
- #777 – Animating a Transform
- #778 – Animating a Scale Transform
- #779 – Animating a Rotation Transform
- #1,164 – Using Animation to Bounce a Control
Basics
- #1 – What is WPF?
- #2 – Rendering Tiers
- #5 – Vector Graphics and Resolution Independence
- #6 – WPF Layout
- #9 – Styles
- #10 – Control Templates
- #11 – Commands
- #12 – Markup and Code Behind
- #13 – Benefits of Markup
- #14 – Page-Based Navigation
- #15 – WPF vs. Silverlight and ASP.NET
- #16 – Use Direct3D for Hard-Core 3D Applications
- #17 – WPF Release History
- #18 – Silverlight and WPF Differences
- #19 – The System.Windows Namespace
- #20 – Standalone and Browser-Hosted Applications
- #23 – WPF Units
- #26 – WPF Architecture
- #30 – Visual Class
- #31 – UIElement Class
- #32 – FrameworkElement
- #33 – Control Class
- #36 – Five Types of WPF Applications
- #38 – The Application Class
- #39 – The Window Class
- #40 – Application Lifetime
- #41 – Window Events at Startup and Shutdown
- #42 – WPF Application Entry Point
- #43 – What Happens in WPF Main() Function
- #44 – Application is a Singleton
- #45 – Two Ways to Create WPF Controls
- #46 – Processing Command Line Arguments in a WPF Application
- #47 – Detecting When the Windows Session Is Ending
- #48 – Handling an Application’s Exit Event
- #49 – Unhandled Exceptions
- #50 – Application-Scoped Properties
- #51 – Resources
- #52 – Defining and Using Application-Scoped Resources
- #53 – Accessing Application-Scoped Resources from Code
- #54 – An Application’s Main Window
- #55 – Application.ShutdownMode
- #63 – Three Places to Make Changes
- #64 – Visual Studio Creates XAML For You
- #108 – The Logical Tree
- #109 – Navigating the Logical Tree in Code
- #110 – An Application for Viewing a WPF Logical Tree
- #111 – The Visual Tree
- #112 – Navigating the Visual Tree in Code
- #113 – An Application for Viewing a WPF Visual Tree
- #114 – How Dependency Properties Are Implemented
- #116 – Dependency Property Values Are Stored in the DependencyObject
- #117 – Registering a Dependency Property
- #118 – Don’t Add Code to Dependency Property Getter/Setter
- #119 – Read and Write Dependency Property Values from XAML or Code
- #120 – Clearing a Dependency Property Value
- #121 – Being Notified When the Value of a Dependency Property Changes
- #122 – Validating a Dependency Property
- #123 – Coercing a Dependency Property
- #124 – One Example of WPF’s Use of Dependency Property Callbacks
- #125 – Responding to Changes in Dependency Properties for WPF Objects
- #127 – Reacting to a Dependency Property Change Using Triggers
- #129 – Properties Changed by Triggers Are Automatically Reset
- #130 – WPF Supports Three Types of Triggers
- #131 – Dependency Properties Inherit Values from Higher Up in the Logical Tree
- #132 – Inherited Property Values Pass Through All Elements
- #168 – A More Complete Class Hierarchy
- #169 – The Base Element Classes
- #170 – Functionality That The Base Element Classes Provide
- #171 – Other Base Classes – Freezable and Animatable
- #173 – You Can Put Freezable Objects Into a Read-Only State
- #175 – Freeze Graphical Objects That You Don’t Intend to Modify
- #176 – Two Kinds of Templates
- #197 – Override Application Class Methods for Standard Events
- #198 – Creating and Showing Additional Windows
- #199 – An Application’s Windows Property Lists All of Its Windows
- #200 – Parent/Child Relationships Between Windows
- #201 – Showing a Modal Dialog Using ShowDialog
- #202 – An Example of Modal/Modeless Dialogs
- #203 – Window Size and Location Are Specified in Device Independent Units
- #204 – Detecting Key Presses in a WPF Window
- #205 – The WPF GUI Pipeline
- #206 – WPF Applications Use an Event-Driven Paradigm
- #610 – Application Event Sequence
- #611 – Set Application Exit Code in Exit Event Handler
- #612 – Application Event Sequence for Page-Based Applications
- #759 – Device-Independent Units (DIPs)
- #1,098 – OnLastWindowClose Shutdown Mode
- #1,099 – OnMainWindowClose Shutdown Mode
- #1,100 – OnExplicitShutdown Shutdown Mode
- #1,101 – Defining a Handler for Unhandled Exceptions
- #1,102 – Shutting Application Down after Handling Unhandled Exception
- #1,105 – Using Application’s Windows Collection to Interact with Other Windows
Blend
- #185 – Creating a WPF Application Using Blend
- #186 – When to Use Blend (vs. Visual Studio)
- #188 – Adding Controls to a Window Using Blend
- #190 – Adding an Event Handler to a Control Using Blend
- #192 – Setting a Control’s Properties Using Blend
- #193 – You Can Have a Project Open in Blend and Visual Studio at the Same Time
- #194 – Hello WPF World, Love Blend
- #287 – Adding Controls to a Window in Blend by Editing XAML
- #289 – Editing WPF Code-Behind in Blend
- #295 – Blend Provides Intellisense
- #414 – Creating a Grid in Expression Blend
- #427 – Changing Margins from Within Blend
- #428 – Setting Other Layout Properties from Within Blend
- #433 – Preservation of Margins While Editing Grid in Blend
- #434 – Canvas Layout Mode in Blend
- #511 – Blend Basics – The Tools Panel
- #512 – Areas of the Screen in Blend
- #513 – Using the Selection Tool in Blend
- #514 – Different Ways to Select Objects in Blend
- #515 – Zooming In and Out on the Artboard
- #516 – Drawing a Path in Blend with the Pen Tool
- #517 – XAML Output when Drawing with the Pen Tool
- #518 – Change Points in a Path Using the Direct Selection Tool
- #519 – Adding Points to an Existing Path
- #520 – Drawing a Path with the Pencil Tool
- #521 – Pen and Pencil Tools Both Generate Path Elements
- #522 – Keyboard Shortcuts in Blend
- #523 – Panning the Artboard in Blend
- #524 – Using the Zoom Tool to Zoom on the Artboard
- #525 – Use the Eyedropper Tool to Copy Colors
- #527 – Colorful Expression Add-in Connects to Adobe Kuler
- #528 – Using the Eyedropper Tool in the Color Editor
- #529 – Using the the Paint Bucket Tool to Copy Attributes
- #530 – Creating a Linear Gradient in Blend
- #531 – Adjusting a Gradient Using the Gradient Tool
- #532 – Using the Gradient Tool to Move Gradient Stops
- #533 – Using the Gradient Tool to Modify a Radial Gradient
- #534 – Drawing Shapes with the Shape Tools in Blend
- #535 – Drawing Symmetrical Shapes in Blend
- #536 – Adding Layout Panels Using the Tools Panel in Blend
- #537 – Changing a Layout Panel to a Different Type
- #538 – XAML End Tags Are Automatically Added as Needed in Blend
- #539 – Adding Text-Based Elements in Blend
- #540 – Adding Common Controls in Blend
- #541 – Adding Elements from The Assets Panel in Blend
- #542 – Most Recently Used Asset
- #543 – Searching for Controls in the Assets Panel
- #544 – Objects and Timeline Panel Shows the Logical Tree
- #545 – Locking Objects to Prevent Changes
- #546 – Adding Gradient Stops in Blend
- #547 – Specifying Colors by Name in Blend
- #548 – Change the Offset of a Gradient Stop in Blend
- #549 – More Colors Than You Know What to Do With
- #550 – Converting a Brush into a Resource in Blend
- #551 – Resources Are Listed under the Resources Tab in Blend
- #552 – Setting a Property to Use an Existing Resource
- #553 – Setting an Alpha Value in Blend
- #554 – Using an Opacity Mask
- #555 – Creating a Radial Opacity Mask
- #558 – Reversing a Gradient Using Blend
- #559 – Drawing a Masked Gradient in Blend
- #565 – Workaround for Inability to Scroll ScrollViewer in Design Mode in Blend
- #566 – Setting Properties of an Effect in Blend
- #567 – Setting Layout Related Properties in Blend
- #568 – Setting Text-Related Properties in Blend
- #569 – Setting Transforms from within Blend
- #570 – Use Blend to Search for Properties
- #571 – Moving Windows Around in Blend
- #572 – You Can Move Windows Outside of the Blend GUI
- #573 – Workspaces in Blend
Brushes
- #556 – Clipping to a Border Using an Opacity Mask
- #557 – Using an Image As an Opacity Mask
- #560 – Using a Radial Gradient to Create a 3D Effect
Commands
- #342 – Binding a Button to a Command
- #343 – Associating Multiple Controls with the Same Command
- #344 – The CommandBinding CanExecute Event Determines Whether a Button is Enabled
- #345 – WPF Command Model is Preferred over Traditional Event Handler Model
- #346 – No Need to Set Header Property for MenuItem When Using Commands
- #347 – How to Set Content Property for Button Based on Command
- #348 – Predefined Command Objects, Part I
- #349 – Predefined Command Objects, Part II
- #1,078 – Defining a Command Binding Using Lambda Expressions
- #1,079 – Executing a Command Programmatically
- #1,080 – Command Text for Preexisting Commands Is Automatically Localized
- #1,081 – Adding CommandBinding to Top-Level CommandBindings
- #1,082 – Adding CommandBindings to Individual UI Elements
- #1,083 – Setting CommandBindings in XAML
- #1,084 – A KeyBinding Binds a Command to a Key
- #1,085 – Input Bindings Don’t Require that Element Binds to Command
- #1,086 – Defining a Key Binding in XAML
- #1,087 – Associating a Key Binding with Multiple Modifier Keys
- #1,091 – Using a CommandTarget to Change the Source of a Routed Command
- #1,092 – An Example of Using a CommandTarget
- #1,093 – Intercepting a Command Before It Executes
- #1,095 – Creating and Using a Custom Command
- #1,096 – The RoutedUICommand Adds a Text Property
- #1,097 – Getting Items in Context Menu to Correctly Use Command Binding
- #1,199 – Complete WPF Command Example
Controls
- #21 – WPF Control Sampler
- #22 – Layout Controls
- #27 – Class Hierarchy
- #28 – DispatcherObject
- #34 – ContentControl
- #35 – ItemsControl
- #177 – A Content Presenter Is a Placeholder for a Content Control’s Content
- #178 – A Control Can Have Both a Control Template and A Data Template
- #179 – Panel Controls Contain UIElement Children
- #207 – Setting a Control’s Background Color
- #209 – Specifying a Color Where a Brush Is Expected in XAML
- #243 – Display Text Using a Label Control
- #244 – Use a TextBlock Element for Richer Formatting
- #245 – Easily Inline Text Formatting Codes with TextBlock Control
- #246 – Use FlowDocument Control to Host Entire Documents
- #247 – Types of Blocks that You Can Use in a FlowDocument
- #248 – Creating a List in a FlowDocument
- #249 – Creating a Table in a FlowDocument
- #250 – Including a Section Block in a FlowDocument
- #251 – Embedding an UIElement Within a FlowDocument
- #252 – FlowDocument Flows its Content Automatically
- #253 – FlowDocument is Hosted in a FlowDocumentReader Automatically
- #254 – Types of Containers for Hosting a FlowDocument
- #255 – Flow Text Around an Image in a FlowDocument
- #256 – Use a FixedDocument to Display Content at Fixed Locations
- #257 – TextBox Control Allows Basic Text Entry and Editing
- #258 – RichTextBox Allows Richer Formatting than TextBox
- #259 – Setting Typography Properties for Text Rendered with an OpenType Font
- #267 – Think Twice Before You Subclass a Control
- #269 – Automatically Sizing a Window to Fit Its Contents
- #270 – Minimum and Maximum Window Size
- #271 – Changing a Window’s Resize Behavior
- #272 – Displaying a Border Around a Window
- #273 – Display a Picture Using an Image Control
- #274 – Embed Images into Your Project as Binary Resources
- #275 – Load a Loose Image File into an Image Control
- #276 – Change Image Sizing Using the Stretch Property
- #277 – Images May Have Embedded DpiX and DpiY Information
- #278 – Allow an Image to Get Bigger, But Not Smaller (or Vice Versa)
- #279 – Adding a Border Around an Image Control
- #280 – Alignment Properties for an Image
- #281 – Give an Image Control More Room with a Margin
- #282 – The Margin Property Stores a Thickness Value
- #283 – A Window Can Have Only a Single Child Element
- #284 – Making an Image Translucent Using the Opacity Property
- #285 – Rotating an Image
- #286 – Adding Controls to a Window in Visual Studio by Editing XAML
- #296 – Controls that Derive from the Control Class
- #297 – Create a Mirror Image of a Control or Image
- #298 – Button Basics – Content and Click
- #299 – Controls Do Not Need a Name
- #300 – Button is a ContentControl
- #301 – Using Access Keys
- #302 – Access Keys for Controls that Don’t Have a Caption
- #303 – Define an Access Key for a Control Using an Underline
- #304 – Defining an Access Key That Gives Focus to a Different Control
- #305 – Guidelines for Defining Access Keys
- #306 – Keyboard Focus
- #307 – Giving Focus to a Control When an Application Starts
- #308 – Checking to See Which Control Has Keyboard Focus
- #309 – Keyboard Focus vs. Logical Focus
- #310 – Give a Control Logical Focus
- #311 – Giving Focus to a Control, Part II
- #312 – Specify a Default Button in a Window
- #313 – Specify a Cancel Button in a Window
- #314 – Typical Usage for Default and Cancel Buttons
- #315 – Setting IsDefault and IsCancel to the Same Button
- #316 – Changing the ClickMode of a Button
- #317 – Label Basics
- #318 – TextBox Basics
- #328 – Controls that Make Use of the Padding Property
- #338 – Setting a Control’s Foreground Color
- #339 – Wrapping a Button’s Text Content to Multiple Lines
- #340 – Create a Button with an Image
- #341 – Create a Button with an Image and Text
- #350 – CheckBox Basics
- #351 – Binding a CheckBox’s IsChecked Property to a Boolean Variable
- #352 – Use IsThreeState Property to Create a CheckBox that Has an Indeterminate State
- #353 – Binding a Three-State CheckBox to a Nullable Bool
- #354 – Use Three-State CheckBox to Show State of Other CheckBoxes
- #355 – Implementing Three-State CheckBox Dependent Behavior
- #356 – RadioButton Basics
- #357 – RadioButton is a ContentControl
- #358 – Binding a RadioButton to an Enumerated Type
- #359 – ToggleButton Basics
- #360 – Binding a ToggleButton’s IsChecked Property to a Boolean Variable
- #361 – Creating a ToggleButton Whose Content Is an Image
- #362 – Changing the Text on a ToggleButton When a User Clicks On It
- #363 – Calendar Control Basics
- #364 – Allowing a User to Select Multiple Dates in a Calendar Control
- #365 – SelectedDate and SelectedDates Properties of Calendar Control
- #366 – Binding a Calendar Control’s SelectedDate Property to a Nullable DateTime
- #367 – You Can’t Bind to a Calendar Control’s SelectedDates Property
- #368 – Specifying Blackout Dates in a Calendar Control
- #371 – Specifying a Default Date for a Calendar Control to Display
- #372 – Defining Tooltips for GUI Elements
- #373 – Creating More Complex Tooltips
- #374 – Using a Tooltip to Display the Full Contents of a TextBox
- #375 – Binding Something in a Tooltip to a Property on the Parent Control
- #376 – Getting Text to Wrap in a Tooltip
- #377 – Reuse Tooltips by Defining Them as Resources
- #378 – Positioning Tooltips
- #379 – Using a Tooltip As a Magnifier
- #380 – The Frame Control Can Host Web Content
- #381 – Loading .rtf Files Into a RichTextBox
- #382 – Persisting RichTextBox Contents as XAML
- #406 – Creating New Controls by Layering One on Top of Another
- #435 – Use Border Element to Draw Border Around Elements
- #436 – Using a Drop Shadow with a Border
- #437 – Showing Rounded Corners on a Border
- #438 – Border Element Can Have a Background
- #439 – Using a DropShadow with a Border, part II
- #474 – Hiding a ComboBox Selection Highlight When the Mouse Moves off Item
- #481 – You Can Draw On an InkCanvas Control with the Mouse
- #482 – You Can Include Other Controls Inside an InkCanvas
- #483 – InkCanvas MinHeight and MinWidth
- #484 – InkCanvas Contains a Collection of Strokes
- #486 – InkCanvas Supports Different Editing Modes
- #487 – Specify DrawingAttributes When Drawing to an InkCanvas
- #488 – You Can Change Drawing Attributes of Existing Strokes in an InkCanvas
- #489 – Using the InkCanvas to Recognize Gestures, part I
- #490 – Using the InkCanvas to Recognize Gestures, part II
- #491 – Displaying a Hyperlink
- #493 – Setting the Visibility of a User Interface Element
- #499 – Interacting with the Control That Initiated an Event
- #504 – GroupBox Basics
- #505 – The Header of a GroupBox Can Be Anything
- #506 – Using a ComboBox as GroupBox Header
- #507 – Expander Control Lets you Expand/Collapse a Set of Controls
- #508 – Displaying a Spinning Busy Indicator
- #509 – Displaying a Busy Indicator in a Data Template
- #510 – The Header of an Expander Can Be Anything
- #577 – You Can Change DockPanel.Dock Property at Runtime
- #623 – Focusable Property Indicates Whether a Control Can Receive Focus
- #634 – Modifying Text in the TextChanged Event
- #639 – Default Tab Order Is Sensible
- #640 – Set the TabIndex Property to Change Tab Order
- #641 – The Difference Between IsTabStop and Focusable
- #642 – Focusable and IsTabStop in Combination
- #643 – Disabled Controls Cannot Get Focus
- #644 – Disabling and Hiding Controls
- #663 – How IsMouseOver Works for Nested Elements
- #715 – Using the Thumb Control to Drag Objects on a Canvas
- #716 – Using a Border As a Visual Indication That a Control Can Be Dragged
- #725 – Make Use of the Extended WPF Toolkit
- #726 – Sample Controls from the Extended WPF Toolkit
- #809 – You Can Use a Brush for a Control’s Background
- #810 – Setting Foreground and Background Properties from Code
- #811 – Setting Color Values in Code Based on System Colors
- #812 – Use TextDecorations Property to Underline or Strike Through Text
- #813 – Applying TextDecorations in the Middle of a Block of Text
- #828 – ListView and GridView Data Binding Example
- #833 – CheckBox is a ContentControl
- #834 – Displaying Custom Content on a TabControl’s Tabs
- #835 – Displaying Custom Content in a GroupBox Header
- #836 – Setting a ContentControl’s Content to a CLR Object
- #837 – A Window Cannot Be a Child of a ContentControl
- #838 – Using a Label’s Access Key to Give Focus to Another Control
- #839 – A Label’s Target Could Have Its Own Label
- #840 – Access Keys Should Be Unique within A Window
- #841 – Display Underlines for Access Keys at All Times
- #842 – The Differences Between Label and TextBlock
- #843 – Text Justification in a TextBlock
- #844 – The TextBlock Supports Hyphenation
- #845 – Display Ellipsis in TextBlock to Indicate that Content Doesn’t Fit
- #846 – Including an Underscore Character in a Label
- #847 – Default Button Behavior Depends on Focus
- #848 – IsDefaulted vs. IsDefault for a Button
- #849 – You Can Hold a RepeatButton Down
- #850 – Specifying a Delay and Interval for a RepeatButton
- #851 – Using RepeatButtons to Move Something
- #852 – Setting a Three-State CheckBox to an Indeterminate Value
- #853 – A CheckBox Can Always Be in an Indeterminate State
- #854 – Clicked vs. Checked/Unchecked Events for CheckBox
- #855 – RadioButtons Are Grouped Based on their Container
- #856 – Placing RadioButtons in a GroupBox
- #857 – Manually Grouping RadioButtons
- #858 – How to Set Properties for a Tooltip
- #859 – Changing the Amount of Time That a ToolTip Is Shown For
- #860 – Making a Tooltip Partially Transparent
- #861 – Tooltip Delays and Timing
- #862 – Changing Default Tooltip Delay for all Applications
- #863 – Tooltips Are Normally Not Shown when a Control Is Disabled
- #864 – Changing the Look of a ToolTip with a Control Template
- #865 – ToolTip Can Extend Beyond Window Boundaries
- #866 – Displaying a Popup Window
- #867 – Controlling Whether a Popup Is Open Using Data Binding
- #868 – A Popup Stays Open By Default
- #869 – Don’t Leave a Popup Window Open
- #870 – Popup Is a ContentControl
- #871 – Popup Control Automatically Sizes to Fit Its Content
- #872 – Animating a Popup
- #873 – Using a Popup Rather than a Tooltip
- #874 – Setting the Background for a Popup
- #875 – Popup Control Doesn’t Require a Border
- #876 – Default Popup Placement
- #877 – Placing a Popup Relative to Another Control
- #878 – Options for Positioning a Popup Relative to Another Control
- #879 – Positioning a Popup Relative to the Mouse
- #880 – Adding an Offset When Positioning a Popup
- #881 – Positioning a Popup Relative to an Arbitrary Rectangle
- #882 – Popup Placement at Screen Boundaries
- #883 – ScrollViewer Is a ContentControl
- #884 – Making a StackPanel Scroll More Intelligently
- #885 – Wrapping a Grid in a ScrollViewer
- #886 – Wrapping a Canvas in a ScrollViewer
- #887 – The Difference between Disabled and Hidden Scrollbar Visibility
- #888 – Different Ways to Scroll Content in a ScrollViewer
- #889 – Scrolling a ScrollViewer from Code
- #890 – Bringing a Control into View within a ScrollViewer
- #891 – Changing the Border of a GroupBox
- #892 – Changing the Font for Everything within a GroupBox
- #893 – Creating a GroupBox with a Border But No Header
- #894 – Creating a GroupBox with a Header But No Border
- #895 – Adding a Watermark to a GroupBox
- #896 – A TabControl Groups Content into a Series of Pages
- #897 – Content on a TabItem Does Not Automatically Wrap
- #898 – Setting the Text that Appears on a TabItem
- #899 – Displaying Multiple Controls on a TabControl’s Tabs
- #900 – Changing the Font Used in a TabControl
- #901 – Scrolling Content within a TabControl
- #902 – The TabControl Automatically Creates Multiple Rows of Tabs
- #903 – Placing Tabs on Different Sides of a TabControl
- #904 – Placing RadioButtons in a TabControl
- #905 – Executing Some Code when a User Changes Tabs on a TabControl
- #906 – Programmatically Changing the Current Tab on a TabControl
- #907 – Binding a TabControl to a List of Objects, part I
- #908 – Binding a TabControl to a List of Objects, part II
- #909 – Binding a TabControl to a List of Objects, part III
- #910 – Using Data Binding to Control the Currently Selected Tab of a TabControl
- #911 – Use ItemTemplate to Control Content on Tabs
- #912 – Expanding an Expander Will Trigger Layout
- #913 – Changing the Direction that an Expander Expands
- #914 – Drawing a Border Around an Expander
- #915 – Delaying Generation of Expander Content
- #916 – Scrolling Content within an Expander Control
- #917 – Changing Something when an Expander Is Expanded
- #918 – Limiting How Much Text a User Can Enter into a TextBox
- #919 – Changing the Border of a TextBox
- #920 – TextBox Sizes to Fit Its Content
- #921 – Keyboard Shortcuts Available in a TextBox Control
- #922 – Mouse Shortcuts Available in a TextBox Control
- #923 – Text Wrapping in a TextBox
- #924 – TextBox Wrap vs. WrapWithOverflow
- #925 – Scrolling Through TextBox Text That Doesn’t Wrap
- #926 – Text Containing Embedded Carriage Returns Wraps Automatically
- #927 – Limiting the Size of a TextBox
- #928 – TextBox.MinLines Doesn’t Size Properly on Startup
- #929 – Allowing Multiline Input in a TextBox
- #930 – LineCount Property Indicates Number of Lines in TextBox
- #931 – Scrolling Text in a TextBox from Code
- #932 – Making a TextBox Read-Only or Disabled
- #933 – Cut/Copy/Paste Functionality in a TextBox
- #934 – TextBox Has Built-In Undo Functionality
- #935 – Setting an Undo Limit for a TextBox
- #936 – TextBox Properties that Reflect Currently Selected Text
- #937 – Selecting Text in a TextBox from Code
- #938 – Changing the Selected Text Color in a TextBox
- #939 – Retrieving Individual Lines of Text from a TextBox
- #940 – Easy Selection of Entire Words in a TextBox
- #941 – Forcing Uppercase or Lowercase in a TextBox
- #942 – Text Justification in a TextBox
- #943 – Turning on Spell Checking within a TextBox
- #944 – Entering Special Characters into a TextBox
- #945 – A Strategy for Limiting Allowed Text in a TextBox
- #947 – Intercepting Paste Operations in a TextBox
- #948 – Complete Example of Limiting TextBox Input
- #949 – Add a Custom Dictionary for Spell Checking in a TextBox
- #950 – PasswordBox Allows Entering a Password
- #957 – A Survey of Some List-Based Controls
- #958 – Three Ways to Populate a List Control
- #959 – ListBox Basics
- #960 – A ListBox Can Store Objects of Different Types
- #961 – A ListBox Has Three Available Selection Modes
- #969 – Items Property of ListBox Contains List of Items
- #970 – Avoid Working Directly with Items Collection
- #971 – Items Property is a Content Property
- #972 – How ListBox Items Are Rendered
- #973 – Keyboard Shortcuts for a ListBox
- #974 – Properties for Retrieving Selected Items in a ListBox
- #975 – SelectedValue and SelectedValuePath for a ListBox
- #976 – SelectedItem Binding on an ItemsControl is Two-Way
- #977 – DisplayMemberPath Indicates Property to Use for Displaying Bound Items
- #978 – Discovering Whether an Item in a ListBox Is Selected
- #979 – Selecting Items in a ListBox Programmatically
- #980 – Binding ListBox Selection to Property on Bound Object
- #981 – Including a CheckBox with Each Item in a ListBox
- #982 – Executing Code When Selected Items in a ListBox Change
- #983 – Using a CollectionViewSource to Sort Items in a ListBox
- #984 – Grouping Items in a ListBox with a CollectionViewSource
- #985 – Displaying Expandable Groups within a ListBox
- #986 – Filtering a ListBox Using a CollectionViewSource
- #987 – CollectionViewSource Updates on Refresh or Change to Collection
- #988 – Enabling Live Sorting in a CollectionViewSource
- #989 – Enabling Live Filtering in a CollectionViewSource
- #990 – Typing Text to Select an Item in a ListBox
- #991 – Specifying which Field Is Used for Finding an Item by Typing
- #992 – Scrolling an Item in a ListBox into View
- #993 – Default Control Template for a ListBox
- #995 – ListBox Uses UI Virtualization by Default
- #996 – Turning off UI Virtualization in a ListBox
- #998 – Orient a ListBox Horizontally
- #999 – Using a Canvas as the Items Panel for a ListBox
- #1,000 – Displaying the Contents of a ListBox in a Circle
- #1,001 – Setting an Alternating Background Color in an ItemsControl
- #1,002 – Using Larger Values for AlternationCount in an ItemsControl
- #1,003 – Set CanContentScroll to False for Smooth Scrolling in a ListBox
- #1,004 – Setting CanContentScroll Disables Virtualization
- #1,005 – Enabling Deferred Scrolling for Better Performance
- #1,006 – Scrollbars in a ListBox Appear as Needed
- #1,007 – Changing Scrollbar Settings for a ListBox
- #1,008 – ComboBox Basics
- #1,009 – ComboBox Data Binding Basics, Part I
- #1,010 – ComboBox Data Binding Basics, Part II
- #1,011 – ComboBox Data Binding Basics, Part III
- #1,012 – Using a Different Data Template for the Face of a ComboBox
- #1,013 – Typing Text to Select an Item in a ComboBox
- #1,014 – Typing Text to Select an Item in a ComboBox, Part II
- #1,015 – Typing Text to Select an Item in a ComboBox, Part III
- #1,016 – Displaying a Collection of Items in a WrapPanel
- #1,017 – Scaling Items in a List Using a Slider
- #1,018 – Slider Basics
- #1,019 – Constraining a Slider to Integer Values
- #1,020 – Displaying Tick Marks on a Slider
- #1,021 – Two Ways to Position Tick Marks on a Slider
- #1,022 – Render Tick Marks in a Different Color
- #1,023 – Displaying a Tooltip that Shows the Value of a Slider
- #1,024 – Making a Slider Cycle through Values of an Enumerated Type
- #1,025 – Small and Large Changes to the Value of a Slider
- #1,026 – Horizontal and Vertical Sliders
- #1,027 – Displaying a Subrange on a Slider
- #1,028 – ProgressBar Basics
- #1,029 – Simple ProgressBar Example
- #1,030 – Displaying an Indeterminate Progress Bar
- #1,031 – Update a ProgressBar from a Background Thread
- #1,033 – ProgressBar Can Be Horizontal or Vertical
- #1,034 – Limiting the Range of Selectable Dates in a Calendar
- #1,035 – DatePicker Basics
- #1,036 – Date Formats in the DatePicker Control
- #1,037 – Entering Text Manually into a DatePicker
- #1,038 – Another Way to Prevent Certain Dates from Being Selected
- #1,039 – Intercepting Bad Date Strings Entered into a DatePicker
- #1,043 – Using a DockPanel as the Items Panel for a ListBox
- #1,088 – Removing Key Bindings
- #1,089 – Adding a Parameter to a Command
- #1,090 – Sender vs. Source in CommandBinding Event Handlers
- #1,094 – Disabling Editing Operations in a TextBox
- #1,135 – Alternatives to Creating a Custom Control
- #1,136 – WPF Controls Are Lookless
- #1,141 – Attached Properties Allow Customization of Existing Controls
- #1,142 – Setting Attached Property Value from Code
- #1,143 – Coordinate System for StreamGeometry
- #1,144 – Geometry in Custom Shape Doesn’t Automatically Scale
- #1,145 – Using RenderSize in Custom Shape
- #1,163 – Make an Image Clickable with a Control Template
- #1,177 – UIElement vs. FrameworkElement vs. Control
- #1,178 – Custom Element Based on FrameworkElement
- #1,179 – Alignment and Margin Properties for a Custom FrameworkElement
- #1,180 – By Default, FrameworkElement Doesn’t Have Desired Size
- #1,181 – Custom Element Indicates Desired Size in MeasureOverride
- #1,182 – Using RenderSize Properties in Custom Elements
- #1,183 – Where Data Templates Are Used
- #1,184 – Where Data Templates Are Used, part II
- #1,185 – ItemsControl Customization Summary
- #1,186 – Default ItemContainerStyle for a ListBox
- #1,187 – Using an ItemContainerStyle to Change Items in an ItemsControl
- #1,188 – Using an ItemContainerStyle to Animate Items in an ItemsControl
- #1,189 – MeasureOverride Input and Output
- #1,190 – VisualChildrenCount and GetVisualChild
- #1,191 – Custom Element with a Single Child Element
- #1,192 – Calling Arrange on Child Elements
- #1,193 – MeasureOverride and Margins
- #1,194 – DesiredSize of Child Elements Includes Margins
- #1,198 – Selectively Enabling Child Elements in a Disabled Panel
Data Binding
- #25 – Data Binding Overview
- #126 – Reacting to a Dependency Property Change Using Binding
- #369 – Binding a Label’s Content to the Current Date and Time
- #370 – Binding a Label’s Content to the Current Date and Time, part II
- #395 – Rich ListBox Content using Data Binding, part I
- #396 – Rich ListBox Content Using Data Binding, part II
- #397 – Rich ListBox Content Using Data Binding, part III
- #485 – Binding a ComboBox to an Enumerated Type’s List of Values
- #494 – Using a Value Converter to Bind to a Visibility Property
- #495 – Binding to a Visibility Property Without Using a Value Converter
- #635 – Using a Value Converter to Change User Input
- #825 – Two Way Binding for a CheckBox
- #964 – ListBox Data Binding Basics, Part I
- #965 – ListBox Data Binding Basics, part II
- #966 – ListBox Data Binding Basics, part III
- #967 – ListBox Data Binding Basics, part IV
- #968 – ListBox Data Binding Basics, part V
- #1,137 – Value Converter Basics
- #1,138 – Value Converter Example for Output
- #1,139 – Value Converter Example for Input
- #1,140 – Using a Value Converter in a Template
Dependency Properties
- #29 – Dependency Properties
- #133 – Where a Dependency Property Gets Its Value
- #134 – Dependency Property Value Sources: #1 – Local Value
- #135 – Dependency Property Value Sources: #2 – Parent Template Trigger
- #136 – Dependency Property Value Sources: #3 – Parent Template
- #137 – The Value of the Style Property Comes from One of Three Places
- #138 – Dependency Property Value Sources: #4 – Implicit Style
- #139 – Dependency Property Value Sources: #5 – Style Triggers
- #140 – Dependency Property Value Sources: #6 – Template Triggers
- #141 – Dependency Property Value Sources: #7 – Style Setters
- #142 – Dependency Property Value Sources: #8 – Theme Style Triggers
- #143 – Dependency Property Value Sources: #9 – Theme Style
- #144 – Dependency Property Value Sources: #10 – Inheritance
- #145 – Dependency Property Value Sources: #11 – Default Value
- #146 – Use GetValueSource Method to Find the Source of a Dependency Property Value
- #147 – Use SetCurrentValue When You Want to Set A Dependency Property Value from Within a Control
- #148 – Property Values Set Using Expressions Overwrite the Base Value
- #149 – Use PropertyChanged and Coercion Callbacks to Force Dependencies Between Properties
- #150 – An Example of Using PropertyChanged and CoerceValue Callbacks
- #151 – Dependency Properties Remember Non-Coerced Values
- #152 – Use ReadLocalValue() to Find the Local Value of a Dependency Property
- #153 – You Can Set the Value of any Dependency Property for any Dependency Object
- #154 – Reusing an Existing Dependency Property in Your Class
- #155 – Implementing an Attached Dependency Property
- #156 – Using the Tag Property to Store Custom Data with an Element
- #157 – You Can Set Standard CLR Properties from XAML
- #158 – When to Create a Custom Dependency Property
- #159 – Creating a Read-Only Dependency Property
- #160 – Be Careful When Setting Dependency Property Values from a DependencyObject Constructor
- #161 – Read a Dependency Property’s Metadata
- #162 – UIPropertyMetadata and FrameworkPropertyMetadata
- #163 – Constructing FrameworkPropertyMetadata
- #164 – Overriding Metadata for an Inherited Dependency Property
- #165 – Overriding Metadata Can Result in Merged Metadata
- #166 – You Can Override Metadata for Any Dependency Property
- #167 – Implementing a Dependency Property That Is A Collection
- #574 – Complete Example of Implementing a Dependency Property
- #575 – PropertyMetadata vs. FrameworkPropertyMetadata
- #1,040 – An Example of Dependency Property Inheritance
Events
- #500 – Sharing an Event Handler Across Multiple Controls, Method I
- #501 – Sharing an Event Handler Across Multiple Controls, Method II
- #502 – Sender vs. RoutedEventArgs.Source
- #503 – Be Careful When Casting RoutedEventArgs.Source
- #576 – How (Traditional CLR) Events Work
- #579 – Adding an Event Handler for a User Interface Element
- #580 – Events in WPF are Routed
- #581 – An Example of a Routed Event
- #582 – Events Are Routed Even When a Handler is Not Defined
- #583 – Interrupting the Routing Process
- #584 – Handling an Event That Has Already Been Handled
- #585 – Tunneling Events Propagate Down the Logical Tree
- #586 – Bubbling and Tunneling Events Are Typically Paired
- #587 – The Purpose of Tunneling and Bubbling Events
- #588 – If You Handle PreviewKeyDown Event, KeyDown Won’t Fire
- #589 – Standard Tunneling/Bubbling Event Pairs
- #590 – Not All Routed Events Exist in Pairs
- #591 – You Can Attach Any Routed Event to Any Control
- #592 – Adding an Event Handler in Code
- #593 – AddHandler Method Can Add Handler for Any Event
- #594 – Routed Events Under the Covers
- #595 – Syntax Choices for Defining an Event Handler
- #596 – Using Lamba Expressions When Declaring Event Handlers
- #597 – Naming Conventions for Event Handlers
- #598 – Three Flavors of Routed Events
- #599 – A Complete Example of a Routed Event
- #600 – Registering a Routed Event
- #601 – The RoutedEventHandler Delegate Type
- #602 – Accessing Information in RoutedEventArgs
- #603 – Sender, Source and OriginalSource Example
- #604 – Defining a New Routed Event
- #605 – Using Subclasses of RoutedEventArgs
- #606 – Reusing an Existing Routed Event in Your Class
- #607 – An Instance Handler vs. A Class Handler
- #608 – Class Handlers Are Invoked Before Instance Handlers
- #609 – Perform Initialization in Window.Loaded Handler
- #615 – Standard Object Lifetime Events for FrameworkElement Objects
- #616 – FrameworkElement.Initialized and Loaded Event Order
- #617 – Input Events
- #618 – Keyboard Event Summary
- #619 – Event Sequence for the Key Up/Down Events
- #620 – Why Are There So Many KeyPress Events?
- #621 – An Example of Handling Preview Keypress Events
- #622 – The Source of a Keyboard Event
- #624 – Information Available to Key Up/Down Events
- #625 – Converting a Keypress Timestamp to a DateTime
- #626 – Key Up/Down Sequence When Using CTRL Key
- #627 – Detecting Whether The Ctrl Key Is Pressed In a KeyDown Event Handler
- #628 – Key Up/Down Sequence When Using ALT Key
- #629 – Some Controls May Swallow Keypress Events
- #628 – Key Up/Down Sequence When Using ALT Key
- #629 – Some Controls May Swallow Keypress Events
- #630 – PreviewTextInput and TextInput Events
- #631 – Event Sequence for KeyPressUp, KeyPressDown and TextInput
- #632 – Block Input Using PreviewTextInput
- #633 – TextChanged Event Fires After TextBox Text Has Changed
- #636 – Keyboard Events that Fire When A Key Is Held Down
- #637 – Block Repeating Keys by Setting Handled to true
- #638 – PreviewTextInput Is Not Fired In Many Cases
- #645 – Checking for the Presence of Modifier Keys
- #646 – Detecting a Key’s Toggle State in a Keypress Handler
- #647 – You Can Treat Any Key As A Toggle Key
- #648 – Check the Toggled State of Any Key
- #649 – KeyStates Property Combines IsDown and IsToggled
- #650 – Getting Information About Keyboard Keys from Any Method
- #651 – Using Static Members of the Keyboard Class
- #652 – Mouse Event Summary
- #653 – MouseMove Events
- #654 – Mouse Events for Button Presses
- #655 – Bubbling Mouse Events Swallowed by Some Controls
- #656 – Data Available to Mouse Button Event Handlers
- #657 – Detecting Double Clicks in User Interface Elements
- #658 – An Easier Way to Handle Mouse Double Clicks
- #659 – Detecting a Triple Click
- #661 – ButtonBase.Click Event vs. Mouse Click Events
- #662 – IsMouseOver Property
- #664 – MouseEnter and MouseLeave Events
- #665 – Reacting to MouseEnter / MouseLeave Events
- #666 – Using a Trigger to React to the Mouse Being Over a Control
- #667 – IsMouseOver vs. IsMouseDirectlyOver
- #668 – Retrieving the Mouse’s Current Position
- #669 – Retrieving the Mouse’s Current Position in an Event Handler
- #670 – Getting the Mouse Position Relative to a Specific Element
- #671 – Mouse.GetPosition Only Works When Mouse Is in Window
- #672 – Mouse Coordinates Are in Device Independent Units
- #675 – Handling the PreviewMouseWheel and MouseWheel Events
- #676 – MouseWheel Event Is Fired for Element That Mouse Pointer Is Over
- #677 – Why the Standard Mouse Wheel Delta is 120
- #678 – Hide an Element from the Mouse with IsHitTestVisible Property
- #679 – Setting IsHitTestVisible to False Prevents Interaction with Controls
- #680 – IsHitTestVisible Applies to All Child Elements
- #681 – No Mouse Events When Visibility is Hidden, Collapsed or Hidden
- #682 – Panel Elements Only Fire Mouse Events When Background Is Set
- #683 – MouseUp Can Happen in Different Control from MouseDown
- #684 – Mouse Events Occur for the Element That the Mouse Is Over
- #685 – Capturing the Mouse
- #687 – What Happens If You Forget to Release The Mouse
- #689 – An Application Can Lose Its Mouse Capture
- #690 – Being Notified When Mouse Capture Is Lost
- #691 – IsMouseCaptured Indicates Whether Mouse Is Currently Captured
- #692 – Common Controls Typically Do Not Capture the Mouse
- #693 – TextBox Control Supports Drag-and-Drop
- #694 – An Example of Custom Drag-and-Drop Behavior
- #695 – Implementing Drag-and-Drop Behavior
- #696 – A Drop Target Can Receive Data from Other Applications
- #697 – Dragging Data Out of Your Application
- #700 – Dragging an Image to Microsoft Word
- #701 – Dragging an Image Between WPF Applications
- #702 – Dragging an Image within a WPF Application
- #703 – Indicating Formats that Are Allowed to be Dropped
- #704 – Escape Key Cancels Drag-and-Drop Behavior
- #705 – Dragging a Custom Object Using Serialization as Format
- #706 – Dragging User Interface Elements Between Applications
- #707 – Dragging a List of Items from a WPF Application into Excel
- #708 – Dragging a File Into a WPF Application
- #710 – DoDragDrop Is a Blocking Call
- #711 – Changing the Mouse Cursor While Dragging
- #712 – Showing a Custom Mouse Cursor While Dragging
- #713 – Setting the Cursor to an Image of an UIElement While Dragging
- #714 – Setting the Cursor to Render Some Text While Dragging
- #717 – Drag-and-Drop with Touch on Windows 7
- #729 – Mouse.GetPosition Doesn’t Work While Dragging
- #730 – Use QueryContinueDrag Event to Know When Mouse Button State Changes
- #731 – The Idea of Multi-Touch
- #732 – Basic Events for Raw Touch Input
- #733 – A Full List of Touch Related Events
- #734 – Recognizing Different Fingers in Touch Event Handlers
- #735 – System Applet Indicates Maximum Number of Touch Points
- #736 – Finding the Maximum Number of Touch Points at Run-time
- #737 – Touch Behavior when Maximum Number of Touch Points Reached
- #738 – Sample Code – Drawing and Moving Circles at Touch Points
- #739 – Handling Touch Input at Different Levels
- #740 – Set Background of Canvas to Transparent to Receive Touch Events
- #741 – Using Touch Manipulation Events to Translate an Element
- #742 – Using Touch Manipulation Events to Rotate an Element
- #743 – Using Touch Manipulation Events to Scale an Element
- #744 – Keeping an Element within Window During Touch Manipulation
- #745 – The Basics of Inertia
- #746 – Specifying Inertial Deceleration
- #747 – Implementing Inertia during Touch Manipulation
- #748 – Getting the Size of a Contact Point during Raw Touch
- #749 – Handling the TouchEnter and TouchLeave Events
- #750 – Using Touch Manipulation to Translate in Just One Dimension
- #751 – Indicating which Touch Manipulation Modes You Support
- #752 – Tracking Total Scale when Scaling by Touch Manipulation
- #753 – Scale vs. Expansion in ManipulationDelta Events
- #754 – Implementing Inertia for Expansion during Touch Manipulation
- #755 – Implementing Rotational Inertia during Touch Manipulation
- #756 – Making Element Stop at Edge of Window When Using Inertia
- #1,066 – Elements Must Be Visible and Enabled to Fire Events
- #1,073 – Attached Events
- #1,074 – Attached Event Syntax
- #1,075 – Triggering on IsKeyboardFocusWithin Property
Fonts
- #260 – The Concept of Fonts
- #261 – Standard Fonts in Windows 7
- #262 – Font Sample Sheets
- #263 – Specifying Font Properties
- #264 – Specifying Values for FontWeight
- #265 – Specifying Values for FontStyle
- #266 – Specifying Values for FontSize
- #268 – Default FontFamily and FontSize
- #334 – Specifying Values for FontFamily
- #335 – How WPF Finds Fonts on a Target System
- #336 – Intellisense Shows Fonts Available on Development System
- #337 – Specifying Font Properties for All Controls In a Window
- #814 – You Can Specify a List of Fonts to Try
- #815 – Filling a ListBox with a List of All Fonts
- #816 – Using a Font Dialog to Select Fonts
- #817 – Embedding a Font into Your Application
- #818 – Previewing Installed Fonts
- #819 – Previewing TrueType Fonts in Windows Explorer
- #820 – Viewing Additional Font Properties in Windows Explorer
- #821 – Use TextFormattingMode to Make Text Look More Clear
- #822 – Deciding which TextFormattingMode to Use
Graphics
- #24 – Don’t Use Bitmaps in WPF Applications
- #172 – Changes to a Brush Cascade to Consumers of the Brush
- #174 – Predefined Brushes Are Already Frozen
- #208 – Color Values Are Stored as RGB Values
- #210 – Specifying Colors in XAML As RGB Values
- #211 – Creating a Color Value in Code
- #212 – Creating a Linear Gradient Brush
- #213 – Changing the Gradient Line in a Linear Gradient Brush
- #214 – Starting/Ending a Gradient Fill Inside a Control
- #215 – Other Choices for Gradient Spreads Outside the Fill Area
- #216 – Defining Several Different Gradient Stops in a Gradient Fill
- #217 – Using a Radial Gradient Brush
- #218 – Defining a Radial Gradient’s Focal Point
- #219 – Changing the Radius of a Radial Gradient
- #220 – Using the Predefined Colors
- #221 – Changing a Brush at Run-Time
- #222 – Example: Changing a Color Using RGB Sliders
- #223 – Predefined System Colors
- #224 – Using Predefined System Colors in XAML
- #225 – Using a Brush that Will Update When a System Color Changes
- #226 – Gradient Fills Adjust to the Size of the Control
- #227 – You Can Specify Gradient Fills in Absolute Coordinates
- #228 – Starting/Ending a Gradient Fill Outside a Control
- #229 – Using a Gradient Brush for a Window’s Border
- #230 – Changing a Radial Gradient as Mouse Moves Over a Control
- #231 – You Can Use a Brush for a Control’s Foreground
- #232 – The DrawingVisual Class
- #233 – An Example of Deriving from DrawingVisual Class
- #234 – Getting a DrawingVisual Object Rendered in a Window
- #235 – Types of Visual Content that You Can Create Using a DrawingContext
- #236 – Drawing an Arbitrary Geometry into a DrawingVisual
- #237 – Drawing Shapes with the Shape Subclasses
- #239 – Creating a Custom Shape by Overriding the Shape Class
- #240 – Shape vs. DrawingVisual
- #241 – Rendering Text Using DrawText
- #242 – Drawing Text Using DrawGlyphRun
- #561 – Drawing a 3D Donut Using a Radial Gradient
- #562 – Setting an Effect for an Element in Blend
- #563 – Additional Effects in Expression SDK
- #564 – Other Places to Get Third Party Effects
- #699 – Converting an Image Control to a Bitmap
- #1,146 – Polar Coordinate System
- #1,147 – Converting from Polar Coordinates to Cartesian Coordinates
- #1,148 – Sample Code to Convert from Polar to Cartesian Coordinates
- #1,149 – Drawing an Arc in a Custom Shape
- #1,150 – Custom Arc Shape, part II
- #1,151 – Custom Arc Shape, part III
- #1,152 – A Custom “Pie Slice” Shape
- #1,153 – Handling Custom Dependency Properties that Affect Rendering
- #1,154 – Providing Default Values for Standard Dependency Properties in Custom Controls
- #1,155 – A Circular Progress Indicator
- #1,156 – Changing Circular Progress Control to Be Only an Arc
- #1,157 – Overridden Default Property Values Appear in Property Pane
- #1,160 – Adding a Text Label to the Circular Progress Control
- #1,161 – Using Custom Circular Progress Shape in Control Template
Input
- #1,067 – Experimenting with Keyboard Focus
- #1,068 – Most Controls Can Get Keyboard Focus
- #1,069 – Main Window Initially Has Keyboard Focus
- #1,070 – Event Sequence for Keyboard Focus Events
- #1,071 – How TextBox Reacts to Gaining Keyboard Focus
- #1,072 – Adding Custom Triggers Related to Keyboard Focus
- #1,076 – Two Ways to Check for Use of Modifier Keys in Keypress Handlers
- #1,077 – Checking for Single Modifer vs. Multiple Modifier Keys
Layout
- #180 – How Layout Works
- #319 – The StackPanel Stacks Controls Vertically or Horizontally
- #320 – Default Size of StackPanel Child Controls
- #321 – HorizontalAlignment and VerticalAlignment
- #322 – Giving StackPanel Child Controls an Explicit Size
- #323 – Provide Space Around StackPanel Children Using Margin
- #324 – Setting a Margin with Different Sizes on Each Edge
- #325 – Specifying a Margin Value in Code
- #326 – Specifying a Symmetrical Margin Using Two Arguments
- #327 – Provide Extra Space Within a Control Using Padding
- #329 – Principles of Layout in WPF
- #330 – HorizontalContentAlignment and VerticalContentAlignment
- #331 – Default Values for HorizontalContentAlignment and VerticalContentAlignment
- #332 – HorizontalContentAlignment and VerticalContentAlignment Are Sometimes Not Relevant
- #333 – Margin and Padding Overview
- #383 – The Problems with Coordinate-Based Layout
- #384 – The Benefits of Flow-Based Layout
- #385 – You Can Nest Panel Controls
- #386 – Layout = Panels + FrameworkElements + Alignment/Margins/Padding
- #387 – Set Background Color to See How Layout Works
- #388 – Layout Containers Don’t Provide Scrolling Support
- #389 – Wrap a Panel in A ScrollViewer to Provide Scrolling Support
- #390 – Scrollbar Visibility in a ScrollViewer
- #391 – Anti-Aliasing Can Lead to Fuzzy GUI Elements
- #392 – Use SnapsToDevicePixels Property to Prevent Anti-Aliasing
- #393 – Canvas Element
- #398 – WrapPanel Element
- #399 – WrapPanel Will Change Layout of its Children as its Size Changes
- #400 – Using a WrapPanel as the Items Panel for a ListBox
- #401 – DockPanel Element
- #402 – Final Child of DockPanel Fills Remaining Space by Default
- #403 – The Order of DockPanel Children Matters
- #404 – A Grid Hosts Child Controls in Rows and Columns
- #405 – Default Values for Grid.Row and Grid.Column Properties
- #407 – Grid Contains Single Row and Column by Default
- #408 – ShowGridLines Property Allows You to See Individual Cells in Grid
- #409 – Child Elements in a Grid Size to Fit the Containing Cell
- #410 – Default Grid Row and Column Sizes
- #411 – Use HorizontalAlignment and VerticalAlignment to Position Child Elements within a Grid
- #412 – Three Ways to Set Row Height or Column Width in a Grid
- #415 – Setting Grid Row Height and Column Width Properties to Absolute Values
- #416 – Setting Grid Rows and Columns to Autosize
- #417 – Using Star Sizing to Distribute Space Evenly across Rows or Columns
- #418 – Star Sizing Allows Setting Row and Column Sizes Relative to Each Other
- #419 – How Cell Sizes are Calculated when Using Star Sizing
- #420 – You Can Use Floating Point Values for Star Sizing
- #421 – HorizontalAlignment, Margins and Column Widths in a Grid
- #422 – Setting Minimum Height and Width on Rows and Columns in a Grid
- #423 – Setting Maximum Height and Width for Rows and Columns in a Grid
- #424 – Getting Data-Bound Items in a ListBox to Be a Consistent Size
- #425 – SharedSizeGroup Allows Sharing Column Sizes Across Different Grids
- #426 – Layout Panels Can Also Have Margins
- #429 – Child Element Properties that Affect Layout
- #430 – Setting Width and Height Using Different Units
- #431 – Binding a Control’s Width to Its Height
- #432 – Height and Width vs. ActualHeight and ActualWidth
- #440 – How Alignment Properties Behave in a WrapPanel
- #441 – Setting a Consistent Height/Width for Child Elements in a WrapPanel
- #442 – WrapPanel Child Elements Can Be Clipped
- #443 – Reversing the Flow Direction in a WrapPanel
- #444 – Children of DockPanel Don’t Always Have to be Stretched
- #445 – DockPanel Can Be Used Like a StackPanel
- #446 – Default Docking for DockPanel Children
- #447 – You Can Use Layout Transforms Within a DockPanel
- #448 – Data Binding Elements in a Collection to a Grid, part I
- #449 – Data Binding Elements in a Collection to a Grid, part II
- #450 – Data Binding Elements in a Collection to a Grid, part III
- #451 – Data Binding Elements in a Collection to a Grid, Part IV
- #452 – Data Binding Elements in a Collection to a Grid, Part V
- #453 – The UseLayoutRounding Property Aligns Things to Pixel Boundaries
- #454 – UseLayoutRounding vs. SnapsToDevicePixels
- #455 – Using ItemContainerStyle to Bind Data Elements in a Collection to a Grid
- #456 – An Element in a Grid Can Span Multiple Rows or Columns
- #457 – Use a GridSplitter to Let a User Change Row or Column Size in a Grid
- #458 – Properties to Set When Using a Horizontal or Vertical GridSplitter
- #459 – Using Two (or More) GridSplitter Elements in the Same Grid
- #460 – A GridSplitter Can Share a Cell with Another Control
- #461 – Making a GridSplitter Look Three-Dimensional
- #462 – Drawing a Better Looking GridSplitter
- #463 – Multiple Parallel GridSplitters
- #464 – ShowsPreview Property Delays Row/Column Size Change Using a GridSplitter
- #465 – Using GridSplitters with Nested Grids
- #466 – Using a GridSplitter in Conjunction with a SharedSizeGroup
- #467 – Use a UniformGrid for Evenly Spaced Rows and Columns
- #468 – FirstColumn Property Allows Blank Cells in a UniformGrid
- #469 – Filling a UniformGrid from Right to Left
- #470 – Elements that Support RightToLeft Flow
- #471 – How FlowDirection Works with the Image Element
- #472 – UniformGrid Defaults to Being Square
- #473 – Positioning Child Elements in a Canvas
- #475 – Child Elements in Canvas Can Overlap
- #476 – Set ZIndex Values for Child Elements of Canvas
- #477 – Default ZIndex Value for Child Elements of a Canvas
- #478 – Two Out of Four Margin Values Are Used for Elements in a Canvas
- #479 – Using a Layout Transform on Child Elements in a Canvas
- #480 – ZIndex Values and Render Transforms
- #492 – Layout Can Change at Runtime
- #496 – Using a StackPanel to Make a Group of Buttons the Same Size
- #497 – Use a UniformGrid to Make a Group of Buttons the Same Size
- #578 – Grid Row and Column Size Use GridLength Object
- #757 – RenderSize, ActualHeight and ActualWidth
- #758 – Access Actual Height and Width from within LayoutUpdated Event Handler
- #760 – Horizontal and Vertical Alignment Basics
- #761 – How FlowDirection Affects HorizontalContentAlignment
- #762 – Set FlowDirection at Runtime Based on CurrentUICulture
- #767 – Transform Basics
- #768 – Scaling Transforms
- #769 – Rotation Transforms
- #770 – The Difference Between a LayoutTransform and a RenderTransform
- #771 – Setting the Center Point for Rotation Transforms
- #772 – Use RenderTransformOrigin to Change Center Point for Rotation Transforms
- #773 – A Rotation Center Point Can Be Outside an Element
- #774 – Translate Transforms
- #775 – Skew Transforms
- #776 – Setting the Center Point for Skew Transforms
- #780 – Combining Transforms
- #781 – Transform Order Matters
- #782 – A RenderTransform Has Better Performance than a LayoutTransform
- #786 – Using Data Binding to Control a 2D Transform
- #787 – Transforming a Point Using Matrix Multiplication
- #788 – Flipping an Element Using a Scale Transform
- #789 – How a Scale Transform Works
- #790 – How a Rotation Transform Works
- #791 – Matrix Multiplication, Part I – Rows and Columns
- #792 – Matrix Multiplication, Part II – Multiplying a Row by a Column
- #793 – Matrix Multiplication, Part III – Procedure
- #794 – Matrix Multiplication, Part IV – Some Examples
- #795 – How a Translation Transform Works
- #796 – WPF Transforms Use Homogeneous Coordinates
- #797 – Scale Transforms Using Homogeneous Coordinates
- #798 – Rotation Transforms Using Homogeneous Coordinates
- #799 – How Transforms Are Combined
- #800 – Transforms Do Not Affect ActualWidth and ActualHeight
- #801 – Creating a Mirror Image Using a RenderTransform
- #802 – Transforms Do Not Affect an Element’s Margins
- #803 – Specifying an Arbitrary Transform with a MatrixTransform
- #804 – Specifying a MatrixTransform as a Simple String
- #805 – Some Examples of Transform Strings
- #806 – Setting ZIndex Values of Child Elements in a Canvas from Code
- #807 – Setting the Position of Child Elements in a Canvas from Code
- #808 – How Shape Elements Are Positioned within a Canvas
- #1,041 – Stretched Child Elements Not Stretched when Rotated
- #1,042 – How FlowDirection Affects a StackPanel
- #1,044 – Placing More than One Element in a Grid Cell
- #1,045 – Control Layering of Elements in a Grid Using ZIndex
- #1,046 – Setting the Background Color of a Cell in a Grid
- #1,047 – Setting the Size of a Grid’s Rows or Columns from Code
- #1,048 – How to Set a GridSplitter’s Alignment Properties
- #1,049 – How the GridSplitter Behaves when Cells Use Star Sizing
- #1,050 – How the GridSplitter Behaves when Cells Use Absolute Sizing
- #1,051 – How the GridSplitter Behaves when Cells Use Auto Sizing
- #1,052 – Making Two Columns in a Grid the Same Size
- #1,053 – How SharedSizeGroup Relates to Column Sizing
- #1,054 – TabPanel Wraps and Evenly Spaces
- #1,055 – Canvas Does Not Clip Child Elements
- #1,056 – Grid Clips Child Elements
- #1,057 – Preventing a Grid from Clipping a Child Element
- #1,058 – Translation Makes No Sense within Layout Transforms
- #1,059 – Clipping vs. Resizing in a Grid
- #1,060 – Clipping in Grid Happens Before Render Transforms
- #1,061 – Scaling Content Using a ViewBox
- #1,062 – Scaling a Canvas Using a ViewBox
- #1,063 – ViewBox Stretching Options
- #1,064 – Limiting ViewBox to Scale in Just One Direction
- #1,065 – ViewBox Child Must Have Explicit Size
- #1,162 – Layout in Action, part I
- #1,165 – Layout in Action, part II
- #1,166 – Layout in Action, part III
- #1,167 – Layout in Action, part IV
- #1,168 – Layout in Action, part V
- #1,169 – Custom Panel, part I (Measure and Arrange)
- #1,170 – Custom Panel, part II (Simple Arrangement of Child Elements)
- #1,171 – Custom Panel, part III (Using DesiredSize)
- #1,172 – Custom Panel, part IV (ZIndex)
- #1,173 – Custom Panel, part V (Two Columns)
- #1,174 – Custom Panel, part VI (Attached Properties)
- #1,175 – Custom Panel, part VII (Using Attached Property to Arrange)
- #1,176 – Custom Panel, part VIII (Treemap-like Visualization)
- #1,197 – Autosizing in a Grid with Maximum Size
- #1,201 – How to Share Star Sized Column Sizes
Localization
- #1,112 – Internationalization vs. Localization
- #1,113 – Use of Cultures in Internationalization
- #1,114 – Culture Codes
- #1,115 – Internationalization I – Obey CurrentCulture for Output
- #1,116 – An Example of Output that Obeys CurrentCulture
- #1,117 – Internationalization II – Obey CurrentCulture for Input
- #1,118 – An Example of Input that Obeys CurrentCulture
- #1,119 – Localization I – Set UICulture Tag
- #1,120 – Getting a List of All Supported Cultures
- #1,121 – Localization II – Assigning UIDs to All Localizable Elements
- #1,122 – Localization III – Updating UIDs after Initial Creation
- #1,123 – Localization IV – Download and Build the LocBaml Tool
- #1,124 – Localization V – Extracting Localizable Content Using LocBaml
- #1,125 – Localization VI – Interpreting CSV File That Is Output by LocBaml Tool
- #1,126 – Localization VII – Preventing Translator from Modifying Certain Elements
- #1,127 – Localization VIII – Passing Comments On to the Translator
- #1,128 – Localization IX – Localizing Content
- #1,129 – Localization X – Integrating Translations Back into Application
- #1,130 – Localization XI – Satellite Assemblies
- #1,131 – Localization XII – Set NeutralLanguageResources Attribute
- #1,132 – Localization XIII – Verifying Localized Content
- #1,133 – Localization XIV – Add Content to Already Localized Application
- #1,134 – Localization XV – Localizing Other Content
Media
Miscellaneous
- #115 – Downloading All .NET 4 Source Code
- #238 – The Best Books on WPF
- #498 – A List of WPF Blogs and Forums
- #526 – Use Adobe Kuler to Create Color Themes
- #673 – Mapping Mouse Position to Color
- #674 – Mapping Mouse Position to Color, part II
- #688 – Moving an Element with the Mouse
- #709 – Changing the Cursor
- #718 – Copying Text To and From the Clipboard
- #719 – ASCII Art Generator
- #720 – Discovering What Kind of Data Is on the Clipboard
- #721 – A Tool for Viewing the Clipboard
- #724 – Sample Code for Examining Control Templates
- #727 – Getting a List of Files from the Clipboard
- #728 – Using the Clipboard to Transfer Other Types of Data
- #763 – The Difference Between CurrentCulture and CurrentUICulture
- #764 – Current Culture Is Used When Converting Data to A String
- #765 – WPF Data Binding Ignores CurrentCulture
- #766 – WPF Data Binding Ignores Custom Formatting
- #783 – Downloading and Installing the WPF Performance Suite
- #784 – Using the Perforator Tool to Analyze WPF Application Performance
- #785 – Using the Visual Profiler Tool
- #823 – Setting a Cursor from XAML
- #824 – Setting a Cursor on a Top Level Element
- #826 – Lower-Level Elements Can Have Different Cursor
- #827 – Overriding the Cursor Properties of Child Elements
- #829 – Setting an Application-Wide Cursor from Code
- #830 – Loading a Cursor from a File
- #831 – Embedding a Cursor in Your Project as a Resource
- #832 – Creating a Cursor File
- #946 – Checking for Valid Characters in a String
- #962 – A Color Selection Box Organized by Hue, part I
- #963 – A Color Selection Box Organized by Hue, part II
- #1,103 – Configuring a Splash Screen
- #1,104 – How the Splash Screen Works
- #1,106 – Creating a Single Instance Application
- #1,107 – Accessing an Embedded Resource Using a Uri
- #1,108 – Use Reflector to Get List of Resources
- #1,109 – Accessing a Resource in a Different Assembly
- #1,110 – Using a Resource as a Content File
- #1,111 – Referencing Content Files from XAML
Security
- #951 – Security Issues when Storing Confidential Data in Strings
- #952 – Security Issues with Managed Strings
- #953 – Use a SecureString Object to Store Confidential Text Data
- #954 – Store Confidential Data Only Within SecureString Instances
- #955 – Getting Data Out of a SecureString
- #956 – PasswordBox Stores Password as a SecureString
Styles
Visual Studio
- #3 – Tools for Developing WPF Applications
- #4 – WPF Replaces Windows Forms
- #37 – Choosing Which Version of the .NET Framework to Target
- #88 – Finding Metadata for WPF Types
- #89 – Using Visual Studio to Follow the Inheritance Chain for WPF Types
- #90 – Stepping Into .NET Source Code in Visual Studio 2010
- #91 – What InitializeComponent() Does
- #128 – Using Code Snippets to Implement a Dependency Property
- #181 – Creating a WPF Development Environment
- #182 – Create a WPF Project from Either Visual Studio or Blend
- #183 – Project Types Available from Visual Studio 2010 and Expression Blend 4
- #184 – Creating a WPF Application Using Visual Studio
- #186 – When to Use Blend (vs. Visual Studio)
- #187 – Adding Controls to a Window Using Visual Studio
- #189 – Adding an Event Handler to a Control Using Visual Studio
- #193 – You Can Have a Project Open in Blend and Visual Studio at the Same Time
- #288 – Editing WPF Code-Behind in Visual Studio
- #290 – Using Intellisense in Visual Studio
- #291 – Intellisense Lists Available Methods and Properties
- #292 – Intellisense Includes Information About a Method’s Parameters
- #293 – Intellisense Will Show Overloaded Methods
- #294 – Intellisense Is Also Available in the XAML Editor
- #413 – Creating a Grid from the Visual Studio Designer
- #722 – Get a Free Copy of Visual Studio 2012
- #723 – Turning Off All Caps Menus in Visual Studio 2012
- #994 – Viewing the Visual Tree from within Visual Studio
- #1,158 – Managing using Directives, part I
- #1,159 – Managing using Directives, part II
Windows
- #195 – The Venerable MessageBox
- #196 – Getting a Result Back from a MessageBox
- #613 – Window Event Sequence
- #614 – Events that Fire When You Switch Between Windows
- #660 – Changing the Double-Click Speed in Windows 8
- #1,032 – Show Progress on Windows Taskbar Icon
- #1,195 – Making a Window Partially Transparent
- #1,196 – Making a Window Fully Transparent
XAML
- #56 – XAML
- #57 – Markup vs Code
- #58 – Other Places that XAML Is Used
- #59 – XAML in Visual Studio 2010
- #60 – XAML in Expression Blend
- #61 – Exporting XAML From Expression Design
- #62 – BAML is Compiled XAML
- #65 – XAML Vocabularies
- #66 – XAML Elements Map to Instances of .NET Types
- #67 – XAML Attributes Map to Property Values
- #68 – Nesting XAML Elements Expresses Containment
- #69 – Internet Explorer Can Interpret XAML Directly
- #70 – Specifying Event Handlers in XAML
- #71 – XAML Files Have A Single Root Element
- #72 – XAML Namespaces
- #73 – Multiple Namespaces Using Prefixes
- #74 – Property Element Syntax
- #75 – Sometimes You Must Use Property Element Syntax
- #76 – Two Types of Elements in XAML
- #77 – XAML Collection Syntax
- #78 – Setting the Value of a Content Property By Setting Child Element
- #79 – Content Properties for Common WPF Types
- #80 – Content Properties and Collection Syntax Express UIElement Containment
- #81 – XAML Is Case Sensitive
- #82 – How XAML Handles Whitespace
- #83 – Collection Syntax for Read-Only vs. Read-Write Properties
- #84 – Store Reusable Objects in a Resource Dictionary
- #85 – Two Main Namespaces Used in Every WPF XAML File
- #86 – The Class Attribute Points to Your Code-Behind
- #87 – Type Converters
- #92 – Markup Extensions
- #93 – Specifying Markup Extensions Using Property Element Syntax
- #94 – Naming Elements
- #95 – x:Name vs. Name
- #96 – Common XAML Namespace Attributes
- #97 – Attached Properties
- #98 – How Attached Properties Work in WPF
- #99 – Creating Custom Objects in XAML
- #100 – Loose XAML Files
- #101 – What Visual Studio Does with Your XAML
- #102 – Using XamlReader to Load a Loose XAML File
- #103 – XAML 2009
- #104 – Using FindName to Find Named Children of a Control
- #105 – Viewing BAML as XAML
- #106 – Set Property Value to Point to Another Object
- #107 – Markup Extensions in the XAML Namespace
Hi Sean,
Thank you very much for sharing your know-how with others…
Wish you success. cheers
Amazing site, thanks mate, keep up the good work!
Thanks!
Great work!!! Really appreciable for learners like us. Wish u success 🙂
Sean, Great site, glad I stumbled onto it!
where i can download
Are you looking for the Index of posts? It’s a web page and can be found at this URL: https://wpf.2000things.com/index/
Sean you are a legend!!, this site is amazing. Coming from old school Winforms the ‘steep’ learning curve everyone goes on about doesn’t seem that bad. Thank you, thank you
Master Piece of WPF and C#
I seem to be missing 799 more thing about WPF