public void Initialize(Placeholder control)
        {
            control.Width = 150;
            control.Height = 150;
            viewModel = new MyViewModel();

            control.DataContext = viewModel;
            control.SetBinding(UIElement.OpacityProperty, new Binding("Opacity"));
        }
        public void Initialize(Border control)
        {
            control.Width = 400;
            control.Height = 300;
            control.Background = StyleResources.Colors["Mac.Lavender"] as Brush;
            control.Padding = new Thickness(10);

            widgetGroup = new WidgetGroup{Title = "My Title", Padding = new Thickness(5)};
            control.Child = widgetGroup;

            // Sample content.
            content = new Placeholder();
            Change_DataContext_On_Content(control);
            content.SetBinding(Placeholder.TextProperty, new Binding("Text"));
            widgetGroup.Content = content;
        }
 public void DataBind_To_Text(Placeholder control)
 {
     var model = new SampleModel { Text = "Sample Text" };
     control.DataContext = model;
     control.SetBinding(Placeholder.TextProperty, new Binding("Text"));
 }