private void CPublishingResultsLogWnd_Loaded(object sender, RoutedEventArgs e)
        {
            Measure(GlobalDefines.STD_SIZE_FOR_MEASURE);
            MinWidth  = DesiredSize.Width;
            MinHeight = DesiredSize.Height;

            tctrlComps.Width  = tctrlComps.MinWidth = GlobalDefines.GetActualControlWidth(grdItems);
            tctrlComps.Height = tctrlComps.MinHeight = GlobalDefines.GetActualControlHeight(grdItems);

            tctrlComps.MaxHeight = tctrlComps.MaxWidth = double.PositiveInfinity;

            m_IsLoaded = true;
        }
Exemple #2
0
        private void CLogWnd_Loaded(object sender, RoutedEventArgs e)
        {
            Measure(GlobalDefines.STD_SIZE_FOR_MEASURE);
            MinWidth  = DesiredSize.Width;
            MinHeight = DesiredSize.Height;

            lstvItems.Width  = lstvItems.MinWidth = GlobalDefines.GetActualControlWidth(grdItems);
            lstvItems.Height = lstvItems.MinHeight = GlobalDefines.GetActualControlHeight(grdItems);

            lstvItems.MaxHeight = lstvItems.MaxWidth = double.PositiveInfinity;

            (txtblkExceptionsHeader.Parent as Control).HorizontalContentAlignment = System.Windows.HorizontalAlignment.Left;

            if (m_Items.Count > 0)
            {
                LastHeaderClicked.Column.HeaderTemplate = DBManagerApp.m_AppSettings.m_Settings.m_GlobalResources["ListViewHeaderTemplateAsc"] as DataTemplate;
            }

            m_IsLoaded = true;
        }