Revision 2f7c4288 trunk/Pithos.Client.WPF/Shell/PithosBalloon.xaml
b/trunk/Pithos.Client.WPF/Shell/PithosBalloon.xaml | ||
---|---|---|
5 | 5 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | 6 |
mc:Ignorable="d" |
7 | 7 |
xmlns:tb="http://www.hardcodet.net/taskbar" |
8 |
d:DesignHeight="120" d:DesignWidth="240" |
|
9 |
Height="90" |
|
10 |
Width="240" xmlns:my="clr-namespace:Pithos.Client.WPF.Shell"> |
|
8 |
Width="250" |
|
9 |
xmlns:my="clr-namespace:Pithos.Client.WPF.Shell" > |
|
11 | 10 |
<UserControl.Resources> |
12 | 11 |
<Storyboard x:Key="FadeIn"> |
13 | 12 |
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Opacity)"> |
... | ... | |
62 | 61 |
</EventTrigger> |
63 | 62 |
</UserControl.Triggers> |
64 | 63 |
<Grid x:Name="grid" MouseEnter="grid_MouseEnter"> |
65 |
<Border |
|
66 |
HorizontalAlignment="Stretch" |
|
67 |
Margin="5,5,5,5" |
|
64 |
<Grid.ColumnDefinitions> |
|
65 |
<ColumnDefinition Width="Auto"/> |
|
66 |
<ColumnDefinition Width="*"/> |
|
67 |
<ColumnDefinition Width="Auto"/> |
|
68 |
</Grid.ColumnDefinitions> |
|
69 |
<Grid.RowDefinitions> |
|
70 |
<RowDefinition Height="30" MaxHeight="30" /> |
|
71 |
<RowDefinition Height="Auto" MinHeight="50" /> |
|
72 |
</Grid.RowDefinitions> |
|
73 |
<Border Grid.RowSpan="2" Grid.ColumnSpan="3" Grid.Row="0" Grid.Column="0" |
|
74 |
HorizontalAlignment="Stretch" |
|
75 |
Margin="5" |
|
68 | 76 |
BorderThickness="1,1,1,1" |
69 | 77 |
BorderBrush="#FF379991"> |
70 | 78 |
<Border.Effect> |
... | ... | |
83 | 91 |
</LinearGradientBrush> |
84 | 92 |
</Border.Background> |
85 | 93 |
</Border> |
86 |
<Image |
|
94 |
<StackPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" VerticalAlignment="Stretch"> |
|
95 |
<Image |
|
87 | 96 |
HorizontalAlignment="Left" |
88 |
Margin="10,17,0,0" |
|
97 |
Margin="10,17,10,0"
|
|
89 | 98 |
Width="48" |
90 |
Stretch="None" Height="72" VerticalAlignment="Top"
|
|
99 |
Stretch="None" Height="48" VerticalAlignment="Top"
|
|
91 | 100 |
Source="/Images/Info.png"/> |
92 |
|
|
93 |
<TextBlock |
|
94 |
Margin="72,41,10,0" |
|
95 |
VerticalAlignment="Top" |
|
96 |
Foreground="Black" |
|
97 |
TextWrapping="Wrap" Text="{Binding Message,FallbackValue='This is the message text'}" Height="36"> |
|
101 |
|
|
102 |
|
|
103 |
</StackPanel> |
|
104 |
<TextBlock Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" |
|
105 |
Margin="0,5,10,10" |
|
106 |
VerticalAlignment="Top" |
|
107 |
Foreground="Black" |
|
108 |
TextWrapping="Wrap" |
|
109 |
Text="{Binding Message,FallbackValue='This is a message'}" |
|
110 |
Width="Auto" Grid.RowSpan="2"> |
|
98 | 111 |
</TextBlock> |
99 | 112 |
|
100 |
<Path |
|
101 |
Fill="#FFFFFFFF" |
|
113 |
<Path Grid.Column="1" Fill="#FFFFFFFF" |
|
102 | 114 |
Stretch="Fill" |
103 |
Margin="72,34,34,0"
|
|
115 |
Margin="0,34,34,0"
|
|
104 | 116 |
VerticalAlignment="Top" |
105 | 117 |
Height="1" |
106 | 118 |
Data="M26,107 L220.04123,107" SnapsToDevicePixels="True"> |
... | ... | |
117 | 129 |
</LinearGradientBrush> |
118 | 130 |
</Path.Stroke> |
119 | 131 |
</Path> |
120 |
<TextBlock Margin="72,10,10,0" VerticalAlignment="Top" Height="23.2" Text="{Binding Path=Title, FallbackValue='Pithos'}" TextWrapping="Wrap" Foreground="White" FontWeight="Bold"/>
|
|
121 |
<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"/> |
|
132 |
<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"/>
|
|
133 |
<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"/>
|
|
122 | 134 |
</Grid> |
123 | 135 |
</UserControl> |
Also available in: Unified diff