This question is locked. New answers and comments are not allowed.
Hello,
I have an RichTextBox with ad RichTextBoxRibbonUI.
I implemented the "Orientation" - DropDownButton similar to the Silverlight Demo (http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor) like this:
The problem is that the Button is always disabled.
Is there any condition which prevents the button to be enabled?
Regards,
Bastian Kraehmer
I have an RichTextBox with ad RichTextBoxRibbonUI.
I implemented the "Orientation" - DropDownButton similar to the Silverlight Demo (http://demos.telerik.com/silverlight/#RichTextBox/TelerikEditor) like this:
<
Controls:RadRibbonDropDownButton
CollapseToMedium
=
"WhenGroupIsMedium"
Command
=
"{Binding Path=ChangePageOrientationCommand}"
LargeImage
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientation.png"
Controls:ScreenTip.Description
=
"Switch the pages between portrait and landscape layouts."
Controls:ScreenTip.Title
=
"Page Orientation"
Size
=
"Medium"
Text
=
"Orientation"
>
<
Controls:RadRibbonDropDownButton.DropDownContent
>
<
Controls:RadGallery
ItemHeight
=
"54"
ItemWidth
=
"109"
RichTextBoxUI:RadRichTextBoxRibbonUI.RichTextCommand
=
"{Binding Path=ChangePageOrientationCommand}"
ViewportHeight
=
"216"
ViewportWidth
=
"110"
>
<
Controls:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Portrait"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationPortrait.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Portrait"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
Controls:RadGalleryItem
>
<
Controls:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate90"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationLandscape.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Landscape"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
Controls:RadGalleryItem
>
<
Controls:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate180"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationRotate180.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Rotate 180"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
Controls:RadGalleryItem
>
<
Controls:RadGalleryItem
HorizontalContentAlignment
=
"Left"
Tag
=
"Rotate270"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
Image
Source
=
"/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/32/PageOrientationRotate270.png"
Stretch
=
"None"
/>
<
TextBlock
FontWeight
=
"Bold"
Text
=
"Rotate 270"
VerticalAlignment
=
"Center"
/>
</
StackPanel
>
</
Controls:RadGalleryItem
>
</
Controls:RadGallery
>
</
Controls:RadRibbonDropDownButton.DropDownContent
>
</
Controls:RadRibbonDropDownButton
>
The problem is that the Button is always disabled.
Is there any condition which prevents the button to be enabled?
Regards,
Bastian Kraehmer