This question is locked. New answers and comments are not allowed.
In other controls I have used in the past, there was a titlebar (or in yourcase header) DialogEventHandler that I could call to do something when someone left clicks the Header to drag the window. The reason I need this is because I have an HTMLplaceholder inside another window and due to the Silveright/htmlplaceholder iframe restrictions, cannot hide itsellf behind the other Window. I would like to set the HTMLplaceholder part not visible when the other window is selected... Can someone please point me where I should be looking for this if there is such a thing? I tried the Drag Events, but these do not seem to trigger
Thanks in advance
Added information..... I seem not to be able to use the GotFocus events at all for some reason... I have a breakpoint and it is never even hitting the GotFocus event?? Trying to do GotFocused on the Rad Window with Silverlight Header in Code below...
Code :
Thanks in advance
Added information..... I seem not to be able to use the GotFocus events at all for some reason... I have a breakpoint and it is never even hitting the GotFocus event?? Trying to do GotFocused on the Rad Window with Silverlight Header in Code below...
Code :
| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Net; |
| using System.Windows; |
| using System.Windows.Controls; |
| using System.Windows.Documents; |
| using System.Windows.Input; |
| using System.Windows.Media; |
| using System.Windows.Media.Animation; |
| using System.Windows.Shapes; |
| using Telerik.Windows.Controls; |
| namespace RadControlsSilverlightApp1 |
| { |
| public partial class MainPage : UserControl |
| { |
| #region GLOBALS |
| RadHtmlPlaceholder GoogleHolder = new RadHtmlPlaceholder(); |
| RadWindow GoogleWindow = new RadWindow(); |
| RadWindow Silverlight = new RadWindow(); |
| #endregion |
| public MainPage() |
| { |
| InitializeComponent(); |
| } |
| private void button1_Click(object sender, RoutedEventArgs e) |
| { |
| dialog1.Show(); |
| } |
| private void RadControlbutton_Click(object sender, RoutedEventArgs e) |
| { |
| // Make placeholder |
| GoogleHolder.Height = Double.NaN; |
| GoogleHolder.Width = Double.NaN; |
| GoogleHolder.SourceUrl = new Uri("http://www.google.com"); |
| //Make Rad Control |
| GoogleWindow.Content = GoogleHolder; |
| GoogleWindow.Header = "Google Demo"; |
| LayoutRoot.Children.Add(GoogleWindow); |
| GoogleWindow.Height = 300; |
| GoogleWindow.Width = 300; |
| GoogleWindow.Show(); |
| //Make Rad Control |
| Silverlight.Content = "TEsting 123"; |
| Silverlight.Header = "Silverlight Demo"; |
| LayoutRoot.Children.Add(Silverlight); |
| Silverlight.Height = 300; |
| Silverlight.Width = 300; |
| Silverlight.GotFocus += new RoutedEventHandler(Silverlight_GotFocus); |
| Silverlight.Show(); |
| } |
| void Silverlight_GotFocus(object sender, RoutedEventArgs e) |
| { |
| GoogleWindow.Visibility = Visibility.Collapsed; |
| } |
| } |
| } |