Beispiel #1
0
        public override void UIThreadInitialise()
        {
            _toolContent = new System.Windows.Controls.ContentControl();
            //_toolContent.Padding = new System.Windows.Thickness(3);
            //_toolContent.Margin = new System.Windows.Thickness(2);
            SplitButton b = new SplitButton();

            b.SetResourceReference(Control.StyleProperty, "IconSplitButtonStyle");

            b.Content = Icon;
            b.Command = ExecuteCommand;


            //Border r = new Border();
            //r.BorderThickness = new System.Windows.Thickness(1);
            //r.BorderBrush = Brushes.Red;
            //r.Background = Brushes.LightGreen;
            //r.Height = 100;
            //r.Width = 100;

            //DropDownContent = new ContentControl();
            //DropDownContent.Content = r;
            //DropDownContent.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
            b.DropDownContent    = DropDownContent;
            _toolContent.Content = b;
        }