Пример #1
0
 public DefaultRenderersFactory(IServiceRegistry services)
 {
     defaultRenderer = new ElementRenderer(services);
     typeToRenderers[typeof(ImageElement)] = new DefaultImageRenderer(services);
     typeToRenderers[typeof(Button)] = new DefaultButtonRenderer(services);
     typeToRenderers[typeof(ImageButton)] = new ElementRenderer(services);
     typeToRenderers[typeof(ToggleButton)] = new ElementRenderer(services);
     typeToRenderers[typeof(TextBlock)] = new DefaultTextBlockRenderer(services);
     typeToRenderers[typeof(ScrollingText)] = new DefaultScrollingTextRenderer(services);
     typeToRenderers[typeof(ModalElement)] = new DefaultModalElementRenderer(services);
     typeToRenderers[typeof(ScrollBar)] = new DefaultScrollBarRenderer(services);
     typeToRenderers[typeof(EditText)] = new DefaultEditTextRenderer(services);
     typeToRenderers[typeof(ContentDecorator)] = new DefaultContentDecoratorRenderer(services);
     typeToRenderers[typeof(Border)] = new DefaultBorderRenderer(services);
     typeToRenderers[typeof(ToggleButton)] = new DefaultToggleButtonRenderer(services);
     typeToRenderers[typeof(Slider)] = new DefaultSliderRenderer(services);
 }