예제 #1
0
        public void DeepLinkingNoTargetNameTest()
        {
            MyHyperlinkTarget target = new MyHyperlinkTarget();
            MyHyperlinkButton hlb    = new MyHyperlinkButton();

            hlb.NavigateUri = new Uri("DeepLink", UriKind.Relative);

            Canvas root = new Canvas();

            root.Children.Add(target);
            root.Children.Add(hlb);

            CreateAsyncTest(root, () => {
                hlb.Clickify();
                Assert.IsTrue(target.Navigated, "Deep linked target navigation");
            });
        }
예제 #2
0
		public void DeepLinkingNoTargetNameTest ()
		{
			MyHyperlinkTarget target = new MyHyperlinkTarget ();
			MyHyperlinkButton hlb = new MyHyperlinkButton ();
			hlb.NavigateUri = new Uri ("DeepLink", UriKind.Relative);
			
			Canvas root = new Canvas ();
			root.Children.Add (target);
			root.Children.Add (hlb);

			CreateAsyncTest (root, () => {
				hlb.Clickify ();
				Assert.IsTrue (target.Navigated, "Deep linked target navigation");
			});
		}