Hello,
I cannot test it in detail, but I was not able to set the width of a TextBox sitting in a canvas ...
Regards, Uwe
Code: Select all
<Page
x:Class="Tests.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Canvas>
<TextBox x:Name="MyTextBox"/>
</Canvas>
</Page>
Code: Select all
namespace Tests
{
public sealed partial class MainPage : Page
{
public MainPage()
{
InitializeComponent();
MyTextBox.Width = 300;
}
}
}
Users browsing this forum: No registered users and 37 guests