Page 1 of 1

Set the width of a TextBox in a canvas [COULD NOT REPRODUCE]

Posted: Sun Oct 18, 2015 4:35 am
by CyborgDE
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

Re: Canvas / TextBox

Posted: Fri Oct 23, 2015 10:09 am
by JS-Support @Userware
Hello,

Thanks for your message.

We were unable to reproduce the issue. Here is the code that we tested:

XAML:

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>


C#:

Code: Select all

namespace Tests
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            InitializeComponent();

            MyTextBox.Width = 300;
        }
    }
}


If you can reproduce the issue, please let me know.

Thanks a lot,
Regards,
JS-Support