I'm writing an application using WPF MVVM. I have a view model with property IsFolderSelected like this:
public class SelectFolderViewModel : ViewModelBase
{
public bool IsFolderSelected
{
get
{
return _isFolderSelected;
}
set
{
if (_isFolderSelected == value)
{
return;
}
_isFolderSelected = value;
RaisePropertyChanged(IsFolderSelectedPropertyName);
}
}
}
And i have a TextBox element in XAML:
<TextBox
Text="{Binding Path=FolderPath}"
ToolTip="Please select folder"/>
How can i force display tooltip from the TextBox when property IsFolderSlected == false?