xmlns
<
telerik:RadDatePicker Height="24" HorizontalAlignment="Left" Margin="10,10,0,0" Name="radDatePicker1" VerticalAlignment="Top" Width="84" />
But now when I start the project VS tells me to find the source RadDatePicker.cs. Original location: c:\Builds\WPF_Scrum\WPF_Team\Sources\Development\Silverlight\Telerik.Windows.Controls.Input\DatePicker\RadDatePicker.cs
Which I can not find on the machine.
When I cancel this I get an Error from the InitializeComponent() function:
Error: XamlParseException occured
'Telerik.Windows.Controls.Input;;;Component\Themes\Calendar\Telerik/Calendar.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Object reference not set to an instance of an object. Error at object 'System.Windows.ResourceDictionary'.
Thanks
Christian Schmidt
RadDragAndDropManager
.SetAllowDrag(resultListView, true);
RadDragAndDropManager.AddDragQueryHandler(resultListView, OnDragQuery);
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding SomeValue, Converter={StaticResource TestConverter}}"
/>
public
class
TestViewModel {
public
TestEnum SomeValue {
get
;
set
; }
}
public
enum
TestEnum {
A,
B,
C
}
public
object
Convert(
object
value, Type targetType,
object
parameter, System.Globalization.CultureInfo culture) {
var test = (TestEnum)value;
switch
(test) {
case
TestEnum.A:
return
"TestEnum with Value A"
;
case
TestEnum.B:
return
"TestEnum with Value B"
;
case
TestEnum.C:
return
"TestEnum with Value C"
;
}
throw
new
NotImplementedException();
}
Hello I need to Implement selected changing and cancel the selection if need
How can I do this?
Best regard
Ehud
<
radSchedulerView:RadScheduleView
FontSize
=
"18"
x:Name
=
"_sView"
Grid.Column
=
"0"
Grid.RowSpan
=
"2"
>
<
radSchedulerView:RadScheduleView.ViewDefinitions
>
<
radSchedulerView:DayViewDefinition
DayStartTime
=
"00:00:00"
DayEndTime
=
"23:59:59"
MinTimeRulerExtent
=
"1800"
/>
<
radSchedulerView:WeekViewDefinition
DayStartTime
=
"00:00:00"
DayEndTime
=
"23:59:59"
MinTimeRulerExtent
=
"1800"
/>
<!-- MonthView has fixed tick lengths and extents! -->
<
radSchedulerView:MonthViewDefinition
/>
<
radSchedulerView:TimelineViewDefinition
DayStartTime
=
"00:00:00"
DayEndTime
=
"23:59:59"
MinorTickLength
=
"1day"
/>
</
radSchedulerView:RadScheduleView.ViewDefinitions
>
</
radSchedulerView:RadScheduleView
>
_sView.AppointmentEditing +=
new EventHandler<AppointmentEditingEventArgs>(OnScheduler_AppointmentEditing);
_sView.AppointmentCreating +=
new EventHandler<AppointmentCreatingEventArgs>(OnScheduler_AppointmentCreating);
private void OnScheduler_AppointmentCreating(object sender, AppointmentCreatingEventArgs e)
{
e.Cancel = true;
}
private void OnScheduler_AppointmentDeleting(object sender, AppointmentDeletingEventArgs e)
{
e.Cancel = true;
}
_sView.MouseLeftButtonUp += new MouseButtonEventHandler(OnScheduler_MouseLeftButtonUp);
private void OnScheduler_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
MccmAppointment selectedAppointment = _sView.SelectedAppointment as MccmAppointment;
...
...
}