Example #1
0
 public void RenderModel(ArchViewModel model)
 {
     foreach (var layer in model.Layers)
     {
         MasterPanel.Children.Add(ViewModelGenerator.CreateViewFromViewModel(layer).UiElement);
     }
 }
Example #2
0
 private static void RenderViewModelToBitmap(ArchViewModel viewModel,[NotNull] string path, int scale = 1, double maxWidth = double.PositiveInfinity, double maxheight = double.PositiveInfinity)
 {
     var control = new Views.Diagram(viewModel);
     RenderControlToBitmap(control, path,scale, maxWidth, maxheight);
 }
Example #3
0
 public Diagram(ArchViewModel model)
 {
     InitializeComponent();
     RenderModel(model);
 }