Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl x:Class="MMHLive.Views.AddContainerView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:vms="clr-namespace:MMHLive.ViewModels"
- mc:Ignorable="d"
- d:DesignHeight="300" d:DesignWidth="300">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <ItemsControl Grid.Column="0" ItemsSource="{Binding States}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Image x:Name="Image" Source="/MMHLive;component/Images/Unselected.png" />
- <DataTemplate.Triggers>
- <DataTrigger Binding="{Binding IsSelected}" Value="true" >
- <Setter Property="Source" TargetName="Image" Value="/MMHLive;component/Images/Selected.png" />
- </DataTrigger>
- <DataTrigger Binding="{Binding IsError}" Value="true" >
- <Setter Property="Source" TargetName="Image" Value="/MMHLive;component/Images/Error.png" />
- </DataTrigger>
- <DataTrigger Binding="{Binding IsError}" Value="false" >
- <Setter Property="Source" TargetName="Image" Value="/MMHLive;component/Images/Valid.png" />
- </DataTrigger>
- </DataTemplate.Triggers>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- <ContentControl Grid.Row="1" Content="{Binding CurrentView}"/>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment