デフォルトSMSアプリケーションにある「バブル」テキストボックスに似たコントロールを作成したいと思っています。私は近くに来て、 "バブル"形の道を作りました。その中にはテキストボックスがありますが、テキストボックスのサイジングに問題があります。テキストボックスの "AcceptsReturn"をTrueに設定しました。私が気づいたのは、テキストボックスの行数が増えると、(SIPの下の)ビューからテキストボックスが消えることです。これはSMSのテキストボックスの動作ではありません。常に最新の行を表示するようにスクロールするようです(コントロールは非表示になります)。テキストボックスのテンプレートをカスタマイズすることで、これを作成するために、マネージド任意のポインタ...Windows Phone 7の作成方法SMSテキストボックス
[更新] をお願い申し上げ:
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Rectangle Grid.Row="1" StrokeThickness="0" Fill="{TemplateBinding Background}"/>
<ContentControl Grid.Row="1" x:Name="ContentElement" HorizontalContentAlignment="Stretch" Margin="0" Padding="{StaticResource PhoneTouchTargetLargeOverhang}" VerticalContentAlignment="Stretch" FontSize="{StaticResource PhoneFontSizeNormal}" Background="Black" />
<Path Data="M161.25,90.75 L184.25,90.75 L184.25,100.75" HorizontalAlignment="Left" Grid.Row="0" Stretch="Fill" StrokeThickness="0" UseLayoutRounding="False" Width="23" RenderTransformOrigin="0.5,0.5" Fill="{TemplateBinding Background}" Margin="54.75,0,0,0">
<Path.RenderTransform>
<CompositeTransform Rotation="180"/>
</Path.RenderTransform>
</Path>
<Rectangle Grid.Row="2" Fill="{TemplateBinding Background}"/>
<TextBlock x:Name="txtTimeStamp" Grid.Row="2" TextWrapping="Wrap" Padding="{TemplateBinding Padding}" FontSize="{StaticResource PhoneFontSizeSmall}" Text="{Binding Timestamp, Converter={StaticResource dateTimeConverter}, Mode=TwoWay}">
<TextBlock.Foreground>
<SolidColorBrush Color="{StaticResource PhoneTextBoxForegroundColor}"/>
</TextBlock.Foreground>
</TextBlock>
</Grid>
を私は「あなたが何を示し示唆します今まで行ったことがあります。そうすれば、問題を指摘することができます。あなたがそれをするなら、あなたはもっと答えを得るでしょう。 –