18 references to SemanticProperties
Microsoft.Maui.Controls (18)
SemanticProperties.cs (6)
10
public static readonly BindableProperty DescriptionProperty = BindableProperty.CreateAttached("Description", typeof(string), typeof(
SemanticProperties
), default(string));
13
public static readonly BindableProperty HintProperty = BindableProperty.CreateAttached("Hint", typeof(string), typeof(
SemanticProperties
), default(string));
16
public static readonly BindableProperty HeadingLevelProperty = BindableProperty.CreateAttached("HeadingLevel", typeof(SemanticHeadingLevel), typeof(
SemanticProperties
), SemanticHeadingLevel.None);
50
SemanticProperties
.DescriptionProperty,
51
SemanticProperties
.HintProperty,
52
SemanticProperties
.HeadingLevelProperty,
Shell\BaseShellItem.cs (3)
544
previousBindingContext =
SemanticProperties
.FakeBindSemanticProperties(bsi, g);
548
if (!g.IsSet(
SemanticProperties
.DescriptionProperty))
550
g.SetBinding(
SemanticProperties
.DescriptionProperty, static (BaseShellItem item) => item.Title);
VisualElement\VisualElement.cs (6)
1984
if (!this.IsSet(
SemanticProperties
.HintProperty) &&
1985
!this.IsSet(
SemanticProperties
.DescriptionProperty) &&
1986
!this.IsSet(
SemanticProperties
.HeadingLevelProperty))
1993
_semantics.Description =
SemanticProperties
.GetDescription(this);
1994
_semantics.HeadingLevel =
SemanticProperties
.GetHeadingLevel(this);
1995
_semantics.Hint =
SemanticProperties
.GetHint(this);
VisualElement\VisualElement.Mapper.cs (3)
28
viewMapper.ReplaceMapping<IView, IViewHandler>(
SemanticProperties
.DescriptionProperty.PropertyName, MapSemanticPropertiesDescriptionProperty);
29
viewMapper.ReplaceMapping<IView, IViewHandler>(
SemanticProperties
.HintProperty.PropertyName, MapSemanticPropertiesHintProperty);
30
viewMapper.ReplaceMapping<IView, IViewHandler>(
SemanticProperties
.HeadingLevelProperty.PropertyName, MapSemanticPropertiesHeadingLevelProperty);