client/src/Iri.Modernisation.Controls/View/PolemicElement.xaml
changeset 38 bd33267300aa
parent 27 f292db96b050
equal deleted inserted replaced
37:beb938b4fb76 38:bd33267300aa
     1 <UserControl
     1 <View:MenuableUserControl
       
     2 xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
       
     3    
     2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     4     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     5     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     4 	xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
     6 	xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
     5     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     7     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     6     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     8     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     7     x:Class="Iri.Modernisation.Controls.View.PolemicElementControl" 
     9     x:Class="Iri.Modernisation.Controls.View.PolemicElementControl" 
     8     Width="160" Height="{Binding Heigh}" Background="Black"
    10     Width="160" Height="{Binding Heigh}" Background="Black"
     9 	 mc:Ignorable="d"
    11 	 mc:Ignorable="d"
    10            >
    12            >
    11 		   	<UserControl.Resources>
    13 	<View:MenuableUserControl.Resources>
    12 		<Converter:PolemicTypeColorConverter x:Key="PolemicTypeColorConverter"/>
    14 		<Converter:PolemicTypeColorConverter x:Key="PolemicTypeColorConverter"/>
    13 	</UserControl.Resources>
    15 	</View:MenuableUserControl.Resources>
    14     <Grid x:Name="LayoutRoot" Background="{Binding Type}" Height="24">
    16     <Grid x:Name="LayoutRoot" Background="{Binding Type}" Height="24">
    15         <ToolTipService.ToolTip>
    17         <ToolTipService.ToolTip>
       
    18 		<StackPanel Orientation="Horizontal">
       
    19 		<TextBlock Text="{Binding Contributer.UserName}"/>
       
    20 		<TextBlock Text=" - "/>
    16             <TextBlock Text="{Binding Title}"/>
    21             <TextBlock Text="{Binding Title}"/>
    17             
    22             </StackPanel>
    18         </ToolTipService.ToolTip>
    23         </ToolTipService.ToolTip>
    19     	<Rectangle Fill="Black" Stroke="Black" HorizontalAlignment="Right" Width="1" d:LayoutOverrides="VerticalAlignment"/>
    24     	<Rectangle Fill="Black" Stroke="Black" HorizontalAlignment="Right" Width="1" d:LayoutOverrides="VerticalAlignment"/>
    20     	<Rectangle Fill="Black" Stroke="Black" HorizontalAlignment="Left" Width="1" d:LayoutOverrides="VerticalAlignment"/>
    25     	<Rectangle Fill="Black" Stroke="Black" HorizontalAlignment="Left" Width="1" d:LayoutOverrides="VerticalAlignment"/>
       
    26     	<Rectangle Stroke="Black"/>
    21     </Grid>
    27     </Grid>
    22 </UserControl>
    28 </View:MenuableUserControl>