or
<
telerik:RadChart
x:Name
=
"radChart"
ItemsSource
=
"{Binding DataPoints}"
Visibility="{Binding ServiceState,
Converter={StaticResource EnumToVisibilityConverter},
ConverterParameter
=
ServiceOk
}">
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
>
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
IsDateTime
=
"False"
LayoutMode
=
"Auto"
Title
=
"Build"
LabelRotationAngle
=
"55"
Visibility
=
"Visible"
/>
</
telerik:ChartArea.AxisX
>
<
telerik:ChartArea.AxisY
>
<
telerik:AxisY
Title
=
"Unique Crashes"
Visibility
=
"Visible"
/>
</
telerik:ChartArea.AxisY
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
private
void
GridViewSorted(
object
sender, GridViewSortedEventArgs e)
{
var datagrid = sender
as
RadGridView;
if
(datagrid ==
null
|| !datagrid.Equals(EmployeeGrid))
return
;
FormationGrid.SortDescriptors.Replace(datagrid.SortDescriptors);
}
private
void
EndCellEdit(
object
sender, GridViewCellEditEndedEventArgs gridViewCellEditEndedEventArgs)
{
var datagrid = sender
as
RadGridView;
if
(datagrid ==
null
|| !datagrid.Equals(EmployeeGrid))
return
;
FormationGrid.SortDescriptors.Replace(datagrid.SortDescriptors);
}
<
Window
... >
<
StackPanel
>
<
telerik:RadAutoCompleteBox
/>
<
telerik:RadAutoCompleteBox
x:Name
=
"_combo"
/>
<
telerik:RadAutoCompleteBox
/>
</
StackPanel
>
</
Window
>
public
partial
class
MainWindow : Window
{
public
MainWindow()
{
InitializeComponent();
Loaded += MainWindow_Loaded;
}
void
MainWindow_Loaded(
object
sender, RoutedEventArgs e)
{
_combo.Focus();
//_combo.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next)); //(!)
}
}