Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;

// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236

namespace GuidaTv
{   
    public delegate void HorizontalOffsetChandedhandler(DependencyObject source, DependencyPropertyChangedEventArgs e);
    public sealed partial class Custom : UserControl
    {
        public event HorizontalOffsetChandedhandler HorizontalOffsetChanded;
      
        public static readonly DependencyProperty HorizontalOffsetProperty =
          DependencyProperty.Register(
              "HorizontalOffset",
              typeof(double),
              typeof(Custom),
              new PropertyMetadata(
                  0,
                  new PropertyChangedCallback(HorizontalOffsetProperty_Changed)));

        public double HorizontalOffset
        {
            get { return (double)GetValue(HorizontalOffsetProperty); }
            set { SetValue(HorizontalOffsetProperty, value); }
        }

        public static Custom instance;




        public Custom()
        {
            this.InitializeComponent();
            instance = this;
        }


        private static void HorizontalOffsetProperty_Changed(DependencyObject source, DependencyPropertyChangedEventArgs e)
        {
            if (instance.HorizontalOffsetChanded != null) {
                instance.HorizontalOffsetChanded(source, e);
            }
         
        }
    }
}

Commits for Nextrek/Windows8/GuidaTv/GuidaTv/Custom.xaml.cs

Diff revisions: vs.
Revision Author Commited Message
21 JMBauan picture JMBauan Wed 26 Jun, 2013 10:48:36 +0000