Искам да предам стойността на имота модел като параметър на конвертора за друга стойност на задължителната стойност.
<Label FontSize="{Binding MediumLabelTextSize}"
Text="{Binding FeedHome.QuestionBody,
Converter={StaticResource HideLongTextConverter}}"/>
<Label FontSize="{Binding SmallLabelTextSize}"
IsVisible="{Binding IsQuestionReadMoreVisible}"
Text="Read more">
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding ReadMoreCommand}"
CommandParameter="{Binding .}"/>
</Label.GestureRecognizers>
</Label>
Искам да предам FeedHome.QuestionBody като параметър на конвертора за IsQuestionReadMoreVisible. Как мога да го направя?
Отговори:
0 за отговор № 1моля опитайте това
Текст = "{Binding HeaderText, Конвертор = {StaticResource caseConverter}, ConverterParameter = u}}" IsVisible = "{Връзка IsEditMode, Конвертор = {StaticResource boolInverter}}"