Inheritance: Open.Core.Common.ModelBase, IBackground
        /// <summary>Constructor.</summary>
        public DropdownDialogViewModel()
        {
            // Setup initial conditions.
            var black = Colors.Black.ToBrush();

            // Set default values.
            Mask = new BackgroundModel { Color = black, Opacity = 0.2 };
            Background = new BackgroundModel
                             {
                                 Color = Colors.White.ToBrush(),
                                 Opacity = 1,
                                 Border =
                                             {
                                                 Color = black, 
                                                 Opacity = 0.4,
                                                 Thickness = new Thickness(1, 0, 1, 1)
                                             },
                             };
            ButtonBar = new PromptButtonBarViewModel
                            {
                                Padding = new Thickness(8),
                                Background =
                                            {
                                                Color = black, 
                                                Opacity = 0.05,
                                                Border = { Color = black, Thickness = new Thickness(0, 1, 0, 0), Opacity = 0.1 }
                                            }
                            };

            // Wire up events.
            Buttons.Click += (s, e) => OnPromptButtonClick(e.ButtonType);

            // Finish up.
            OnPropertyChanged<T>(m => m.ButtonBar, m => m.Buttons, m => m.Mask, m => m.Background);
        }
 public void TestSetup()
 {
     abstractModel = BackgroundFactory.CreateExport().Value;
     model = abstractModel as BackgroundModel;
 }
 public PromptButtonBarViewModel()
 {
     Background = new BackgroundModel();
     Buttons = new PromptButtonsViewModel();
 }