public OrcasAvalonApplicationDocument(IHTMLElement e)
        {
            // wpf here
            var clip = new IHTMLDiv();

            clip.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.relative;
            clip.style.SetSize(TargetCanvas.DefaultWidth, TargetCanvas.DefaultHeight);
            clip.style.overflow = ScriptCoreLib.JavaScript.DOM.IStyle.OverflowEnum.hidden;

            if (e == null)
                clip.AttachToDocument();
            else
                e.insertPreviousSibling(clip);

            AvalonExtensions.AttachToContainer(new TargetCanvas(), clip);
        }
		public OrcasAvalonApplicationDocument(IHTMLElement e)
		{
			// wpf here
			var clip = new IHTMLDiv();

			clip.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.relative;
			clip.style.SetSize(TargetCanvas.DefaultWidth, TargetCanvas.DefaultHeight);
			clip.style.overflow = ScriptCoreLib.JavaScript.DOM.IStyle.OverflowEnum.hidden;

			if (e == null)
				clip.AttachToDocument();
			else
				e.insertPreviousSibling(clip);

			AvalonExtensions.AttachToContainer(new TargetCanvas(), clip);

		}
		public SolitaireDocument(IHTMLElement e)
		{
			Native.Document.body.style.backgroundColor = Color.Black;

			// wpf here
			var clip = new IHTMLDiv();

			clip.style.position = ScriptCoreLib.JavaScript.DOM.IStyle.PositionEnum.relative;
			clip.style.SetSize(TargetCanvas.DefaultWidth, TargetCanvas.DefaultHeight);
			clip.style.overflow = ScriptCoreLib.JavaScript.DOM.IStyle.OverflowEnum.hidden;

			var c = new IHTMLElement(IHTMLElement.HTMLElementEnum.center, clip);

			if (e == null)
				c.AttachToDocument();
			else
				e.insertPreviousSibling(c);

			new TargetCanvas().AttachToContainer(clip);

		}
Пример #4
0
        public HoverElement Clone()
        {
            HoverElement n = new HoverElement(TextContent.nodeValue, Manager);

            isClone = true;

            Element.style.padding = "4px";
            Element.style.border  = "1px dotted blue";

            Element.insertPreviousSibling(n.Element);
            Element.appendChild(new IHTMLElement(IHTMLElement.HTMLElementEnum.hr));
            Element.appendChild(ImageStan);

            ImageStan.style.Float = IStyle.FloatEnum.left;

            Element.style.position = IStyle.PositionEnum.absolute;

            Element.parentNode.appendChild(Element);


            return(n);
        }