本文介绍了调整边框大小的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
边框内有用户控件(按钮).当鼠标离开边框时,边框会逐渐慢慢最小化,然后单击按钮.然后按钮的内容将按字母顺序丢失.
例如:常规信息,常规信息,常规信息,常规信息,常规信息,常规信息,常规信息,常规信息,常规信息,常规I,常规等等.但我想展示类似tihs的内容
一般
信息
然后迷路了.
There is user control(button) inside the border.When mouse leave the borderborder is getting minimization slowly slowly and button.Then content of button is lost alphabet wise.
for example:General Informatio,General Informati, General Informat,General Informa,General Inform,General Infor,General Info,General Inf,General In,General I,General and so on..
But I would like to show the content like tihs
General
Information
and then lost.
<UserControl x:Class="HID_okworkbench.readerButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:HID_okworkbench="clr-namespace:HID_okworkbench"
x:Name="readerButtonControl" FontFamily="Tahoma" FontSize="11"
Height="auto" Width="auto">
<Grid>
<Button Name="omniButton" Height="75" VerticalAlignment="Center"
Style="{DynamicResource MyBottomLeftButtonStyle}"
Background="White"
HorizontalContentAlignment="Left" BorderThickness="0">
<DockPanel Name="dockPanelOmni" Margin="0,0,0,0">
<Image Name="omniButtonImage" DockPanel.Dock="Left" Height="35" Width="35"
Stretch="Uniform" />
<Label Name="omniButtonLabel" DockPanel.Dock="Right" Foreground="DarkBlue" VerticalAlignment="Center">
</Label>
</DockPanel>
</Button>
</Grid>
</UserControl>
推荐答案
<button id="btnWrap" type="button" runat="server" class="testbutton">
<div style="width: 70px; height: 48px; word-wrap: break-word">
General Information and then lost</div>
</button>
这篇关于调整边框大小的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!