예제 #1
0
        public void InitForPullToRefresh()
        {
            AppTipBubbleUC appTipBubbleUc = new AppTipBubbleUC();

            ((FrameworkElement)appTipBubbleUc.LayoutRoot).Width = 277.0;
            ((FrameworkElement)appTipBubbleUc).Margin           = (new Thickness(90.0, 96.0, 0.0, 0.0));
            ((FrameworkElement)appTipBubbleUc.imageTip).Width   = 66.0;
            ((FrameworkElement)appTipBubbleUc.imageTip).Height  = 117.0;
            ImageLoader.SetUriSource(appTipBubbleUc.imageTip, "/Resources/New/PullToRefreshTip.png");
            appTipBubbleUc.textBlockTip.Text = CommonResources.PullToRefreshTip;
            ((PresentationFrameworkCollection <UIElement>)((Panel)this.LayoutRoot).Children).Add((UIElement)appTipBubbleUc);
        }
예제 #2
0
        public void InitForSwipeFromLeftSideTip()
        {
            AppTipBubbleUC appTipBubbleUc = new AppTipBubbleUC();

            ((FrameworkElement)appTipBubbleUc.LayoutRoot).Width = 293.0;
            ((FrameworkElement)appTipBubbleUc).Margin           = (new Thickness(16.0, 96.0, 0.0, 0.0));
            ((FrameworkElement)appTipBubbleUc.imageTip).Width   = 100.0;
            ((FrameworkElement)appTipBubbleUc.imageTip).Height  = 92.0;
            ImageLoader.SetUriSource(appTipBubbleUc.imageTip, "/Resources/New/SwipeMenuTip.png");
            appTipBubbleUc.textBlockTip.Text = CommonResources.SwipeToOpenMenuTip;
            ((PresentationFrameworkCollection <UIElement>)((Panel)this.LayoutRoot).Children).Add((UIElement)appTipBubbleUc);
        }