Telerik Forums
UI for WPF Forum
0 answers
63 views
Hi.
I want to chnage the following items.

1. The border and background color for that Cell.
2. Whenever i drag the column header to group panel the Font size and color gets change. i want to change these colors in xaml.

Thanks
Dhruv
Top achievements
Rank 1
 asked on 06 Feb 2012
0 answers
72 views
Hi,
As the Title,for example,could bind the source for page2,when I turn to page2,then page 3 and so on...
just give the pagecount then dynamic binding itemsource for every page. 

Best Regards,
Sky,
Yu
Top achievements
Rank 1
 asked on 06 Feb 2012
1 answer
148 views
When writing customized property definitions, is it possible to mark properties as readonly? The workaround I have now is setting a control's IsEnabled property to false in the editortemplate
Maya
Telerik team
 answered on 06 Feb 2012
0 answers
79 views
hi,
i have a client the LOVES your opening page animation on the WPF Controls Expamles Demo.
was it done with a carousel control?
thanks! 
sivan benmoshe
Top achievements
Rank 1
 asked on 05 Feb 2012
1 answer
102 views
We have Ms. theme look in complete application, The Date picker also has the theme and look, But when datepicker is clicked to select date, the month and year on top shows black in color instead of the theme color which is blue, Any idea?

In the attached pic below. We want to change the forecolor of "February -2012.
Boyan
Telerik team
 answered on 03 Feb 2012
2 answers
75 views
Have the complete application with Microsoft theme. The Radchart legend forecolor needs to be same color as needed. It shows Black right now. How do I change the legend radchart forecolor or keys?
The Legend Items are created dynamically. Pic of what needs changed color attached.
Bhakti
Top achievements
Rank 1
 answered on 03 Feb 2012
0 answers
151 views
hi everybody,
can anyone help me to know how i can set RadGridView.CurrentCellInfo by binding from viewModel in MVVM architecture????
M
Top achievements
Rank 1
 asked on 03 Feb 2012
2 answers
67 views
Hi,

I'm facing into a crazy issue.

Actually i'm using a RadGridView inside a RadDocking Pane. When i resize the window by doubleclick on top header bar of the window, so i pass quickly from normal state to maximized state, i loose some headers and some cells of the RadGridView.

The issue is the same when i play with panes of the docking by dragging it. But if i resize the window by hand slowlly headers and cells reappear !!

Attached, a sample projet and 2 screenshots of the issue.

I'm using the latest internal build 2011.3.1330.40. But the bug is the same with previous versions.
It's a very ennoying bug ...

Any help ?

Screenshots
Sample Project

Thanks.
Vera
Telerik team
 answered on 03 Feb 2012
1 answer
82 views
Hi,

I tried using your ScheduleView with Metro Theme, unfortunately the ViewDefinitions background is set to White for whichever style it is being applied. I am using cosmopolitan theme so I'm not sure which control was inherit from that's why the background is set to White. I tried reproducing this to a empty project and the Metro theme works fine with the Blue and White colors in the Viewdefinitions like Day, Week, Month, Timeline.

I would just like to know what control was used in the ViewDefinitions so I could remove the default style of Cosmopolitan Theme for WPF for the ScheduleView.

Screenshot
Yana
Telerik team
 answered on 03 Feb 2012
0 answers
158 views
I have a Telerik transition control binding to a custom class, The transition control accepts needs an image as input.  Can you please tell me how can i bind explicitly telling the element name which have the image reference. Itemsource is an attached property. I have included the code below. I tried Path=AdImage but it did not worked.

I was using http://blogs.telerik.com/blogs/posts/11-01-11/how-to-create-ad-rotator-with-telerik-transitioncontrol-and-coverflow-control-for-silverlight.aspx  to create an adrotator control.



<telerik:RadTransitionControl  x:Name="radControl" adRotator:AdRotatorExtensions.ItemChangeDelay="0:0:3" 
 adRotator:AdRotatorExtensions.CurrentSelectedIndex="0"
                              adRotator:AdRotatorExtensions.IndexChanged="{Binding TopItemCommand, Mode=OneWay}"
                              adRotator:AdRotatorExtensions.ItemsSource="{Binding ImagePaths, Mode=OneWay,Path=AdImage}"
 VerticalAlignment="Center" 
 HorizontalAlignment="Center" Width="650">
<telerik:RadTransitionControl.Transition>
<telerik:MotionBlurredZoomTransition />
</telerik:RadTransitionControl.Transition>

</telerik:RadTransitionControl>


 public static readonly DependencyProperty ItemsSourceProperty =
    DependencyProperty.RegisterAttached("ItemsSource", typeof(IEnumerable), typeof(AdRotatorExtensions), new PropertyMetadata(null, OnItemsSourceChanged));
    
    private static void OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
    var element = d as FrameworkElement;
       var itemsControl = d as ItemsControl; // this is always null it returns a RadTranisitionControl object which doesnt have DisplayMemberName property
   
    var oldValue = e.OldValue as IEnumerable;
    var newValue = e.NewValue as IEnumerable;
       
           if (element != null)
           {
               if (oldValue != null)
               {
                   // Detach the Ad Rotator functionality.
                   element.Loaded -= OnElementLoaded;
                   element.Unloaded -= OnElementUnloaded;
    
                   // If there is a timer attached, stop it.
                   var timer = GetTimer(element);
                   if (timer != null)
                   {
                       timer.Stop();
                   }
               }
    
               if (newValue != null)
               {
                   // Attach the Ad Rotator functionality.
                   element.Loaded += OnElementLoaded;
                   element.Unloaded += OnElementUnloaded;
    
                   // If the target is an ItemsControl and its ItemsSource is not set, set it.
                   if (itemsControl != null && itemsControl.ItemsSource == null && itemsControl.Items.Count == 0)
                   {
                       itemsControl.ItemsSource = newValue;
                       itemsControl.DisplayMemberPath = "AdImage"; // will never reaches here
                   }
               }
           }
       }
    
    
    private static void OnElementLoaded(object sender, RoutedEventArgs args)
    {
    var element = sender as DependencyObject;
    
    // Create the timer and hook-up to the events.
    var timer = new DispatcherTimer();
    timer.Interval = GetItemChangeDelay(element).TimeSpan;
    SetTimer(element, timer);
    
    timer.Tick += (s, e) => MoveToNextElement(element);
    
    timer.Start();
    
    // Make sure the currently pointed element is selected.
    UpdateCurrentlySelectedItem(element);
    }
    
    private static void UpdateCurrentlySelectedItem(DependencyObject element)
    {
    var contentControl = element as ContentControl;
       
    
    
       var source = GetItemsSource(element);
    
    // If there is no source we shouldn't do anything.
    if (source == null) return;
    
    // Find the actual index to be selected (if outside the boundaries of the collection)
    // and find the actual element to be selected.
    var convertedSource = source.Cast<object>();
    var currentIndex = GetCurrentSelectedIndex(element);
    var elementToSelect = convertedSource.ElementAtOrDefault(currentIndex);
    
                ICommand updateValue = null;
                if (contentControl != null)
                {
                    updateValue = contentControl.GetValue(IndexChangedProperty) as ICommand;
                }
    
                if (updateValue != null)
                    if (updateValue.CanExecute(elementToSelect))
                    {
                        updateValue.Execute(elementToSelect);
                        
    
                    }
    
    
    // Update the cotnent of the ContentControl if attached to a ContentControl.
    if (contentControl != null)
    {
    contentControl.Content = elementToSelect;
                    
    }
    }
 
 
John
Top achievements
Rank 1
 asked on 03 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?