Telerik Forums
UI for WPF Forum
13 answers
2.1K+ views
Hi

I have managed to change most of the appearance of the date time picker to fit in with my application by using a modified metro theme.
The only thing that I can't seem to do is change the font size.

Is there an easy way to do this?

I really don't want to have to generate a huge style file using blend - I don't have Blend for starters and I have downloaded an example date time style and it's huge. I just don't have the time to pick through it. I just want to increase the font size.

Any ideas?

Cheers

Steve
Dani
Telerik team
 answered on 29 Nov 2011
1 answer
134 views
The pop-up font editor does not abide by the set theme (see attachment). In the rich text box, when a word is highlighted and hovered over, a pop-up appears allowing the user to quickly modify the selected word's font. This pop-up is only partially styled based off of the set theme, even when the theme is set as follows:
StyleManager.ApplicationTheme = new Expression_DarkTheme();

Is there a way to address this issue, or failing that, a way to disable the pop-up?
Boby
Telerik team
 answered on 29 Nov 2011
1 answer
117 views

For example, I have an ObservableCollection with 10000 items, and I want to add 1000 items to this collection. If I were to add the 1000 items one by one, it would be painfully slow because of the 1000 CollectionChanged events fired. The second option is to use the RadObservableCollection's SuspendNotifications and Reset methods. This option is more tolerable but it's still not desirable as adding 1000 items causes the control to reload the whole collection of 11000 items. Is there a better way to add 1000 items with a single CollectionChanged event being raised that is not a Reset action?


Thanks.
Vlad
Telerik team
 answered on 29 Nov 2011
1 answer
72 views
My application can open items in either the document host of a RadDocking control, or open them into a new window (not a docking floating window).

When the item is opened and put into the Docking control, the CPU Usage of the program constantly busy, anywhere from 2-7 % (relative per machine of course) As soon as i close my item, the CPU goes back down to 0 and never moves.

If I open the item into a new window, the CPU usage does not move as the program sits, like it does when it is docked in the docking control.

Any idea why I might have this Issue?
George
Telerik team
 answered on 28 Nov 2011
1 answer
58 views
Hi,
I'm trying to make a visibility of an item depends on its property.
Searcing the forum gave me several similar questions but I could not find the answer.
I hope someone take a look at this problem.
Many thanks.


Chris
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
100 views
I'm interested in replaying a control's default animations when it's visibility changes to Visible.  If it matters, I'm particularly interested in RadChart and RadTileView animations.  Are there examples that accomplish this?

Thanks,
Kevin
Yana
Telerik team
 answered on 28 Nov 2011
1 answer
96 views
When a chart is first populated with data, the series are drawn with animation.

I would like to repeat this animation when the chart comes back into focus (e.g. if the form is minimised, then I would like to show the animation again when the form is maximised).

Does anyone know how to replay the animation?

Thanks.
Sia
Telerik team
 answered on 28 Nov 2011
1 answer
161 views
Hi,

I'm using trial version of Telerik WPF controls (Q3 2011) and trying to create my own theme for ScheduleView using following article as a guide Creating a Custom Theme Project (I know it is written for Silverlight control but I can't find something similar for WPF)
I used SchedulerView.xaml from OfficeBlue theme as a starting point for my modification. And it looks like I almost successfully applied my custom theme to the RadScheduleView controls. My problem is that some "parts" of the control are missing in the custom theme, you can see it on the screenshot attached bellow.
It is obvious I'm doing something wrong but I can't figure out what is exactly wrong, so could you please help me with it.

Here is the link to my demo project http://dl.dropbox.com/u/3950376/TelerikScheduleView.zip (I don't know how to attach zip files to my message here)

Thanks,
Alexander
Dani
Telerik team
 answered on 28 Nov 2011
1 answer
91 views

I have two sources for dragging and dropping appointments onto the ScheduleView. Both consist of dragging custom appt objects so they both utilize a custom dragdrop handler class and use the override of the ConvertDraggedData method. I am wondering if it would be possible to arrange the appts in such a way that if I grabbed appts from all over the view and then dragged them to a specific resource at a specific time, If I could then just have them updated in such a way that the appts were dropped one after another in the view (stacked horizontally in timeline view for example). I think the issue I am having is that destination slots need to be updated somehow to reflect where I want the appts to eventually be. Hopefully this isn't too confusing and someone can lead me in the right direction. Here is a bit of code that I wrote but obviously it isn't working like I expect at this point. I am basically trying to re-arrange the appts so that one comes right after another when they are dropped. The collection looks like I expect when it comes out of my ArrageTasks, but the result is the appts still end up in slots all over the view.

public override IEnumerable<IOccurrence> ConvertDraggedData(object data)
        {
            if (data.GetType() == typeof(DataObject))
            {
                return ArrangeTasks(data);
                //return (data as DataObject).GetData("MetrixTaskAppointments") as IList<IOccurrence>;
            }
 
            return base.ConvertDraggedData(data);
        }
 
        private IEnumerable<IOccurrence> ArrangeTasks(object data)
        {
            IList<IOccurrence> appts = (data as DataObject).GetData("MetrixTaskAppointments") as IList<IOccurrence>;
            IEnumerable<IOccurrence> sortedAppts = appts.OrderBy(f => f.Start);
 
            IEnumerator apptEnumerator = sortedAppts.GetEnumerator();
            DateTime savedPlanTravelEndDttm = DateTime.Now;
            bool firstTask = true;
            while (apptEnumerator.MoveNext())
            {
                MetrixTaskAppointment mAppt = (MetrixTaskAppointment)apptEnumerator.Current;
                IAppointment appt = (Appointment)apptEnumerator.Current;
 
                if (firstTask == true)
                {
                    firstTask = false;
                }
                else
                {                   
                    mAppt.PlanTravelStartDttm = savedPlanTravelEndDttm;
                    mAppt.PlanStartDttm = mAppt.PlanTravelStartDttm.AddMinutes(mAppt.PlanTravelToMin);
                    mAppt.PlanEndDttm = mAppt.PlanStartDttm.AddMinutes(mAppt.PlanTaskDurMin);
                    mAppt.PlanTravelEndDttm = mAppt.PlanEndDttm.AddMinutes(mAppt.PlanTravelReturnMin);
                    appt.Start = mAppt.PlanStartDttm;
                    appt.End = mAppt.PlanEndDttm;
                }
                 
                savedPlanTravelEndDttm = mAppt.PlanTravelEndDttm;
            }
 
            return sortedAppts;
  
        }

Yana
Telerik team
 answered on 28 Nov 2011
3 answers
72 views
If I created a CustomControl derived from a RadComboBox, I have to explicitly load my xaml file in the App.xaml of the final application.

Apparently, the native style of Telerik to replace my style. That is why I have to recharge it back.
Pana
Telerik team
 answered on 28 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?