<
Window
x:Class
=
"RadControlsWpfApp1.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Window.Resources
>
<
Style
TargetType
=
"ListBox"
x:Key
=
"TelerikListBoxStyle"
BasedOn
=
"{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlueTheme, ElementType=ListBox}}"
/>
</
Window.Resources
>
<
StackPanel
Orientation
=
"Vertical"
>
<
ListBox
Style
=
"{StaticResource TelerikListBoxStyle}"
x:Name
=
"telerikStyledListBox"
HorizontalContentAlignment
=
"Stretch"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
Label
Content
=
"telerik style"
BorderThickness
=
"1"
BorderBrush
=
"Black"
/>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
<
ListBox
x:Name
=
"listBox"
HorizontalContentAlignment
=
"Stretch"
>
<
ListBox.ItemTemplate
>
<
DataTemplate
>
<
Label
Content
=
"standard style"
BorderThickness
=
"1"
BorderBrush
=
"Black"
/>
</
DataTemplate
>
</
ListBox.ItemTemplate
>
</
ListBox
>
</
StackPanel
>
</
Window
>
<telerik:RadCalendar Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" MinHeight="620" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Columns="4" Rows="3" SelectionMode="Multiple" Name="calMain" IsTodayHighlighted="False" AreWeekNumbersVisible="False" FontFamily="Segoe UI" HeaderVisibility="Hidden" ViewsHeaderVisibility="Visible" IsEnabled="False" Background="White" Foreground="Black" />private void btnEnabled_Click(object sender, RoutedEventArgs e) { calMain.IsEnabled = true; }
I'm wondering about the reason why RadPane and RadDocumentPane fire the IsVisibleChanged and Unloaded events when I'm just dragging the Pane to an other place on the screen (in my case out of my MainWindow)?
IsVisibleChanged might be plausible, because the Pane becomes invisible for the split of a second, but Unloaded is not plausible, because the the Pane still exists.
So to which event do I have to listen if I want to react on the user clicking on the small cross on the pane to close it, if IsVisibleChanged and Unloaded happen also when the user is only dragging the Pane?
Hey,
Unfortunately I have a problem in the sort, filter and group functions in the following case:
Class A
{
string AName;
}
Class B : Class A
{
string BName;
}
Class C
{
A baseClass;
}
The item source is ObservableCollection<C>
I am creating in code behind new GridViewDataColum.
If the binding is
1. " baseClass.AName" =>Everything works.
2. " baseClass.BName " =>The grid view rows are ok.All the data is shown in the correct cells,
But the Filter,Group,Sorting is not working.
What can I do?
<
telerik:PersistenceManager.SerializationOptions
>
<
telerik:SerializationMetadataCollection
>
<
telerik:PropertyNameMetadata
Condition
=
"Only"
Expression
=
"IsPinned"
SearchType
=
"PropertyName"
/>
</
telerik:SerializationMetadataCollection
>
</
telerik:PersistenceManager.SerializationOptions
>