Hi Telrik,
In project , I I have a requirment that is when i enter data in a textbox that ented text is displinh in a Textblox based on text block lenght canvs control margin need to set .
if you see the image the lable is size is increasing to right side when test increases but i need that size has to increse both the sides means left side and right side also.
kindly see the follwing code bellow .
have a look to atttached pictures please
it is urgent please help me as soon as possible.
<Canvas x:Name="wpRect" Canvas.Left="85" Canvas.Top="-32" Width="30" Height="30">
<!-- // Demond Id 541: following code is for to change circlequantity to Rectangle Quantity. Done by Ramesh 878173 -->
<Border BorderThickness="1" BorderBrush="Black" MinWidth="30" MaxWidth="100" Background="White">
<Grid>
<TextBlock x:Name="lblWPQtyCircle" Canvas.Left="4" Canvas.Top="7" Height="20" Text="{Binding Quantity}" ToolTipService.ToolTip="{Binding Quantity}"
Width="Auto" TextAlignment="Center" FontFamily="Arial Black" HorizontalAlignment="Center"
MouseLeftButtonUp="lblWPQtyCircle_MouseLeftButtonUp" MouseEnter="lblWpQtyCircle_MouseEnter"
MouseLeave="lblWPQtyCirle_MouseLeave" RenderTransformOrigin="0.5,0.5" SizeChanged="lblWPQtyCircle_SizeChanged">
<TextBlock.RenderTransform>
<CompositeTransform/>
</TextBlock.RenderTransform>
</TextBlock>
<TextBox x:Name="txtWPQtyCircle" Visibility="Collapsed" Canvas.Left="4" Canvas.Top="5" MinWidth="30" Height="20" Text="{Binding Quantity, Mode=TwoWay}"
CAST_Common_Controls:TextBoxFilter.Filter="PositiveInteger" Width="Auto" TextAlignment="Center" FontFamily="Arial Black"
KeyUp="txtWPQtyCircle_KeyUp" LostFocus="txtWpQtyCircle_LostFocus" RenderTransformOrigin="0.2,0.2"
FontSize="13" Style="{StaticResource CircleTextBoxStyle}">
</TextBox>
</Grid>
</Border>
<!--End 541-->
</Canvas>
In project , I I have a requirment that is when i enter data in a textbox that ented text is displinh in a Textblox based on text block lenght canvs control margin need to set .
if you see the image the lable is size is increasing to right side when test increases but i need that size has to increse both the sides means left side and right side also.
kindly see the follwing code bellow .
have a look to atttached pictures please
it is urgent please help me as soon as possible.
<Canvas x:Name="wpRect" Canvas.Left="85" Canvas.Top="-32" Width="30" Height="30">
<!-- // Demond Id 541: following code is for to change circlequantity to Rectangle Quantity. Done by Ramesh 878173 -->
<Border BorderThickness="1" BorderBrush="Black" MinWidth="30" MaxWidth="100" Background="White">
<Grid>
<TextBlock x:Name="lblWPQtyCircle" Canvas.Left="4" Canvas.Top="7" Height="20" Text="{Binding Quantity}" ToolTipService.ToolTip="{Binding Quantity}"
Width="Auto" TextAlignment="Center" FontFamily="Arial Black" HorizontalAlignment="Center"
MouseLeftButtonUp="lblWPQtyCircle_MouseLeftButtonUp" MouseEnter="lblWpQtyCircle_MouseEnter"
MouseLeave="lblWPQtyCirle_MouseLeave" RenderTransformOrigin="0.5,0.5" SizeChanged="lblWPQtyCircle_SizeChanged">
<TextBlock.RenderTransform>
<CompositeTransform/>
</TextBlock.RenderTransform>
</TextBlock>
<TextBox x:Name="txtWPQtyCircle" Visibility="Collapsed" Canvas.Left="4" Canvas.Top="5" MinWidth="30" Height="20" Text="{Binding Quantity, Mode=TwoWay}"
CAST_Common_Controls:TextBoxFilter.Filter="PositiveInteger" Width="Auto" TextAlignment="Center" FontFamily="Arial Black"
KeyUp="txtWPQtyCircle_KeyUp" LostFocus="txtWpQtyCircle_LostFocus" RenderTransformOrigin="0.2,0.2"
FontSize="13" Style="{StaticResource CircleTextBoxStyle}">
</TextBox>
</Grid>
</Border>
<!--End 541-->
</Canvas>