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

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
CyborgDE
Posts: 75
Joined: Wed Aug 12, 2015 9:21 pm

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

Postby CyborgDE » Sun Oct 18, 2015 4:35 am

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

JS-Support @Userware
Site Admin
Posts: 928
Joined: Tue Apr 08, 2014 3:42 pm

Re: Canvas / TextBox

Postby JS-Support @Userware » Fri Oct 23, 2015 10:09 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron