or
<telerikNavigation:RadMenuItem ItemsSource="{Binding SupportedThemes}" >
........
<telerikNavigation:RadMenuItem.ItemTemplate>
<DataTemplate>
<telerikNavigation:RadMenuItem
Header="{Binding DisplayName}"
Command="{Binding ChangeThemeCommand}"
CommandParameter="{Binding}"
/>
</DataTemplate>
</telerikNavigation:RadMenuItem.ItemTemplate>
What needs to be done order to get menu item look like static menu items? Is something special need to be added to templated?
I would like to pay your attention that suggested solution need to work in WPF. If I cancel the selection of an item within the PreviewSelectionChanged event of the RadOutlookBar there are different behaviors depending on where the selection was made.
1) Selection in the 'normal' items-area -> Everthing is fine. The selected Item stays highlighted.
2) Selection in the MinimizedArea -> The wrong item gets highlighted.
Is it possible to workaround this ?
Regards
Rainer
Here is the sample-code:
<telerik:RadOutlookBar x:Name="obMenu" PreviewSelectionChanged="obMenu_PreviewSelectionChanged"> <telerik:RadOutlookBarItem Header="Item 1"> <Border Background="Blue"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Item 2"> <Border Background="Green"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem> <telerik:RadOutlookBarItem Header="Item 3"> <Border Background="Red"> <TextBlock Text="Item1"/> </Border> </telerik:RadOutlookBarItem></telerik:RadOutlookBar>private void obMenu_PreviewSelectionChanged(object sender, SelectionChangedEventArgs e) { if (MessageBoxResult.Yes == MessageBox.Show("Cancel selection ?", "Cancel", MessageBoxButton.YesNo, MessageBoxImage.Question)) { e.Handled = true; }}
var reverseGeocodeRequest = new ReverseGeocodeRequest();reverseGeocodeRequest.Location = new Location(tt.Latitude,tt.Longitude);var geocodeService = new GeocodeServiceClient();GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest);if (geocodeResponse.Results.Length > 0) results = geocodeResponse.Results[0].DisplayName;}GeocodeResponse geocodeResponse = geocodeService.ReverseGeocode(reverseGeocodeRequest);
Do not match the visual selection of the Zoom. We have an Amount Range on the XAxis, ranging from -2 mil, to 8 mil, selecting -0.5 mil to 1 mil, gives +1.2 mil to 1.4 mil give or take.ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeStart)
ChartArea.AxisX.ActualMinValue + (ChartArea.AxisX.ActualRange * ChartArea.ZoomScrollSettingsX.RangeEnd)

<telerik:GridViewDataColumn DataType="{x:Null}" IsReadOnly="True" IsVisible="True" IsFilterable="False" IsGroupable="False" IsSortable="True" Width="100" UniqueName="RunDate" Header="Birth Date" TextAlignment="Left" DataFormatString=" {0:mm/dd/yyyy} "/>