Telerik Forums
UI for WPF Forum
2 answers
93 views

Hi,

https://github.com/telerik/xaml-sdk/tree/master/ChartView/WPF/SeriesProvider

 

# SeriesProdvider project

1. Add new item : window1.xaml (include one button)

 2. app.xaml  StartupUri   set  window1.xaml 

 3.  window1.xaml  button client event

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MainWindow w = new MainWindow();
            w.ShowDialog();
        }

4. Run button click - PopupWindow Open & Close (Loop.. Loop.. Loop)

5. Memeory Leak check

 

I found a solution

        public MainWindow()
        {
            InitializeComponent();
            this.Unloaded += MainWindow_Unloaded;               
        }
        private void MainWindow_Unloaded(object sender, RoutedEventArgs e)
        {
            chart.SeriesProvider.Source = null; 
        }

I want to more best solution, for plan MVVM project

 

Martin Ivanov
Telerik team
 answered on 02 Nov 2018
2 answers
106 views

While implementing the LayoutControlExpanderGroup in my project I thought the doughnut charts shown in the WPF example were quite nice visually so decided to use those for weights on transactions.  After many days of struggling to reproduce the code I finally got something somewhat working but I'm still having problems.  I don't know where to set the max value of a chart, I'm guessing the example has it set at around 15,000 since even 11234 steps on Feb, 09 is still a ways away from the max.  My weights go from 25,000 up to 170,000 so even the lowest weight show 100% filled.  I can't find documentation on where to set this max value.

 

I'm also having a hard time wrapping the text in the middle.  I have a date time that has year/month/day followed by a space then hour/minute.  For some reason it's all on the same line and goes outside the doughnut.

 

My XAML is quite similar to the example in the StepsPerDay.xaml in the Layout Control demo (first look).  I just have different properties bound to it.

<telerik:RadPieChart Palette="Flower"
                         Style="{StaticResource ChartStyle}">
                        <telerik:RadPieChart.Series>
                            <telerik:DoughnutSeries ItemsSource="{Binding Transaction.Weights}"
                                    InnerRadiusFactor="0.75"
                                    RadiusFactor="1"
                                    ValueBinding="Weight">
                                <telerik:DoughnutSeries.AngleRange>
                                    <telerik:AngleRange StartAngle="270" />
                                </telerik:DoughnutSeries.AngleRange>
                                <telerik:DoughnutSeries.SliceStyles>
                                    <Style TargetType="Path">
                                        <Setter Property="Fill" Value="{Binding DataItem.WeightFill}" />
                                    </Style>
                                </telerik:DoughnutSeries.SliceStyles>
                                <telerik:DoughnutSeries.LabelDefinitions>
                                    <telerik:ChartSeriesLabelDefinition Margin="20">
                                        <telerik:ChartSeriesLabelDefinition.Template>
                                            <DataTemplate>
                                                <StackPanel>
                                                    <TextBlock Text="{Binding DataItem.WeightDisplay}" 
                                                               Style="{StaticResource BoldLabelStyle}" />
                                                    <TextBlock Text="{Binding DataItem.WeighInTimeDisplay}"
                                                               Foreground="Black"
                                                               TextWrapping="Wrap"
                                                               TextAlignment="Center" />
                                                </StackPanel>
                                            </DataTemplate>
                                        </telerik:ChartSeriesLabelDefinition.Template>
                                    </telerik:ChartSeriesLabelDefinition>
                                </telerik:DoughnutSeries.LabelDefinitions>
                            </telerik:DoughnutSeries>
                        </telerik:RadPieChart.Series>
                    </telerik:RadPieChart>

Martin Ivanov
Telerik team
 answered on 02 Nov 2018
1 answer
93 views

I'm using the RadCollectionNavigator in a WPF UserControl.  

 

The CurrentItem Is Bound, TwoWay to a DataContext property.

 

Everytime I navigate using the RCN's navigation buttons the CurrentItem setter is called 3 times.

 

I using ReferenceEquals() to ignore additional calls to the setter with the same value but this causes other problems.

 

Will I need to override the built in navigation buttons to eliminate this behavior?

 

<telerik:RadCollectionNavigator Source="{Binding EvidenceItems}" CurrentItem="{Binding CurrentNavItem, Mode=TwoWay}"/>

 

private EvidenceGridData _CurrentNavItem;
        public object CurrentNavItem
        {
            get { return _CurrentNavItem; }
            set
            {
                if (ReferenceEquals(_CurrentNavItem, value))
                    return;

                _CurrentNavItem = value as EvidenceGridData;
                RaisePropertyChanged(nameof(CurrentNavItem));
            }
        }

Stefan
Telerik team
 answered on 02 Nov 2018
1 answer
115 views

Hi all,

I know I can overwrite all the style of the docking controls, but I was wondering if there is an easier way to do what I want.
I want that when I have the mouse focused inside my control that is inside a RadPaneGroup the border would be highlighted just like the picture have attached.

Thanks for your help
Simon

Vladimir Stoyanov
Telerik team
 answered on 01 Nov 2018
1 answer
114 views

I am attempting to mimic the Windows 10 behavior where dragging a tile to an "empty" area automatically creates a new group. Since "Group" is implemented as a "property path" in the RadTileList I am not seeing an obvious way to implement this functionality.

Should I create a new ContentControl that has special "Drop" functionality that creates a new group? Or is there a better option using the TileList itself?

On the same project I am attempting to "save" the position of Tiles across sessions, is there a "TilePosition" property that I am just not finding such that I can save the position of specific tiles or is the position of the tiles dictated by the order of the items in bound ObservableCollection?

Cheers!

Jason

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Nov 2018
7 answers
296 views

Hi,

I have a RadImageEditor that I am using as an image viewer, and I have added my own toolbar with buttons bound to the commands for rotating and flipping the image, which all works fine. 

However, the buttons remain disabled until I click on the image, but I would really like the user to be able to just click on one of the buttons without having to first click on the image.  Equally, if they click on the zoom control, this gets the focus and the buttons once again get disabled.

How can I permanently enable these buttons?

Thanks,

Brian

Brian
Top achievements
Rank 1
 answered on 01 Nov 2018
1 answer
138 views

I'm using a RadLayoutControl on my page to group data into different groups.  I like the panel look and wanted to use that.  The problem I'm having is I want a certain LayoutControlExpanderGroup to fill in remaining space so that when a window resizes all the groups fill out one row of space.  Just wondering if there's similar functionality to the dock panel where I can set the container to LastChildFill="true" and the last container in the dock panel uses up all the remaining space.

 

Daniel
Top achievements
Rank 1
 answered on 31 Oct 2018
1 answer
77 views

Hi, if I double click RadRibbonTab, it'll collapse the RadRibbonGroup inside of it. Is there a way to prevent RadRibbonTab from ever collapsing the RadRibbbonGroup. Behaviour can be mimiced on the telerik wpf RichTextBox Example.

 

 

Martin Ivanov
Telerik team
 answered on 31 Oct 2018
3 answers
226 views

Example Solution uploaded as .jpg from .zip

The provided example has various controls in different tabs (including a scrollviewer). As you should be able to see in the fluent theme when using the scroll wheel to scroll the tab header an item in the tab header has to be focused. If I click a button, or select a textbox in one of the tabs I can no longer mouse over the tab header to scroll the tabs (I have to click on a tab to give it focus for the scroll wheel to work again).

This is not the case the other way around (Tab 5 or tab 6). If the tab header is focused the scrollViewer in the tab will still scroll on mouse over without focus being granted to it.

James
Top achievements
Rank 1
 answered on 30 Oct 2018
0 answers
66 views

Hi Telerik,

 

How can I get two radSplitContainer to stack on each other in two rows in the same column?

I'm using the outlook template for visual studio and what I want to achieve is to add another gridView as a radSplitContainer under the E-mails radSplitContainer.

It would then be a column with 2 rows and each row contains of a gridView. Row1 would contain the E-mails gridView / radSplitcontainer for e-mails, then row2 would contain another gridView with another itemsource.

 

 

 

 

 

Khoa
Top achievements
Rank 1
 asked on 30 Oct 2018
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?