AerialForWindows.UIHelper.TabControlEx.OnApplyTemplate C# (CSharp) Method

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            var contentHost = GetTemplateChild("PART_SelectedContentHost") as FrameworkElement;
            Debug.Assert(contentHost != null);

            contentHost.SetBinding(MinWidthProperty, new Binding {
                Path = new PropertyPath("Items"),
                Source = this,
                Converter = new MaxDimensionConverter(false)
            });
            contentHost.SetBinding(MinHeightProperty, new Binding {
                Path = new PropertyPath("Items"),
                Source = this,
                Converter = new MaxDimensionConverter(true)
            });
        }
TabControlEx