I use the MenuItem IsSeparator sucessfully in dropdown menus but the separator is not showing when used in the main menu bar...
<
Menu
>
<
MenuItem
... />
<
MenuItem
IsSeparator
=
"True"
...
/>
<
MenuItem
... />
</
Menu
>
<my:RadTileView x:Name="ClassOverridesTileView"
ItemsSource="{Binding Classes}"
ItemTemplate="{StaticResource HeaderTemplate}"
ContentTemplate="{StaticResource ContentTemplate}"
TileStateChanged="ClassOverridesTileView_TileStateChanged"
>
</my:RadTileView>
I am using the RadMenu as my standard window menu for an application that I am developing. An issue has arisen that menu items which have an Icon image. When the menu option is disabled, the Icon image appears to be being moved one pixel to the right, causing the border between the Icons and menu text to become misaligned. This results in an unsightly jagged line appearance in the overall menu.
Below is the XAML for the Edit menu of my application:
<!-- Edit Menu -->
<
telerik:RadMenuItem
MinWidth
=
"35"
HorizontalAlignment
=
"Center"
HorizontalContentAlignment
=
"Center"
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEdit}"
>
<
telerik:RadMenuItem
Style
=
"{StaticResource menuItemStyle}"
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditUndo}"
Command
=
"ApplicationCommands.Undo"
>
<
telerik:RadMenuItem.Icon
>
<
Image
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
>
<
Image.Source
>
<
BitmapImage
DecodePixelHeight
=
"16"
DecodePixelWidth
=
"16"
UriSource
=
"pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/Edit_UndoHS.png"
/>
</
Image.Source
>
</
Image
>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Style
=
"{StaticResource menuItemStyle}"
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditRedo}"
Command
=
"ApplicationCommands.Redo"
>
<
telerik:RadMenuItem.Icon
>
<
Image
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
>
<
Image.Source
>
<
BitmapImage
DecodePixelHeight
=
"16"
DecodePixelWidth
=
"16"
UriSource
=
"pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/Edit_RedoHS.png"
/>
</
Image.Source
>
</
Image
>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
IsSeparator
=
"True"
/>
<
telerik:RadMenuItem
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditCut}"
Command
=
"ApplicationCommands.Cut"
>
<
telerik:RadMenuItem.Icon
>
<
Image
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
>
<
Image.Source
>
<
BitmapImage
DecodePixelHeight
=
"16"
DecodePixelWidth
=
"16"
UriSource
=
"pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/CutHS.png"
/>
</
Image.Source
>
</
Image
>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditCopy}"
Command
=
"ApplicationCommands.Copy"
>
<
telerik:RadMenuItem.Icon
>
<
Image
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
>
<
Image.Source
>
<
BitmapImage
DecodePixelHeight
=
"16"
DecodePixelWidth
=
"16"
UriSource
=
"pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/CopyHS.png"
/>
</
Image.Source
>
</
Image
>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditPaste}"
Command
=
"ApplicationCommands.Paste"
>
<
telerik:RadMenuItem.Icon
>
<
Image
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Height
=
"16"
Width
=
"16"
>
<
Image.Source
>
<
BitmapImage
DecodePixelHeight
=
"16"
DecodePixelWidth
=
"16"
UriSource
=
"pack://application:,,,/RetailDirections.RMS.UI.Resources;component/Images/PasteHS.png"
/>
</
Image.Source
>
</
Image
>
</
telerik:RadMenuItem.Icon
>
</
telerik:RadMenuItem
>
<
telerik:RadMenuItem
Header
=
"{x:Static commonRes:Properties.Resources.MenuHeaderEditSelectAll}"
Command
=
"ApplicationCommands.SelectAll"
/>
</
telerik:RadMenuItem
>
Any help on what could be causing this or possible workarounds to this issue would be greatly appreciated.
Regards,
Mark Harding.
Hi,
I was wondering if it is possible to have custom header in WPF RdaGridView where a header of 3 column would have a header parent similar to the group header idea. This only for personation purposes and doesn’t affect column functionality. Each column is bound to a field in the view-model. Here is illustration of the header we would like to have.
-------------------------------------------------------------------------------------
| | | Group Header | |
| | |-----------------------------------| |
Col1 | Col2 | Col3 | col4 | Col5 | Col6 | Col7 |
| | | | | | |
-------------------------------------------------------------------------------------
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
this.progressBar.Visibility = System.Windows.Visibility.Visible;
//Do Some thing that blocks UI thread
this.progressBar.Visibility = System.Windows.Visibility.Hidden;
Once I run this I dont see the progress bar.
Is there something I need to do?
Should I put the progress bar call in a worker thread?
Can you please help me with some sample?
Thanks & regards,
Santhosh B