Telerik Forums
UI for WPF Forum
1 answer
178 views
I'd like to use the RadColorPicker for a RadRibbon. The
button itself should appear as a large
dropdown button in the ribbon.

I can't seem to get the color picer to appear as a large
dropdownbutton. I tried the following two approaches which doesn't succeed.

How do I get the colorpicker to appear as a RadRibbonDropDownButton
with the property Size="Large"?

<telerik:RadRibbonGroup Header="Test">
                    <!-- Combine RadRibbonDropDown and RadColorPicker? -->
                    <telerik:RadRibbonDropDownButton LargeImage="/Images/Icons/32/CellBoxBorder.png" Size="Large" Text="Color Picker">
                        <telerik:RadRibbonDropDownButton.DropDownContent>
                            <telerik:RadColorPicker HeaderPalette="Office" AutomaticColor="White" />
                        </telerik:RadRibbonDropDownButton.DropDownContent>
                    </telerik:RadRibbonDropDownButton>
                    <!-- Or use RadColorPicker directly? -->
                    <telerik:RadColorPicker HeaderPalette="Office" AutomaticColor="White" />
                </telerik:RadRibbonGroup>
Lasse
Top achievements
Rank 1
 answered on 23 Jun 2014
3 answers
153 views
Is it possible to customize the table borders dialog in any
way? I'd like to use the dialog but limit the number of colours and types of
borders the user should be able to set.
Lasse
Top achievements
Rank 1
 answered on 23 Jun 2014
1 answer
122 views
Say I've got 100 points at one point per day. If I plot those points on a DateTimeContinuousAxis with MajorStep set to 1 and MajorStepUnit set to Day, what is the expected behavior if I set MaximumTicks to "10".  I get 100 tick marks (one for each day) regardless of whether MaximumTicks is set to 10 or 1000. 

Thanks - Mitch
Martin Ivanov
Telerik team
 answered on 23 Jun 2014
1 answer
148 views
After moving a tile around, the opacity setting seems to be reset to 1.0. Please see this simple example. Did I miss something obvious?

<Window x:Class="TileTest.MainWindow"
        Title="MainWindow" Height="350" Width="525"
        Background="Orange">
    <Grid>
        <telerik:RadTileView RowsCount="2" Margin="40">
            <telerik:RadTileViewItem Header="Item1" Background="Black" Opacity="0.2">
                <TextBlock Text="Item2 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item2" Background="Black" Opacity="0.3">
                <TextBlock Text="Item2 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item3" Background="Black" Opacity="0.4">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item4" Background="Black" Opacity="0.5">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item5" Background="Black" Opacity="0.6">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item6" Background="Black" Opacity="0.7">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
            <telerik:RadTileViewItem Header="Item7" Background="Black" Opacity="1">
                <TextBlock Text="Item3 Content"/>
            </telerik:RadTileViewItem>
        </telerik:RadTileView>
    </Grid>
</Window>
Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Jun 2014
3 answers
128 views
Hi,

I want to change PropertyGrid font-family, Code like this:

<telerik:RadPropertyGrid Name="squidProperties" Grid.Row="1" RenderMode="Flat"           AutoGeneratePropertyDefinitions="False"
                        DescriptionPanelVisibility="Collapsed"                                  FontFamily="Microsoft YaHei" Item="{Binding testtest}" LabelColumnWidth="100"          Visibility="{Binding test}" />


it's not working.

The textblock's(PART_FieldLabelN) font-family is still Segoe UI.
Yoan
Telerik team
 answered on 23 Jun 2014
1 answer
116 views
Hi, 
Is it possible to disable spell checking for code blocks within a rad rich text box ( at the same time have spell check enabled for outside the blocks )
Thanks
- Chris
Petya
Telerik team
 answered on 23 Jun 2014
1 answer
302 views
I have some properties that use a DataFormDataField (will be a text field with a label) and the label will be very long so it needs to wrap to a new line.

So far I have been unable to do. Tried to build a template for the label on it, but cannot find the element needed to set this value.

What is the correct way to do this?
Dimitrina
Telerik team
 answered on 23 Jun 2014
2 answers
2.0K+ views
Hello,

We have a control that contains a RadCarousel that gets it's DataContext/ItemSource set to a View Model property which is an ObservableCollection<Tool> of custom "Tools" objects.  That object has a Name property and an Image property.  In it's previous life in a generic legacy WPF solution the control data bound the icon/image to display using an "ImagePath" data member.  This worked fine because the control was able to access images set to Resource as the build type and located in a /Resources folder.

The current project is a Prism 4 solution and contains multiple modules.  Each module is loaded dynamically from a folder at runtime using the DirectoryModuleCatalog class.  This is all working fine and each module injects it's own RibbonGroup into a RadRibbonView,  The Home RibbonGroup contains this RadCarousel control mentioned above.  Each module injects it's own "Tool" into the hosted view model using an event.  This is working fine in that the RadCarousel is displaying the tools but is currently only displaying a name property.  The DataTemplate binds the "Name" and "Image" data members but again the image is not showing.

The Tool class has an "ImageTool" property (of type System.Drawing.Image)  that is filled by the Module classes before the Home Ribbon shows.  So by the time the Home Ribbon view shows it has a valid ItemSource filled with these Tool objects and their respective ToolImages property containing an instantiated image.  I felt it had to be done this way because the "ImagePath" design or property in it's previous life is now obsolete in that there cannot be a static path pointed to in this Prism paradigm where the host project is loading these modules dynamically and from a folder.

Here is the DataTemplate code that is working but not showing an image ..


<DataTemplate x:Key="customItemTemplate">
                <Grid HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>                    
                    <Image  Source="{Binding ToolIimage}" Width="25" Height="25" Grid.Row="0"/>
                    <TextBlock Text="{Binding Name}" Grid.Row="1" />
                </Grid>
            </DataTemplate>

Can someone offer a suggestion as to how to get an image displaying for each item in the Carousel from an instantiated image?

Thank you,

Reid


Reid
Top achievements
Rank 2
 answered on 23 Jun 2014
7 answers
446 views
I can't figure out how to add the contents of a RadDocument (with styling) to a table cell when exporting to PDF. Any advice on how I should go about solving this?

        private void RadButton_Click(object sender, RoutedEventArgs e)
        {
            var span = new Span();
            span.Text = "Span1";
            var paragraph = new Paragraph();
            paragraph.Inlines.Add(span);
            var tableCell1 = new TableCell();
            tableCell1.Blocks.Add(paragraph);
            
            var tableCell2 = new TableCell();
            tableCell2.Blocks.Add(Editor.Document); // THIS WON'T COMPILE, BUT HOW TO FIX?

            var tableRow = new TableRow();
            tableRow.Cells.Add(tableCell1);
            tableRow.Cells.Add(tableCell2);

            var table = new Table();
            table.AddRow(tableRow);

            var section = new Section();
            section.Blocks.Add(table);

            var document = new RadDocument();
            document.Sections.Add(section);

            var saveFileDialog = new SaveFileDialog();
            saveFileDialog.DefaultExt = ".pdf";
            saveFileDialog.Filter = "Portable Document Format (*.pdf) | *.pdf";

            var result = saveFileDialog.ShowDialog();

            if (result == true)
            {
                using (var saveFileStream = saveFileDialog.OpenFile())
                {
                    var provider = new PdfFormatProvider();

                    provider.Export(document, saveFileStream);
                }
            }
        }
Petya
Telerik team
 answered on 23 Jun 2014
1 answer
175 views
I've test telerik control for example ListBox and GridView when the content get scroll these warning came out, just curious what this mean for why it is thrown, no storyboard I've created or modified yet, the only changes the default theme to Window8Touch ?
Any idea to get rid of this thanks.

System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Remove'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='34280961'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='34280961'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'
Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Jun 2014
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Rating
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?