diff --git a/docs/fundamentals/data-binding/compiled-bindings.md b/docs/fundamentals/data-binding/compiled-bindings.md index 093d67985..0650c657f 100644 --- a/docs/fundamentals/data-binding/compiled-bindings.md +++ b/docs/fundamentals/data-binding/compiled-bindings.md @@ -136,49 +136,6 @@ The following example demonstrates correctly setting the `x:DataType` on a - - ... - - - - - - - - - - - - - - - -``` - -The `ListView.ItemsSource` property is set to the static `NamedColor.All` property. The `NamedColor` class uses .NET reflection to enumerate all the static public fields in the class, and to store them with their names in a collection that is accessible from the static `All` property. Therefore, the is filled with all of the `NamedColor` instances. For each item in the , the binding context for the item is set to a `NamedColor` object. The and elements in the are bound to `NamedColor` properties. - -The defines the `x:DataType` attribute to be the `NamedColor` type, indicating that any binding expressions in the view hierarchy will be compiled. This can be verified by changing any of the binding expressions to bind to a non-existent `NamedColor` property, which will result in a build error. While this example sets the `x:DataType` attribute to a string literal, it can also be set to a type with the `x:Type` markup extension. For more information about the `x:Type` markup extension, see [x:Type Markup Extension](~/xaml/markup-extensions/consume.md#xtype-markup-extension). - -When the example is first run, the is populated with `NamedColor` instances. When an item in the is selected, the `BoxView.Color` property is set to the color of the selected item in the : - -:::image type="content" source="media/compiled-bindings/compiledcolorlist.png" alt-text="Compiled color list."::: - -Selecting other items in the updates the color of the . --> - ::: moniker range=">=net-maui-9.0" ### Compile bindings that define the `Source` property diff --git a/docs/fundamentals/data-binding/media/compiled-bindings/compiledcolorlist.png b/docs/fundamentals/data-binding/media/compiled-bindings/compiledcolorlist.png deleted file mode 100755 index f4f08e5cb..000000000 Binary files a/docs/fundamentals/data-binding/media/compiled-bindings/compiledcolorlist.png and /dev/null differ