Telerik Forums
UI for WPF Forum
1 answer
313 views
Hi.

My ' MultiVerticalAxis' is setted <Setter Property="Stroke" Value="{Binding Converter={StaticResource seriesColorConverter}}"/>.

In converter, 

axis.Title = obj.Unit;
axis.Maximum += 0.5;
axis.Minimum += -0.5;
axis.LineStroke = new SolidColorBrush(Colors.White);
axis.Foreground = new SolidColorBrush(Colors.White);
axis.FontSize = 11;

In this picture, I want to rotate 'Title Font'

What should I do??


Martin Ivanov
Telerik team
 answered on 19 May 2014
1 answer
185 views
Hello,

I want to set the timeline viewing slot to either 1 or 5 days and instead of having all 5 days compressed into the same area, I would like to have just be able to scroll to the different days with the timeslots as the same width.

What settings do I need to set to enable this?

Thanks!
Ryan
Kalin
Telerik team
 answered on 19 May 2014
2 answers
170 views
Hi Telerik,

Is it possible for me in WPF to plot an error bar representing the standard deviation?

I want it to look similar to the error bars found here http://demos.telerik.com/kendo-ui/dataviz/line-charts/error-bars.html

Best regards, 
Jeppe
Unisense
Top achievements
Rank 1
 answered on 19 May 2014
3 answers
145 views
I have a problem where collapsing a DateTimeCategoricalAxis is still reserving space in the UI. It is being used as the Horizontal axis, and is reserving Width but not Height. The below example shows the problem. 

Note that the display looks correct initially, with both graphs going to the edge of the windows. Now use the checkbox to enable the horizontal display on the bottom chart, which switches the Visibility on the Axis from Collapsed to Visible. The chart displays correctly. Now uncheck the checkbox, which changes the Visibility back to Collapsed. Now notice the chart has about an inch of white-space on either side of the graph. The Height collapsed correctly, but the Width did not.

Is there any way of getting the Axis to resize correctly after being Collapsed short of replacing the Axis completely (see the commented code)?

This was tested with 2014.1.331.45.

Thanks,
Louis

MainWindow.xaml:
<Window x:Class="CollapsedAxis.MainWindow"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                Title="MainWindow" Height="400" Width="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <telerik:RadCartesianChart x:Name="PropertyChart1" Grid.Row="0">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis Visibility="Collapsed"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Visibility="Collapsed"/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries
                       CategoryBinding="Date"
                       ValueBinding="Value"
                       ItemsSource="{Binding Path=Series1}">
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>
        <telerik:RadCartesianChart x:Name="PropertyChart2" Grid.Row="1">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis Visibility="{Binding Path=AxisVisible}"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Visibility="{Binding Path=AxisVisible}"/>
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries
                       CategoryBinding="Date"
                       ValueBinding="Value"
                       ItemsSource="{Binding Path=Series1}">
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>
        <CheckBox Grid.Row="2" IsChecked="{Binding Path=DisplayAxis}" Content="Display Axis" HorizontalAlignment="Left"/>
    </Grid>
</Window>

MainWindow.xaml.cs:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows;
using System.Windows.Data;
using Telerik.Windows.Controls.ChartView;
 
namespace CollapsedAxis
{
    public class MyPoint
    {
        public DateTime Date { get; set; }
        public Double Value { get; set; }
    }
    public partial class MainWindow : Window, INotifyPropertyChanged
    {
        public List<MyPoint> Series1 { get; private set; }
 
        private bool _DisplayAxis;
        public bool DisplayAxis
        {
            get { return _DisplayAxis; }
            set
            {
                _DisplayAxis = value;
                AxisVisible = (_DisplayAxis ? Visibility.Visible : Visibility.Collapsed);
                RaisePropertyChanged("DisplayAxis");
            }
        }
 
        private Visibility _AxisVisible;
        public Visibility AxisVisible
        {
            get { return _AxisVisible; }
            set
            {
                _AxisVisible = value;
                // Enabling this to replace the axis instead of just using the binding to
                // collapse it results in the correct behavior.
                //PropertyChart2.HorizontalAxis = new DateTimeCategoricalAxis() { Visibility = _AxisVisible };
                RaisePropertyChanged("AxisVisible");
            }
        }
 
        public MainWindow()
        {
            Series1 = new List<MyPoint>();
            _DisplayAxis = false;
            _AxisVisible = Visibility.Collapsed;
            for (int i = 0; i < 5; i++)
            {
                DateTime date = DateTime.Today.AddDays(i);
                Series1.Add(new MyPoint() { Date = date, Value = i * 1000 });
            }
            InitializeComponent();
            DataContext = this;
        }
        #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
        protected void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
        #endregion
    }
}

Peshito
Telerik team
 answered on 19 May 2014
2 answers
849 views
I have replaced several of my dialog forms with RadWindow form in my WPF application and the Application Icon that used to show on the dialogs don't seem to show on the RadWindow.  I have tried a lot of different ways of getting the Icon to show including the following:

 

if (((System.Windows.Controls.Canvas)this.Parent).Parent is Window)
{
    Window thisWindow = ((System.Windows.Controls.Canvas)this.Parent).Parent as Window;
    thisWindow.ShowInTaskbar = true;
    thisWindow.Title = this.Header.ToString();
    this.Icon = thisWindow.Icon;
}  

The Icon shows in the taskbar correctly, but nothing is shown on the RadWindow itself.  Is there something I am doing wrong?  Some setting someplace that I am missing that will make it magically show it?

I tried:
Uri iconUri = new Uri("pack://application:,,,/WPFIcon2.ico", UriKind.RelativeOrAbsolute);
this.Icon = BitmapFrame.Create(iconUri);

and I get the text "pack://application:,,,/WPFIcon2.ico" where the Icon should be.

I even tried creating a System.Drawing.Icon object and setting it to that and it just puts  "(Icon)" in the corner of the form.

I have nothing in the XAML that refers to the Icon property for the window.  I assumed that the RadWindow type would automatically get the icon from the application, but I have not found any setting on the control that turns on or off the displaying of the icon.

 

Martin
Top achievements
Rank 1
 answered on 18 May 2014
4 answers
162 views
Hi,


Ii created a Little Project with a custom Toolbox. So far so fine, but I can't drop a Shape in a container. It is possible
to drop the shape onto the diagram, but not on the Container. After I dropped the shape onto the diagram, I can crop
this shape onto the Container.


where is the Problem?

thanks a lot
best Regards
Rene
ITA
Top achievements
Rank 1
 answered on 17 May 2014
2 answers
130 views
Hello everyone.

I am playing around with MVVM (leveraging Prism and Unity), but I am somewhat stuck on how to bind my modules to a PanelBar properly. What I want to do is set the ItemHeader text to the name of whatever module I am loading (at design time, I don't know how many modules will be loaded), and then have the Items (Views) be displayed under that.  Graphically it would look something like this:

################    PanelBar    ############### 
================Module 1 Text=============== //ItemHeader
---------------------------- View     1 Text--------------------------- //Item
---------------------------- View     2 Text--------------------------- //Item
---------------------------- View     3 Text--------------------------- //Item
================Module 3 Text=============== //ItemHeader
---------------------------- View     1 Text--------------------------- //Item
---------------------------- View     2 Text--------------------------- //Item
########################################## 

I know (basically) how to get 'View X Text' to display through the use of a ViewModel, but I am not sure about getting the ItemHeader set properly.  Any help that you can provide would be greatly appreciated!

Thanks.

Doug
Top achievements
Rank 1
 answered on 17 May 2014
7 answers
191 views
Hi, I have two lines from the wrap panel and from the ribbon view which do not seem to be effected by border / brush was wondering how I can get rid of them.
xaml -

<telerik:RadRibbonView TitleBarVisibility="Collapsed" ApplicationButtonVisibility="Collapsed" QuickAccessToolBarPosition="NotHosted" Height="80" Background="White">
            <telerik:RadRibbonView.Resources>
                <telerik:FontFamiliesProvider x:Key="FontFamiliesProvider"/>
            </telerik:RadRibbonView.Resources>
            <telerik:RadOrderedWrapPanel>
                     .....................
                     .....................
            </telerik:RadOrderedWrapPanel>
</telerik:RadRibbonView>
Kiril Vandov
Telerik team
 answered on 16 May 2014
8 answers
111 views
Hi Everyone,

I am using 2013.2.805.45  telerik. When i add assertion on RadGridView cell control i am getting wrong hierarchy i.e cell control--> under pane -->Desktop as shown in attached image.
If we create same sample application using 2013.2.819.40 telerik it is working fine.
Please provide solution to it.  

Source Code:

<Window x:Class="RadControlsWpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        xmlns:my="clr-namespace:RadControlsWpfApp1"
        Title="MainWindow" Height="700" Width="700">
    <Window.Resources>
        <my:MyViewModel x:Key="MyViewModel"/>
    </Window.Resources>
    <Grid DataContext="{StaticResource MyViewModel}">

        <telerik:RadGridView Grid.Row="0" 
                             Name="clubsGrid" 
                             ItemsSource="{Binding Clubs}"
                             AutoGenerateColumns="False"
                             Margin="5">
            <telerik:RadGridView.Columns>
                <telerik:GridViewSelectColumn />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Established}"
                                            Header="Est." 
                                            DataFormatString="{}{0:yyyy}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding StadiumCapacity}" 
                                            Header="Stadium" 
                                            DataFormatString="{}{0:N0}"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

    </Grid>
</Window>


Regards,
Rajendar.
Maya
Telerik team
 answered on 16 May 2014
7 answers
158 views
We're using the RadRibbonView and are populating it's content dynamically using models for tabs, groups, and buttons. In the constructor of our window we initialize some default tab for the ribbon and make it selected. Then after the window has been loaded we add some more ribbon tabs based off a certain configuration. By itself this works just fine. However we've now decided to bind the RadRibbonView.IsMinimized property so that we can change it in code (get/set from config class). This also works fine by itself, but when you combine these two usage behaviors the RadRibbonView kind of breaks on initial start. You can download a sample project that demonstrates the problem here: https://dl.dropboxusercontent.com/u/22608/RibbonViewMinimized.zip

It seems to be related to the tab selection. In the constructor of the MainWindow if you remove the line that sets the initially selected tab then the problem goes away. Otherwise the SelectedTabContent component of the RadRibbonView seems to become detached from the window (if you move the window around the screen after it initially loads you'll see what I mean). Also, after the window is displayed and the ribbon view is broken, toggling IsMinizmied (double-clicking on a tab header) fixes the issue.

There's things we can do to easily work around this, but I just wanted to present it as a bug and see if you had any feedback.

Thanks!
Martin Ivanov
Telerik team
 answered on 16 May 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
Rating
SplashScreen
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?