Arranges all child elements to occupy the entire available area.
Inheritance: Layout
示例#1
0
        /// <summary>
        /// Initialize a new instance of the MetaPanelBase class.
        /// </summary>
        public MetaPanelBase()
        {
            // List used to collect entries that are to be removed from panel
            _removeList = new MetaElementStateList();

            // Use dictionary to associate each element with its animation state
            _stateDict = new MetaElementStateDict();

            // Create and monitor changes in the layout collection
            _layoutCollection                    = new LayoutCollection(this);
            _layoutCollection.NeedMeasure       += new EventHandler(OnNeedMeasure);
            _layoutCollection.CollectionChanged += new EventHandler(OnNeedMeasure);
            MonitorExtendElement(_layoutCollection);

            // Create and monitor changes in the animate collection
            _animateCollection              = new AnimateDefinitions(this);
            _animateCollection.NeedMeasure += new EventHandler(OnNeedMeasure);
            MonitorExtendElement(_animateCollection);

            // Default layout/animate to be applied as the default in case collections are empty or not applied
            _defaultLayout  = new StretchLayout();
            _defaultAnimate = new NullAnimate();

            // Let the Silverlight/WPF specific construction take place
            PlatformConstructor();
        }
示例#2
0
 private void Stretch_Click(object sender, RoutedEventArgs e)
 {
     ComponentFactory.Quicksilver.Layout.StretchLayout layout = new ComponentFactory.Quicksilver.Layout.StretchLayout();
     TargetPanel.LayoutDefinitions.Clear();
     TargetPanel.LayoutDefinitions.Add(layout);
 }
 private void Stretch_Click(object sender, RoutedEventArgs e)
 {
     ComponentFactory.Quicksilver.Layout.StretchLayout layout = new ComponentFactory.Quicksilver.Layout.StretchLayout();
     TargetPanel.LayoutDefinitions.Clear();
     TargetPanel.LayoutDefinitions.Add(layout);
 }
        /// <summary>
        /// Initialize a new instance of the MetaPanelBase class.
        /// </summary>
        public MetaPanelBase()
        {
            // List used to collect entries that are to be removed from panel
            _removeList = new MetaElementStateList();

            // Use dictionary to associate each element with its animation state
            _stateDict = new MetaElementStateDict();

            // Create and monitor changes in the layout collection
            _layoutCollection = new LayoutCollection(this);
            _layoutCollection.NeedMeasure += new EventHandler(OnNeedMeasure);
            _layoutCollection.CollectionChanged += new EventHandler(OnNeedMeasure);
            MonitorExtendElement(_layoutCollection);

            // Create and monitor changes in the animate collection
            _animateCollection = new AnimateDefinitions(this);
            _animateCollection.NeedMeasure += new EventHandler(OnNeedMeasure);
            MonitorExtendElement(_animateCollection);

            // Default layout/animate to be applied as the default in case collections are empty or not applied
            _defaultLayout = new StretchLayout();
            _defaultAnimate = new NullAnimate();

            // Let the Silverlight/WPF specific construction take place
            PlatformConstructor();
        }