xmlns:d="http://schemas.microsoft.com/expression/blend/2008" \r
mc:Ignorable="d" \r
xmlns:tb="http://www.hardcodet.net/taskbar"\r
- d:DesignHeight="120" d:DesignWidth="240"\r
- Height="90"\r
- Width="240" xmlns:my="clr-namespace:Pithos.Client.WPF.Shell">\r
+ Width="250"\r
+ xmlns:my="clr-namespace:Pithos.Client.WPF.Shell" >\r
<UserControl.Resources>\r
<Storyboard x:Key="FadeIn">\r
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)">\r
<BeginStoryboard Storyboard="{StaticResource FadeOut}" x:Name="FadeOut_BeginStoryboard"/>\r
</EventTrigger>\r
</UserControl.Triggers>\r
- <Grid x:Name="grid" MouseEnter="grid_MouseEnter">\r
- <Border\r
- HorizontalAlignment="Stretch"\r
- Margin="5,5,5,5"\r
+ <Grid x:Name="grid" MouseEnter="grid_MouseEnter" >\r
+ <Grid.ColumnDefinitions>\r
+ <ColumnDefinition Width="Auto"/>\r
+ <ColumnDefinition Width="*"/>\r
+ <ColumnDefinition Width="Auto"/>\r
+ </Grid.ColumnDefinitions>\r
+ <Grid.RowDefinitions>\r
+ <RowDefinition Height="30" MaxHeight="30" />\r
+ <RowDefinition Height="Auto" MinHeight="50" />\r
+ </Grid.RowDefinitions>\r
+ <Border Grid.RowSpan="2" Grid.ColumnSpan="3" Grid.Row="0" Grid.Column="0"\r
+ HorizontalAlignment="Stretch" \r
+ Margin="5"\r
BorderThickness="1,1,1,1"\r
BorderBrush="#FF379991">\r
<Border.Effect>\r
</LinearGradientBrush>\r
</Border.Background>\r
</Border>\r
- <Image\r
+ <StackPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Stretch">\r
+ <Image \r
HorizontalAlignment="Left"\r
- Margin="10,17,0,0"\r
+ Margin="10,17,10,0"\r
Width="48" \r
- Stretch="None" Height="72" VerticalAlignment="Top" \r
+ Stretch="None" Height="48" VerticalAlignment="Top" \r
Source="/Images/Info.png"/>\r
- \r
- <TextBlock\r
- Margin="72,41,10,0"\r
- VerticalAlignment="Top"\r
- Foreground="Black"\r
- TextWrapping="Wrap" Text="{Binding Message,FallbackValue='This is the message text'}" Height="36">\r
+\r
+\r
+ </StackPanel>\r
+ <TextBlock Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"\r
+ Margin="0,5,10,10"\r
+ VerticalAlignment="Top"\r
+ Foreground="Black" \r
+ TextWrapping="Wrap" \r
+ Text="{Binding Message,FallbackValue='This is a message'}" \r
+ Width="Auto" Grid.RowSpan="2" MouseDown="TextBlock_MouseDown"\r
+ >\r
</TextBlock>\r
\r
- <Path\r
- Fill="#FFFFFFFF"\r
+ <Path Grid.Column="1" Fill="#FFFFFFFF"\r
Stretch="Fill"\r
- Margin="72,34,34,0"\r
+ Margin="0,34,34,0"\r
VerticalAlignment="Top"\r
Height="1"\r
Data="M26,107 L220.04123,107" SnapsToDevicePixels="True">\r
</LinearGradientBrush>\r
</Path.Stroke>\r
</Path>\r
- <TextBlock Margin="72,10,10,0" VerticalAlignment="Top" Height="23.2" Text="{Binding Path=Title, FallbackValue='Pithos'}" TextWrapping="Wrap" Foreground="White" FontWeight="Bold"/>\r
- <Image HorizontalAlignment="Right" Margin="0,10,10,0" VerticalAlignment="Top" Width="16" Height="16" Source="/Images/Close.png" Stretch="Fill" Opacity="0.7" ToolTip="Close Balloon" x:Name="imgClose" MouseDown="imgClose_MouseDown"/>\r
+ <TextBlock Grid.Column="1" Grid.ColumnSpan="2" Margin="0,10,10,0" VerticalAlignment="Top" Height="23.2" Text="{Binding Path=Title, FallbackValue='Pithos'}" TextWrapping="Wrap" Foreground="White" FontWeight="Bold"/>\r
+ <Image Grid.Column="2" HorizontalAlignment="Right" Margin="0,10,10,0" VerticalAlignment="Top" Width="16" Height="16" Source="/Images/Close.png" Stretch="Fill" Opacity="0.7" ToolTip="Close Balloon" x:Name="imgClose" MouseDown="imgClose_MouseDown"/>\r
</Grid>\r
</UserControl>\r