根据其内容调整scatterviewitem的大小??? [英] Sizing scatterviewitem based on its content ???
问题描述
亲爱的,
根据内容调整scatterViewItem大小的最佳方法是什么?
如果我放置作为scatterviewItem的内容,它的大小不是基于它的内容,任何想法?
< Grid>
< Grid.RowDefinitions>
< RowDefinition Height =" 0.174 *" />
< RowDefinition Height =" 0.721 *" />
< RowDefinition Height =" 0.105 *" />
< /Grid.RowDefinitions>
< Grid.ColumnDefinitions>
< ColumnDefinition Width =" 0.432 *" />
< ColumnDefinition Width =" 0.416 *" />
< ColumnDefinition Width =" 0.152 *" />
< /Grid.ColumnDefinitions>
< TextBox HorizontalAlignment =" Left" Text =" Residence Belle Donne" TextWrapping = QUOT;包覆与QUOT; />
< Image Grid.Column =" 2" Source =" {StaticResource Timbre}" />
< s:SurfaceInkCanvas Grid.Row =" 1" />
< Image Grid.Column =" 1" Grid.Row = QUOT 1 QUOT; Source =" {StaticResource PhotoToSend}" />
< / Grid>
寻求帮助
问候
你的知识会被其他人的知识所强化。
问题在于,有时候你我希望内容能够定义SVI的大小(就像你在上面概述的那样),有时你会希望SVI影响内容的大小(就像有人操纵它一样)。如果您只想定义
SVI的初始大小,请在设置SVI的内容时以编程方式指定大小。
谢谢。
Dear all,
What is the best way to get the scatterViewItem sized according to its content ?
If I place the following as content of scatterviewItem, it is not sized based on its content, any ideas ?
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="0.174*"/>
<RowDefinition Height="0.721*"/>
<RowDefinition Height="0.105*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="0.432*"/>
<ColumnDefinition Width="0.416*"/>
<ColumnDefinition Width="0.152*"/>
</Grid.ColumnDefinitions>
<TextBox HorizontalAlignment="Left" Text="Residence Belle Donne" TextWrapping="Wrap"/>
<Image Grid.Column="2" Source="{StaticResource Timbre}"/>
<s:SurfaceInkCanvas Grid.Row="1" />
<Image Grid.Column="1" Grid.Row="1" Source="{StaticResource PhotoToSend}"/>
</Grid>
Thnaks for help
Regards
Your knowledge is enhanced by that of others.
The problem is that sometimes you would want the content to define the size of the SVI (like you outline above), and that sometimes you would want the SVI to affect the size of the content (like when someone is manipulating it). If you just want to define the initial size of the SVI, assign the size programatically when you set the content of the SVI.
Thanks.
这篇关于根据其内容调整scatterviewitem的大小???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!