public WaypointMarker(MainWindow window, string title) { this.InitializeComponent(); this.MainWindow = window; Popup = new Popup(); Popup.SetValue(Canvas.ZIndexProperty, 900); Label = new Label(); this.Loaded += new RoutedEventHandler(WaypointMarker_Loaded); this.MouseEnter += new MouseEventHandler(WaypointMarker_MouseEnter); this.MouseLeave += new MouseEventHandler(WaypointMarker_MouseLeave); Popup.Placement = PlacementMode.Mouse; Label.Background = Brushes.Blue; Label.Foreground = Brushes.White; Label.BorderBrush = Brushes.WhiteSmoke; Label.BorderThickness = new Thickness(1); Label.Padding = new Thickness(5); Label.FontSize = 14; Label.Content = title; Popup.Child = Label; }
public static void SetIsEnabled(Popup popup, bool value) { popup.SetValue(IsEnabledProperty, value); }
public static void SetPlacementChild(Windows.Popup popup, FrameworkElement placementChild) { //popup.AssertNotNull("popup"); popup.SetValue(PlacementChildProperty, placementChild); }
public static void SetStaysOpen(Windows.Popup popup, bool staysOpen) { //popup.AssertNotNull("popup"); popup.SetValue(StaysOpenProperty, staysOpen); }
public static void SetActualOrientation(Windows.Popup popup, PopupOrientation orientation) { //popup.AssertNotNull("popup"); popup.SetValue(ActualOrientationProperty, orientation); }
public static void SetPreferredOrientations(Windows.Popup popup, PopupOrientationCollection orientations) { //popup.AssertNotNull("popup"); popup.SetValue(PreferredOrientationsProperty, orientations); }