2016-05-27 5 views
0

ダッシュボードを表示するためにWindowsフォームホストを作成しています。c#wpf - windowsフォームのホストの境界線の色

ボーダーが表示されていますが、どうすれば削除できますか?

現在は:

グリッドを作成しています。

<Grid Name="winForms" Grid.Row="1"/> 

ダッシュボードにバインドします。

// Create the interop host control. 
      System.Windows.Forms.Integration.WindowsFormsHost host = 
       new System.Windows.Forms.Integration.WindowsFormsHost(); 
      this.winForms.Children.Add(host); 



      //THIS SHIT SHOWS A DESIGNER LOL 
      System.Windows.Forms.UserControl uc = new System.Windows.Forms.UserControl(); 
      DevExpress.DashboardWin.DashboardViewer dd = new DevExpress.DashboardWin.DashboardViewer(); 

      dd.BorderStyle = System.Windows.Forms.BorderStyle.None; 


      dd.DashboardSource = "DashboardFiles/KPI.xml"; 
      uc.Controls.Add(dd); 
      dd.Dock = System.Windows.Forms.DockStyle.Fill; 
      //dd.CreateRibbon(); 
      host.Child = uc; 

私は境界線がダッシュボードビューアに属していたと考えましたが、それはありません。

enter image description here

答えて

0

変更FormBorderStyleデザインビューでプロパティまたは他のあなたは、このように背後にあるコードでプロパティFormBorderStyleを設定することができます。

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 
関連する問題