标签:
ScrollViewer用法:ScrollViewer.LineUp() 向上; ScrollViewer.LineDown()向下滑动; ScrollViewer.ScrollToEnd() 底; ScrollViewer.ScrollToHome()顶 c#后台代码;
<Grid> <ScrollViewer CanContentScroll="True" > <StackPanel> <Button Content="按钮1" Height="80" /> <Button Content="按钮2" Height="80" /> <Button Content="按钮3" Height="80"/> <Button Content="按钮4" Height="80" /> </StackPanel> </ScrollViewer> </Grid>
ToolTip用法:Placement="Mouse"鼠标坐标。
<Button Content="Button"> <Button.ToolTip> <ToolTip Placement="Mouse" HorizontalOffset="15" VerticalOffset="15"> <StackPanel> <TextBlock Text="sss" /> <Image Source="q.png" /></StackPanel> </ToolTip> </Button.ToolTip> </Button>
注:TextOptions.TextFormattingMode=“Dispaly”设置文字清晰,用于小字体;
标签:
原文地址:http://www.cnblogs.com/wswbk/p/4930406.html