Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
HeaderTextHorizontalAlignment No WOrking
posted

I am using a xamGrid in my SL4 app. I am manually creating some columns, not using XAML. At the time that i am constructing the column I am setting HeaderTextHorizontalAlignment = HorizontalAlignment.Center yet I am not seeing the column header centered. What am I doing wrong?



Parents
  • 585
    posted

    Here is the exact code 

    TextColumn
     c2 = new TextColumn
                            {
                              Key = "CustomerNumber",
                              HeaderText = "Customer\nNo.",
                              HorizontalContentAlignment = HorizontalAlignment.Center,
                              HeaderTextHorizontalAlignment = HorizontalAlignment.Center
                            };
          _orderConfigurationGrid.Columns.Add(c2);

Reply Children