pop up not showing up

Recently we moved our WPF Application on dot net 6, and we discovered that one of the one of the control is not working. It kind of a custom combo box control that work as a popup to a button, so whenever we click on the button a popup is shown, but after migration that pop up is not visible.

// this is the control that is supposed to popup on button click
public class BalloonControl : ContentControl
{
  static BalloonControl()
  {
    DefaultStyleKeyProperty.OverrideMetadata(typeof(BalloonControl), new FrameworkPropertyMetadata(typeof(BalloonControl)));
  }

// some properties like 



public void Show()
{
_Popup = new Popup()
{
  RenderTransform = new ScaleTransform(App.Window.ApplicationScale, App.Window.ApplicationScale),
  Focusable = true,
  MinWidth = MinWidth,
  PlacementTarget = Target as FrameworkElement,
  Child = this,
  AllowsTransparency = true,
  StaysOpen = false,
  Placement = Placement,
  PlacementRectangle = PlacementRectangle,
  PopupAnimation = PopupAnimation.Slide
};
this.SizeChanged += (s, e) =>
{
  if (Placement == PlacementMode.Top || Placement == PlacementMode.Bottom)
  {
    if (UseCanvasScale)
    {
      Graphic.GraphicCanvas canvas = Graphic.GraphicCanvas.FocusedCanvas;
      _Popup.HorizontalOffset = (-e.NewSize.Width / 2) / canvas.CanvasScale.ScaleX;
    }
    else
    {
      _Popup.HorizontalOffset = -e.NewSize.Width / 2;
    }
  }
};
_Popup.Opened += (s, e) =>
{
  Mouse.Capture(_Popup.Child, CaptureMode.SubTree);
  // right now up or down only
  if (PointerOrientation == Common.PointerOrientation.Bottom)
  {
    var target = Target as FrameworkElement;
    if (target != null)
    {
      Point pt = target.TranslatePoint(PlacementRectangle.TopLeft, Content as FrameworkElement);
      if (pt.Y > 0)
      {
        PointerOrientation = QSC.Common.PointerOrientation.Top;
      }
    }
  }
};
_Popup.Closed += (s, e) =>
  {
    if( IsCancelled )
    {
      if (OnCancel != null) OnCancel(this, new EventArgs());
    }
    else
    {
      if (OnApply != null) OnApply(this, new EventArgs());
    }
  };
_Popup.IsOpen = true;
}

}

// This is how the above piece of code is being called

onButtonclick()
{
 Graphic.GraphicCanvas.FocusedCanvas = canvas;
 
 // show popup
 var list = new windows.ComboBoxPopup()
 {
   MinWidth = Style.Size.Width * canvas.CanvasScale.ScaleX,
   MaxHeight = 1080 * canvas.CanvasScale.ScaleY,
   FontSize = CssStyle.FontSize * canvas.CanvasScale.ScaleX,
 };
 list.Background = Brushes.Transparent;
 Util.FontManager.StuffControl(CssStyle, list);
 //Point tx = TransformToVisual(canvas).Transform(new Point(rc.Width / 2, 0));

 Point tx = new Point((rc.Width / 2) + rc.X, rc.Y);

 list.Choices = Style.Value.Choices.Select(c => new ListBoxItem(c, ActualTextColor, CssStyle) { HorizontalAlignment = Design.AlignmentConverters.ToWindows(_Overrider.HorizontalAlignment) } );
 list.SelectedValue = list.Choices.FirstOrDefault(v => v.JSON == Style.Value.String);

 double scale = canvas.CanvasScale.ScaleX;
 var balloon = new windows.BalloonControl()
 {
   MinWidth = Style.Size.Width * scale,
   Content = list,
   Ratio = 0.5,
   Foreground = new SolidColorBrush(_Style.TextColor),
   Target = GraphicCanvas,
   Placement = PlacementMode.Bottom,
   PlacementRectangle = new Rect(tx.X, tx.Y, Size.Width, Size.Height),
   Background = Util.Frozen.CreateBrush(CssStyle.BackgroundColor),
   BorderBrush = Util.Frozen.CreateBrush(CssStyle.Border2.Color.Left)
 };

ballon.show();


}



When I remove the Content, which a content propert in ContentControl class, from the balloon object and set listbox as child directly in BallononControl show method, the pop up works, just styling is the issue.

I’m mostly concerned with why this behavior is happening is there something I can do to fix it.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật