Revision f2d88248 trunk/Pithos.Client.WPF/Shell/PithosBalloon.xaml.cs

b/trunk/Pithos.Client.WPF/Shell/PithosBalloon.xaml.cs
133 133
      /// </summary>
134 134
      private void imgClose_MouseDown(object sender, MouseButtonEventArgs e)
135 135
      {
136
        //the tray icon assigned this attached property to simplify access
137
        TaskbarIcon taskbarIcon = TaskbarIcon.GetParentTaskbarIcon(this);
138
        taskbarIcon.CloseBalloon();
136
          //the tray icon assigned this attached property to simplify access
137
          CloseBalloon();
139 138
      }
140
  
141
      /// <summary>
139

  
140
        private void CloseBalloon()
141
        {
142
            TaskbarIcon taskbarIcon = TaskbarIcon.GetParentTaskbarIcon(this);
143
            taskbarIcon.CloseBalloon();
144
        }
145

  
146
        /// <summary>
142 147
      /// If the users hovers over the balloon, we don't close it.
143 148
      /// </summary>
144 149
      private void grid_MouseEnter(object sender, MouseEventArgs e)
......
163 168
        Popup pp = (Popup)Parent;
164 169
        pp.IsOpen = false;
165 170
      }
171

  
172
      private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
173
      {
174
          CloseBalloon();
175
          if (ClickAction!= null)
176
          {
177
              ClickAction();
178
          }          
179
          
180
      }
181

  
182
      public Action ClickAction { get; set; }
166 183
   }
167 184
}

Also available in: Unified diff