Esempio n. 1
0
        public ProfileHeader()
        {
            InitializeComponent();
            DescriptionLabel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(About_ContextRequested), true);

            DataContextChanged += OnDataContextChanged;
        }
Esempio n. 2
0
        public ProfilePage()
        {
            InitializeComponent();
            DataContext                    = TLContainer.Current.Resolve <ProfileViewModel, IProfileDelegate>(this);
            SharedMedia.DataContext        = ViewModel.ChatSharedMedia;
            SharedMedia.ViewModel.Delegate = SharedMedia;

            DescriptionLabel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(About_ContextRequested), true);
        }
Esempio n. 3
0
        public ProfilePage()
        {
            InitializeComponent();
            DataContext = TLContainer.Current.Resolve <ProfileViewModel, IProfileDelegate>(this);

            if (ApiInfo.CanAddContextRequestedEvent)
            {
                DescriptionLabel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(About_ContextRequested), true);
                DescriptionPanel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(Description_ContextRequested), true);
            }
        }