Skip to content

MaterialDesignFloatingHintTextBox's Hint Always Floating above the TextBox. #3401

Answered by Keboo
MeshkaM asked this question in Q&A
Discussion options

You must be logged in to vote

At present there is not a simple way to achieve this without manipulating the content. This is because the internal SmartHint control uses the "empty" content to choose if it will be in the floating position (see:

private void RefreshState(bool useTransitions)
{
IHintProxy? proxy = HintProxy;
if (proxy is null) return;
if (!proxy.IsVisible) return;
var action = new Action(() =>
{
string state = string.Empty;
bool isEmpty = proxy.IsEmpty();
bool isFocused = proxy.IsFocused();
if (UseFloating)
state = !is…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MeshkaM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants