公告
财富商城
积分规则
提问
发文
2019-05-31 23:17发布
Rolldiameter
I want a formatbar like in Office 2010 with WPF:
How can I make that work?
The ToolTip window can't accept focus, use the Popup control instead. It's a bit more cumbersome, than a tooltip, because many useful properties are set to false by default, here is a tiny example:
<Popup x:Name="samplePopup" PopupAnimation="Fade" Placement="Mouse" AllowsTransparency="True" StaysOpen="False" > <Popup.Child> <StackPanel Margin="10" > <TextBlock Text="Some Text" HorizontalAlignment="Center" /> <Button Content="Close" HorizontalAlignment="Center" /> </StackPanel> </Popup.Child> </Popup>
最多设置5个标签!
The ToolTip window can't accept focus, use the Popup control instead. It's a bit more cumbersome, than a tooltip, because many useful properties are set to false by default, here is a tiny example: