e.DetailsElement in silverlight

Posted by prince23 on Stack Overflow See other posts from Stack Overflow or by prince23
Published on 2010-05-25T07:24:39Z Indexed on 2010/05/25 7:31 UTC
Read the original article Hit count: 508

Filed under:
|

hi,

is there any way i can write this code in a function() right now what is happening in function is
it tells e.Row.DetailsVisibility
e.DetailsElement.ActualHeight
it is not able to find this it is telling is there any way i can get this e.DetailsElement.ActualHeight

if (e.Row.DetailsVisibility == Visibility.Visible)
            {
                Dispatcher.BeginInvoke(() =>
                {
                    DataGrid datagrid = sender as DataGrid;
                    if (datagrid != null)
                    {
                        datagrid.Tag = e.DetailsElement.ActualHeight;
                        datagrid.Height = datagrid.ActualHeight + e.DetailsElement.ActualHeight;
                    }
                }
                );
            }
            else
            {
                DataGrid datagrid = sender as DataGrid;
                if(datagrid.Tag!=null)
                    datagrid.Height = datagrid.ActualHeight - System.Convert.ToDouble(datagrid.Tag);

            }
        }

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about 4