I’m trying to have the TextInput inside a “bubble” (see image) but when I put it inside a WrapPanel padding is added. Is this a bug or is it human error (me)?
<Panel Padding="10,5,10,0" Margin="5,0,5,0" Background="#0f0">
<Rectangle Layer="Background" Opacity="0.5">
<Rectangle CornerRadius="8" Fill="#e0c0d5"></Rectangle>
<Rectangle CornerRadius="8" Fill="#c89abc" Offset="0,3"></Rectangle>
</Rectangle>
<TextInput MinWidth="50" Height="30" Padding="0" Margin="0" Background="#f00" CaretColor="#69135b" />
</Panel>
<WrapPanel FlowDirection="LeftToRight" Margin="20,0,20,0">
<Each Items="{words}">
<Bubble>
<BubbleText TextColor="#69135b" Value="{}" />
</Bubble>
</Each>
</WrapPanel>
<WrapPanel FlowDirection="LeftToRight" Margin="20,0,20,0">
<Panel Padding="10,5,10,0" Margin="5,0,5,0" Background="#0f0">
<Rectangle Layer="Background" Opacity="0.5">
<Rectangle CornerRadius="8" Fill="#e0c0d5"></Rectangle>
<Rectangle CornerRadius="8" Fill="#c89abc" Offset="0,3"></Rectangle>
</Rectangle>
<TextInput MinWidth="50" Height="30" Padding="0" Margin="0" Background="#f00" CaretColor="#69135b" />
</Panel>
<Each Items="{words}">
<Bubble>
<BubbleText TextColor="#69135b" Value="{}" />
</Bubble>
</Each>
</WrapPanel>
Can you post the code for this so we can take a look?
Ok. So all I did was move the Panel with the <TextInput>
inside the <WrapPanel>