It is impossible to solve the problem in the style of MVVM
. There is something like a drop-down list of items.
<TextBlock x:Name="CurItem" Text="Тут выбранный элемент"> <i:Interaction.Behaviors> <core:EventTriggerBehavior EventName="Tapped"> <media:ControlStoryboardAction Storyboard="{StaticResource Анимация-показываем_список_элементов_ItemsList}"/> </core:EventTriggerBehavior> </i:Interaction.Behaviors> </TextBlock> <ListBox x:Name="ItemsList" ItemsSource="{Binding ItemsSourceList}"/>
I want the Tapped
event to not work if there is only 1 item in the ListBox
.