XAML
![ReSharper options: Environment | Inlay Hints | XAML ReSharper options: Environment | Inlay Hints | XAML](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/Environment_InlayHints_XAML.png)
Use this settings page to configure inlay hints in XAML.
Implicit attribute names
This kind of hints shows implicit attribute names, for example:
![ReSharper: Inlay hints in XAML for implicit attribute names ReSharper: Inlay hints in XAML for implicit attribute names](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/inlay_hints_xaml_implicit.png)
Use the Visibility selector to choose how inlay hints for implicit attribute names should be displayed in the editor: choose Default to apply the general visibility preference from the page of ReSharper options , choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.
Thickness argument
This kind of hints shows Thickness
values (in the arguments of Margin
, Padding
, and so on) to see the correspondence between arguments and values:
![ReSharper: Inlay hints in XAML for margins and padding ReSharper: Inlay hints in XAML for margins and padding](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/inlay_hints_xaml.png)
Use the Visibility selector to choose how inlay hints for margins and padding should be displayed in the editor: choose Default to apply the general visibility preference from the page of ReSharper options , choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.
CornerRadius argument
This kind of hints shows parameter names for the CornerRadius
constructor, which is helpful when you use the constructor with 4 parameters to see which corners are TopLeft, TopRight, BottomLeft, BottomRight:
![ReSharper: Inlay hints in XAML for CornerRadius arguments ReSharper: Inlay hints in XAML for CornerRadius arguments](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/xaml_inlay_hints_cornerradius.png)
Use the Visibility selector to choose how inlay hints for CornerRadius arguments should be displayed in the editor: choose Default to apply the general visibility preference from the page of ReSharper options , choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.
Missing Grid.Row/Column
This kind of hints shows missing Grid.Row
and Grid.Column
attributes:
![ReSharper: Inlay hints in XAML for missing Grid.Row/Column attributes ReSharper: Inlay hints in XAML for missing Grid.Row/Column attributes](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/inlay_hints_xaml_missing.png)
Use the Visibility selector to choose how inlay hints for missing Grid.Row/Column attributes should be displayed in the editor: choose Default to apply the general visibility preference from the page of ReSharper options , choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl.
DataContext
This kind of hints shows DataContext
types in bindings:
![ReSharper: Inlay hints in XAML for DataContext ReSharper: Inlay hints in XAML for DataContext](https://resources.jetbrains.com.cn/help/img/dotnet/2024.2/inlay_hints_xaml_datacontext.png)
Visibility | Use the selector to choose how inlay hints for DataContext bindings should be displayed in the editor: choose Default to apply the general visibility preference from the page of ReSharper options , choose Show Always or Never Show to always show or hide hints, or choose Push-to-Hint to hide the hints by default but show them when you press and hold Ctrl. |
Show fully qualified names for DataContext attribute | |
Hide for template bindings if hint has been presented for parent binding element |