Exemplo n.º 1
0
 //not sure about either - xaml only needed if using it
 //wpfClockView could just know how to get from an embedded resource
 public HostedClockView()
 {
     var wpfClockView = new WPFClockView();
     this.Child = wpfClockView;
     this.wpfClockView = wpfClockView;
     this.AutoSize = true;
     this.SetAutoSizeMode(System.Windows.Forms.AutoSizeMode.GrowAndShrink);
     
 }
Exemplo n.º 2
0
        //not sure about either - xaml only needed if using it
        //wpfClockView could just know how to get from an embedded resource
        public HostedClockView()
        {
            var wpfClockView = new WPFClockView();

            this.Child        = wpfClockView;
            this.wpfClockView = wpfClockView;
            this.AutoSize     = true;
            this.SetAutoSizeMode(System.Windows.Forms.AutoSizeMode.GrowAndShrink);
        }