Ejemplo n.º 1
0
        public PropertiesControl()
        {
            LayoutRoot = new Grid();

            LayoutRoot = new Grid();
            LayoutRoot.RowDefinitions.Add(new RowDefinition()
            {
                Height = GridLength.Auto
            });
            LayoutRoot.RowDefinitions.Add(new RowDefinition());

            m_PropertiesOwnerControl                          = new ContentControl();
            m_PropertiesOwnerControl.Margin                   = new Thickness(3);
            m_PropertiesOwnerControl.VerticalAlignment        = VerticalAlignment.Center;
            m_PropertiesOwnerControl.VerticalContentAlignment = VerticalAlignment.Center;
            m_PropertiesOwnerControl.Visibility               = Visibility.Collapsed;
            LayoutRoot.Children.Add(m_PropertiesOwnerControl);

            m_PropertiesList        = new PropertiesListControl();
            m_PropertiesList.Margin = new Thickness(3);
            LayoutRoot.Children.Add(m_PropertiesList);
            Grid.SetRow(m_PropertiesList, 1);
            m_PropertiesList.Clear();

            this.Content = LayoutRoot;
        }
        public PropertiesControl()
        { 
            LayoutRoot = new Grid();

            LayoutRoot = new Grid();
            LayoutRoot.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            LayoutRoot.RowDefinitions.Add(new RowDefinition());

            m_PropertiesOwnerControl = new ContentControl();
            m_PropertiesOwnerControl.Margin = new Thickness(3);
            m_PropertiesOwnerControl.VerticalAlignment = VerticalAlignment.Center;
            m_PropertiesOwnerControl.VerticalContentAlignment = VerticalAlignment.Center;
            m_PropertiesOwnerControl.Visibility = Visibility.Collapsed;
            LayoutRoot.Children.Add(m_PropertiesOwnerControl);

            m_PropertiesList = new PropertiesListControl();
            m_PropertiesList.Margin = new Thickness(3);
            LayoutRoot.Children.Add(m_PropertiesList);
            Grid.SetRow(m_PropertiesList, 1);
            m_PropertiesList.Clear();

            this.Content = LayoutRoot;
        }
Ejemplo n.º 3
0
 public void Clear()
 {
     m_PropertiesOwnerControl.Content = null;
     m_PropertiesList.Clear();
 }