# CompiledBindings **Repository Path**: houzhifei/CompiledBindings ## Basic Information - **Project Name**: CompiledBindings - **Description**: Fork: https://github.com/levitali/CompiledBindings.git - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-01-04 - **Last Updated**: 2022-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CompiledBindings This library provides {x:Bind} Markup Extension for WPF, MAUI and Xamarin Forms. You can read about {x:Bind} Markup Extension for UWP [here](https://docs.microsoft.com/en-us/windows/uwp/xaml-platform/x-bind-markup-extension). The whole functionality of {x:Bind} for UWP and also many other features are supported. At XAML compile time, {x:Bind} is converted into C# code. Thus you can't use it in Visual Basis projects. ## x:Bind Markup Extension {x:Bind} Markup Extension have an expression as its first parameter, or the expression is specified by the Path parameter, following by other parameters like Mode, BindBack, Converter, ConverterParameter. ### x:Bind usage Note, that in some examples bellow the TextBlock (WPF) control is used, in others Label (Xamarin Forms). **Property paths** ```xaml ``` **Function calls** ```xaml ``` The first example above is the call of instance method Trim(). The second is the call of static method GenerateSongTitle of MainPage class, wich takes two parameters (multi-binding). The expression of the {x:Bind} can also have the following operators: - **binary operators** (in round brackets alternatives, which are better for XML): +, -, \*, /, = (eq), != (ne), < (lt), > (gt), <= (le), >= (ge) ```xaml