2016-04-04 10 views
1

ayırıcı bölmesinde rengini belirleyin ve bu istediğim renktir: # 7FC6C8 Ben bu işe denemek ama how can specify for this color ve bu kodu:i bölmesi splitter rengini belirtmek istiyorum

@Html.DevExpress().Splitter(
     settings => 
     { 
      settings.Name = "body"; 
      settings.Orientation = Orientation.Vertical; 
      settings.FullscreenMode = true; 
      settings.ShowCollapseBackwardButton = true; 
      settings.SeparatorVisible = false; 

      settings.Panes.Add(pane => 
      { 
       pane.Name = "FirstSplitter"; 
       pane.Size = Unit.Pixel(85); 


       ****pane.PaneStyle.BackColor = System.Drawing.Color.Red;**** 

       pane.Panes.Add(contentPane => 
       { 
        contentPane.PaneStyle.BorderTop.BorderWidth = Unit.Pixel(0); 
        contentPane.PaneStyle.BorderBottom.BorderWidth = Unit.Pixel(0); 
        contentPane.PaneStyle.BorderRight.BorderWidth = Unit.Pixel(0); 
        contentPane.PaneStyle.BorderLeft.BorderWidth = Unit.Pixel(0); 

        contentPane.Size = Unit.Percentage(8); 

Bu iş ancak nasıl bir renk belirtebilirim? # 7FC6C8: ve bu çalışma nasıl renk belirtilir ** pane.PaneStyle.BackColor = System.Drawing.Color.Red; ** ve teşekkürler

cevap

1

Özel rengi tanımlayın kodunda ve sonra BackColor'u ayarlarken kullanın. Yani # 7FC6C8 için 127,198,200. 7F = 127, C6 = 198 ve C8 = 200:

Color CustomColor = Color.FromArgb(127, 198, 200); 
pane.PaneStyle.BackColor = CustomColor; 
İlgili konular