<UserControl x:Class="Hiyoko.Forms.TwitterStatusViewer" x:Name="this"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:local="clr-namespace:Hiyoko.Forms">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="/Hiyoko;component/forms/generic.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>
	<Border Margin="4" Padding="4" BorderThickness="1" CornerRadius="4"
		BorderBrush="{Binding Path=User.ProfileSidebarBorderColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
		Background="{Binding Path=User.ProfileBackgroundColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}">
		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="auto" />
				<ColumnDefinition Width="*" />
			</Grid.ColumnDefinitions>
			<Image Width="47" Height="47" Margin="0,0,4,0" Source="{Binding Path=User.ProfileImageUrl, Converter={StaticResource UrlToImageSourceConverter}}"></Image>
			<Grid Grid.Column="1" Background="#eeffffff">
				<Grid.RowDefinitions>
					<RowDefinition Height="auto" />
					<RowDefinition Height="auto" />
					<RowDefinition Height="auto" />
				</Grid.RowDefinitions>
				<Grid Grid.Row="0">
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="auto" />
						<ColumnDefinition Width="auto" />
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="auto" />
						<ColumnDefinition Width="auto" />
					</Grid.ColumnDefinitions>
					<local:LinkText Grid.Column="0" Margin="2" FontWeight="UltraBold" Text="{Binding Path=User.Name, Mode=OneWay}"
						OpenUri="{Binding Path=User, Converter={StaticResource TwitterUserToUserHomeUriConverter}}"
						Foreground="{Binding Path=User.ProfileLinkColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
						Background="#00000000" />
					<TextBlock Grid.Column="1" Margin="4,2,4,2" Text="/"
						Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}" />
					<TextBlock Grid.Column="2" Margin="2" Text="{Binding Path=User.ScreenName, Mode=OneWay}"
						Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
						Background="#00000000" />
					<TextBlock Grid.Column="3" Margin="2" Text="{Binding Path=User.Location, Mode=OneWay}"
						Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
						Background="#00000000" />
					<TextBlock Grid.Column="4" Margin="2" Text="{Binding Path=CreatedAt, Mode=OneWay, Converter={StaticResource DateTimeToStringConverter}}"
						Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
						Background="#00000000" />
				</Grid>
				<local:TwitterStatusTextViewer Grid.Row="1" Margin="2"
					Text="{Binding Path=Text, Mode=OneWay}"
					TextWrapping="Wrap" BorderThickness="0"
					Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
					HyperlinkForeground="{Binding Path=User.ProfileLinkColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}"
					Background="#00000000" />
				<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right">
					<TextBlock Text="from " />
					<local:LinkText OpenUri="{Binding Path=Source, Converter={StaticResource ExtractUriConverter}}" 
					Text="{Binding Path=Source, Converter={StaticResource RemoveHtmlTagsConverter}}" 
					Foreground="{Binding Path=User.ProfileTextColor, Converter={StaticResource Int32ToSolidColorBrushConverter}}" />
				</StackPanel>
			</Grid>
		</Grid>
	</Border>
</UserControl>