How can i make a materialdesignFloatingHintTextBox's hint property always float at the top of the textbox regardless of where the textbox is empty or not.
Here is my Project with no Code Behind
XAML;
<Window x:Class="MaterialDesignFixedHintTextBox.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:MaterialDesignFixedHintTextBox" xmlns:materialdesign="http://materialdesigninxaml.net/winfx/xaml/themes" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml"/> <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml"/> <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Green.xaml"/> <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml"/> </ResourceDictionary.MergedDictionaries> <Style x:Key="NameTextBox" TargetType="TextBox" BasedOn="{StaticResource MaterialDesignFloatingHintTextBox}"> <Setter Property="materialdesign:HintAssist.HintOpacity" Value="0.90"/> <Setter Property="materialdesign:HintAssist.IsFloating" Value="False"/> <Setter Property="materialdesign:ColorZoneAssist.Mode" Value="Dark"/> <Setter Property="materialdesign:HintAssist.HintOpacity" Value="0.10"/> <Setter Property="materialdesign:HintAssist.FontFamily" Value="Century Gothic"/> <Setter Property="Foreground" Value="AliceBlue"/> <Setter Property="FontSize" Value="20"/> </Style> </ResourceDictionary> </Window.Resources> <Grid> <Grid.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF06013F" Offset="1"/> <GradientStop Color="#FF040F2E"/> </LinearGradientBrush> </Grid.Background> <StackPanel Margin="30" Orientation="Horizontal" Height="80"> <TextBox Style="{StaticResource NameTextBox}" Width="100" materialdesign:HintAssist.Hint="FirstName" Margin="0 0 50 0" VerticalAlignment="Bottom"/> </StackPanel> </Grid> </Window>