TemplateBinding Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TemplateBinding() |
Creates an empty template binding. |
TemplateBinding(String, BindingMode, IValueConverter, Object, String) |
Creates an empty template binding. |
TemplateBinding()
Creates an empty template binding.
public:
TemplateBinding();
public TemplateBinding ();
Public Sub New ()
Applies to
TemplateBinding(String, BindingMode, IValueConverter, Object, String)
Creates an empty template binding.
public TemplateBinding (string path, Microsoft.Maui.Controls.BindingMode mode = Microsoft.Maui.Controls.BindingMode.Default, Microsoft.Maui.Controls.IValueConverter converter = default, object converterParameter = default, string stringFormat = default);
new Microsoft.Maui.Controls.TemplateBinding : string * Microsoft.Maui.Controls.BindingMode * Microsoft.Maui.Controls.IValueConverter * obj * string -> Microsoft.Maui.Controls.TemplateBinding
Public Sub New (path As String, Optional mode As BindingMode = Microsoft.Maui.Controls.BindingMode.Default, Optional converter As IValueConverter = Nothing, Optional converterParameter As Object = Nothing, Optional stringFormat As String = Nothing)
Parameters
- path
- String
A string that identifies the property to which to bind.
- mode
- BindingMode
The binding mode.
- converter
- IValueConverter
A type converter to use to convert strings into instances of the bound property type.
- converterParameter
- Object
A parameter to pass to the converter.
- stringFormat
- String
A format string to use for displaying property values.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈