Telerik Forums
UI for WPF Forum
7 answers
555 views

Hi All,

I am attempting to code a RadCartesianChart Bar series with two linear axes - similar to a scatter plot where there would be an X and Y coordinate, but instead of scatter points, I'd use a bar series; is anyone familiar with doing this?

 

In a nutshell I want to have time as the x axis - so I can plot a couple of data points where they would fall at any time from 0 to max, instead of having a Categorical axis where increment on the axis represents on category/value . I want them to be plotted freely on this axis, and at times overlap. (see attached radchartview-series-barseries - mine)

The y-axis would be a linear (dependent? ) axis as well, allowing me to plot my data point against a scale of kilo Joules 0 to the max.  

Right now I am using C# WPF and just painting the points on a canvas and I had to paint grid lines and calculate the squares/scaling lines - very tedious. And telerik has some great pan, zoom and data point summary info on item click capabilities.

Please help

 

Many thanks

Kevin

 

Martin Ivanov
Telerik team
 answered on 18 Jan 2019
13 answers
768 views
Hi,
I've had a look at the Wpf-AutoDrag project which I found at this forum.
I've adjusted it to fit my wishes and all is find and dandy, BUT, how on
earth do I enable drag and drop for MULTIPLE rows? Right now I can
only move the rows one by one, which can be a tedious task if you need
to move like 50 rows every time. :(

I guess there's a simple solution to this issue, however I've still to find it, please help!

:)

//JaggenSWE
Martin Ivanov
Telerik team
 answered on 18 Jan 2019
4 answers
267 views

Hi,

I noticed that the Office 2016 theme is the only theme where the RadButton foreground and background colors get inverted on mouse hover.

Unfortunately, if I do this, the text stays black even on mouse hover:

<telerik:RadButton>
    <TextBlock Text="Test" />
</telerik:RadButton>

 

The following 2 versions work:

<telerik:RadButton Content="Test" />

<telerik:RadButton>
    <telerik:RadButton.ContentTemplate>
        <DataTemplate>
            <TextBlock Text="Test" />
        </DataTemplate>
    </telerik:RadButton.ContentTemplate>
</telerik:RadButton>

 

But I cannot use the first because in reality the content I want to put in the button is more complex (TextBlock containing Run objects).
And the second would be a workaround which I would like to avoid as it is not the optimal way.

The reason it does not work is because the IsMouseOver trigger in the template does this:

<Setter TargetName="Content" Property="TextElement.Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>

 

By setting TextElement.Foreground on the ContentPresenter inside the control's template, only children that consider the ContentPresenter as their logical parent will inherit from its Foreground property.

  • When using the ContentTemplate property, the elements within the DataTemplate become logicial descendents of the ContentPresenter, so the inheritence of the Foreground property works.
  • When using the Content property, the logical parent of the topmost element that forms the content is not the ContentPresenter within the control's template, but the control (RadButton) itself. Therefore the foreground of the content will depend on the Foreground property of the control itself. The latter is not changed by the trigger, so it stays black, and so does the content's foreground.

The seemingly obvious fix would be to change the template trigger's setter to this:

<Setter Property="Foreground" Value="{telerik1:Office2016Resource ResourceKey=MarkerInvertedBrush}"/>

 

If you feel like this is an appropriate fix, please include it in future versions so that we do not have to customize your template just for that.
If not, and you have advice, you're welcome share it.

Best regards

Dilyan Traykov
Telerik team
 answered on 18 Jan 2019
2 answers
209 views

Hi

How can i change style close button in RadPaneGroup header?

Mahdi
Top achievements
Rank 1
 answered on 17 Jan 2019
2 answers
290 views
Hi,
how can I add a new tab to PropertyGrid? Like Property Grid in Vsual Studio - witch has 2 tabs - 'Properties' and 'Events'.
Dilyan Traykov
Telerik team
 answered on 17 Jan 2019
1 answer
159 views

Hi,

I'm trying to change the names of the shapes I show inside the image editor tool but I can not get my head arround it how to do it.

I want to change the text of the shape rectangle and ellipse.

How to approach this problem?

Best regards.

Dinko | Tech Support Engineer
Telerik team
 answered on 17 Jan 2019
2 answers
143 views

I am currently implementing RadCartesianChart3D to display some data. Everything seemed to be working perfectly fine, and I was mostly able to follow the examples provided by Telerik. However, it seems I am unable to set the Behaviors property of the RadCartesianChart3D.

<telerik:RadCartesianChart3D.Behaviors>
     <telerikcv:Chart3DCameraBehavior />
</telerik:RadCartesianChart3D.Behaviors>

The above code block (set inside a RadCartesianChart3D) yields "The member Behaviors is not recognized or accessible". 

References are set as follows:

xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
xmlns:telerikcv="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart"     
Martin Ivanov
Telerik team
 answered on 17 Jan 2019
13 answers
1.1K+ views

In regard to your WPF grid, in some cases we set the background and/or the foreground color of certain cells, and would like to maintain these colors if and when the grid is exported to excel.

When the GridView_ElementExportingToDocument event is fired, a GridViewElementExportingToDocumentEventArgs object is passed.  How can I use this object to determine the foreground and background color of the cell?

Yoan
Telerik team
 answered on 16 Jan 2019
14 answers
3.3K+ views
Hi All,

I am using RadGridView for my WPF application and want to display vertical and horizontal scroll bar whenever the number of colums and rows are more.

I have set its Styles as folows :
<Style TargetType="{x:Type telerik:RadGridView}">
        <Setter Property="HeaderRowStyle" Value="{DynamicResource GridViewHeaderRowStyle1}"/>
        <Setter Property="AlternateRowStyle" Value="{DynamicResource AlternateRowStyle}"/>
        <Setter Property="IsFilteringAllowed" Value="false"/>
        <Setter Property="RowStyle" Value="{DynamicResource GridViewRowStyle}"/>
        <Setter Property="GridLinesVisibility" Value="Both"/>
        <Setter Property="Cursor" Value="Hand"/>    
        <Setter Property="VerticalGridLinesBrush" Value="#CCCCCC"/> 
        <Setter Property="HorizontalGridLinesBrush" Value="#CCCCCC"/>
        <!--Setter Property="MinColumnWidth" Value="20"/>
        <Setter Property="MaxColumnWidth" Value="150"/>
        <Setter Property="ColumnWidth" Value="100"/-->
        <Setter Property="RowIndicatorVisibility" Value="Collapsed"/>
        <!--Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/-->
        <Setter Property="AlternationCount" Value="2"/>
        <Setter Property="VerticalAlignment" Value="Top"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="ShowGroupPanel" Value="False"/>
        <Setter Property="AutoGenerateColumns" Value="False"/>
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
        <Setter Property="IsScrolling" Value="True"/>  
  
    </Style>

Then in the main XAML i am using the following code :
<telerik:RadGridView  x:Name="billDataGrid" 
            Grid.Row="5" >
                               
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Name" Width="*" TextWrapping="Wrap"/>
                <telerik:GridViewDataColumn Header="Address" Width="*" TextWrapping="Wrap" />
                       </telerik:RadGridView>    
        
        


But when i am running my screen then I am not able to see the scroll bar even the data is very large.

Kindly let me know where i am wrong in defining the scroll bar.
Dilyan Traykov
Telerik team
 answered on 16 Jan 2019
1 answer
398 views

I'm using the fluent theme, but I'd like to change the RadRibbonWindow's background to a darker color. That's easy to achieve by setting the Background property. However, since the title bar's foreground is black, it is almost impossible to see the title and the minimize/maximize/close buttons anymore when I'm using a very dark color..

I've found a style defiition for telerikRibbonViewPrimitives:WindowTitle in Telerik.Windows.Controls.RibbonView.xaml and changed the Foreground color to white. This works for the title, but how can I change the color of the minimize/maximize/close buttons?

I've seen that I could do that by setting FluentPalette.Palette.IconColor, but this changes all icons, not only the window icons.

 

Thanks for your help!

Michael

Dilyan Traykov
Telerik team
 answered on 16 Jan 2019
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?