一起学习Avalonia(八)
又到周末了,根据官网文档,接着控件篇。
1.ToolTip
用法:
<ToolTip.Tip>
<StackPanel>
<TextBlock >ToolTip</TextBlock>
<TextBlock >A control which pops up a hint when a control is hovered</TextBlock>
</StackPanel>
</ToolTip.Tip>
效果:
2.Notifications
用法:
NotificationManager.Show(new NotificationViewModel(NotificationManager) { Title = "Hey There!", Message = "Did you know that Avalonia now supports Custom In-Window Notifications?" });
效果:
就到这里了