﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - ScheduleView Selected Date</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ScheduleView-Selected-Date/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>ScheduleView Selected Date</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ScheduleView-Selected-Date/</link><pubDate>Mon, 14 Jul 2014 21:58:23 GMT</pubDate><dc:creator>Hans</dc:creator><description>Hello,&lt;br&gt;&lt;br&gt;I’m glad to hear that this work around suitable for you.&lt;br&gt;&lt;br&gt;Should you have further question, please do not hesitate to contact us.&lt;br&gt;&lt;br&gt;Thank you very much.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.</description></item><item><title>ScheduleView Selected Date</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ScheduleView-Selected-Date/</link><pubDate>Mon, 14 Jul 2014 00:05:45 GMT</pubDate><dc:creator>dmt@projection-group.com</dc:creator><description>&lt;p&gt;Works a treat!&lt;/p&gt;&lt;p&gt;Thanks Hans&lt;/p&gt;</description></item><item><title>ScheduleView Selected Date</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ScheduleView-Selected-Date/</link><pubDate>Thu, 10 Jul 2014 03:25:03 GMT</pubDate><dc:creator>Hans</dc:creator><description>&lt;br&gt;&lt;p&gt;Hello,&lt;br&gt;&lt;br&gt;Thank you for the question regarding UXScheduleView.&lt;br&gt;&lt;br&gt;Currently there is no such as SelectedItem property in UXScheduleView.&lt;br&gt;&lt;/p&gt;I have forward this scenario as a feature request to the developer team. I will let you know if there is an update regarding this feature.&lt;br&gt;&lt;p&gt;I apologize for the inconvenience.&lt;br&gt;&lt;br&gt;Meanwhile you could this example work around below for this scenario.&lt;br&gt;Based on your information I try to modify one of UXScheduleView samples from ClientUI Control Solution Samples, Month View page.&lt;br&gt;&lt;br&gt;The following steps are how I implement the example work around:&lt;br&gt;&lt;br&gt;1. In “MonthViewViewModel.cs” page (under Intersoft.ClientUI.Samples.UXScheduleView -&amp;gt; ViewModels folder), I create a “MyCalendar” object.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;    private DateTime _myCalendar;
    public DateTime MyCalendar
    {
        get { return _myCalendar; }
        set
        {
            if (_myCalendar != null)
            {
                _myCalendar = value;
                OnPropertyChanged("MyCalendar");
            }
        }
    }&lt;/pre&gt;&lt;p&gt;2. Then in “Default.xaml.cs” page (under Intersoft.ClientUI.Samples.UXScheduleView -&amp;gt; Views -&amp;gt; MonthView folder), I add / create a new event handler that similar with “SelectedItem Property”, in this work around I use “MouseLeftButtonDown” event.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;    public Default()
    {
        InitializeComponent();
        
        // Add new event handler
        SampleControl1.MouseLeftButtonDown = new MouseButtonEventHandler(SampleControl1_MouseLeftButtonDown);
    }&lt;/pre&gt;&lt;p&gt;3. In then “MouseLeftButtonDown” event (in Default.xaml.cs), I try to get the selected MonthViewCell object using this code below:&lt;br&gt;&lt;/p&gt;&lt;pre&gt;    // Get the MonthViewCell object
    UXScheduleMonthViewCell monthViewCell = Intersoft.Client.Framework.Utility.FindVisualAncestor(e.OriginalSource as DependencyObject, typeof(UXScheduleMonthViewCell)) as UXScheduleMonthViewCell;&lt;/pre&gt;&lt;p&gt;4. After that I try to get the ViewModel of this as well.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;    // Get the ViewModel of this view
    MonthViewViewModel vm = monthViewCell.DataContext as MonthViewViewModel;&lt;/pre&gt;&lt;p&gt;5. The last step is I set the “MyCalendar” object with DisplayDate value from MonthViewViewModel.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;   vm.MyCalendar=monthViewCell.DisplayDate;&lt;/pre&gt;&lt;p&gt;Please kindly have review on the attached file to see result.&lt;br&gt;&lt;br&gt;Hope this helps.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Hans K.&lt;br&gt;&lt;/p&gt;</description></item><item><title>ScheduleView Selected Date</title><link>http://www.intersoftsolutions.com/Community/ClientUI/ScheduleView-Selected-Date/</link><pubDate>Tue, 08 Jul 2014 21:50:25 GMT</pubDate><dc:creator>dmt@projection-group.com</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;Using the ScheduleView control and displaying the calendar for the month, I want to know the day the user clicks on. How do I work that out?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;p&gt;Damien&lt;/p&gt;</description></item></channel></rss>