Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
XML
<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>
Posted
Updated 21-Sep-11 1:32am
v2
Comments
Mahmudul Haque Azad 21-Sep-11 23:09pm    
There may be some problem with your style MyBottomLeftButtonStyle. Can you please paste your style here?

1 solution

You can resolve it using word-wrap style to the button text. Code is

HTML
<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>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900