or
<
ControlTemplate
x:Key
=
"AboutImage"
>
<
Viewbox
Stretch
=
"Uniform"
>
<
Canvas
Width
=
"512"
Height
=
"512"
>
<
Rectangle
Canvas.Left
=
"0"
Canvas.Top
=
"0"
Width
=
"512"
Height
=
"512"
Fill
=
"{TemplateBinding Background}"
/>
<
Path
Data
=
"..."
Fill
=
"{TemplateBinding Foreground}"
/>
</
Canvas
>
</
Viewbox
>
</
ControlTemplate
>
<telerik:Tile TileType="Single" Width="Auto" Background="#FF559B55" Name="tile1"
FontWeight="Bold" FontFamily="Verdana">
<Button Content = {Binding Path=MyRVal} Click="btClick" Foreground="Black">
</Button>
</telerik:Tile>
This works fine in Silverlight project, but the button does not show in WPF. I noticed this only happens when there is Binding instead of static, does WPF not handle this?<
telerik:RadScheduleView
x:Name
=
"ScheduleView"
SnapAppointments
=
"True"
>
<
telerik:RadScheduleView.ResourceTypesSource
>
<
telerik:ResourceTypeCollection
>
<
telerik:ResourceType
DisplayName
=
"Room"
Name
=
"Room"
>
<
telerik:Resource
DisplayName
=
"Room 1"
ResourceName
=
"Room 1"
ResourceType
=
"Room"
/>
<
telerik:Resource
DisplayName
=
"Room 2"
ResourceName
=
"Room 2"
ResourceType
=
"Room"
/>
</
telerik:ResourceType
>
</
telerik:ResourceTypeCollection
>
</
telerik:RadScheduleView.ResourceTypesSource
>
<
telerik:RadScheduleView.GroupDescriptionsSource
>
<
telerik:GroupDescriptionCollection
>
<
telerik:ResourceGroupDescription
ResourceType
=
"Room"
ShowNullGroup
=
"True"
/>
</
telerik:GroupDescriptionCollection
>
</
telerik:RadScheduleView.GroupDescriptionsSource
>
<
telerik:RadScheduleView.ViewDefinitions
>
<
telerik:DayViewDefinition
DayStartTime
=
"7:00"
DayEndTime
=
"19:00"
MajorTickLength
=
"1h"
MinorTickLength
=
"10min"
/>
<
telerik:WeekViewDefinition
DayStartTime
=
"7:00"
DayEndTime
=
"19:00"
/>
</
telerik:RadScheduleView.ViewDefinitions
>
</
telerik:RadScheduleView
>
private
ObservableCollection<Appointment> appointments;
void
ExamRoomScheduler_Loaded(
object
sender, RoutedEventArgs e)
{
appointments =
new
ObservableCollection<Appointment>();
ScheduleView.AppointmentsSource = appointments;
ExamRoomAppointment temp;
temp =
new
ExamRoomAppointment(
"Test"
, DateTime.Now, DateTime.Now.AddMinutes(20),
"Room 1"
);
appointments.Add(temp);
temp.Resources.Add(
new
Resource() { ResourceType =
"Room"
, ResourceName =
"Room 1"
, DisplayName =
"Room 1"
});
}