Telerik Forums
UI for WPF Forum
3 answers
133 views
I try to use the "Endless scrolling" http://blogs.telerik.com/vladimirenchev/posts/09-02-02/wpf_how_to_endless_scrolling_of_2mil_records_using_backgroundworker_and_linq_to_sql.aspx  in Q3 but this code don't work anymore:

GridViewVirtualizingPanel panel = GridViewItemsControl.GetVirtualizingPanel(RadGridView1.ItemsControl);  
panel.ScrollOwner.VerticalScrollEnded += new EventHandler<System.Windows.Controls.Primitives.ScrollEventArgs>(ScrollOwner_VerticalScrollEnded); 

Any suggestions how to get this working in Q3?
Kennet
Top achievements
Rank 2
 answered on 23 May 2010
2 answers
48 views
Hey all,

I have a treeview that is very stock standard, and has to date been working a treat.

I upgraded to the April 22 release code, and experienced the drag and drop bug where not being in a standard window crashed it consistently. I worked around that by taking everything from my 3rd party ribbon window and dumping it in a standard WPF window. Now I can drag nodes around, but it won't let me drop them anywhere in my tree.

Puzzled, I swapped out the dll's for the March 9 dll's, and it works fine.

Obviously the best solution to my problem is to roll back to the March release. Just thought I'd mention this and see if it's just me or if anyone else has bumped into this?
Jeff Whitty
Top achievements
Rank 1
 answered on 22 May 2010
0 answers
213 views

How do you color a rectangle in C# that has been declared in XAML in WPF?

There is a rectangle control in XAML.  In my C# code there are times in which it would be nice to fill the background color.  How does one do this?

The rectangle has a text block nested inside. The Fill works to color the whole rectangle but it also blocks out the text. On the other hand, using the stroke first colors the rectangle and I can modify the enclosed test but the rectangle does not have a boarder.

The way to do it might be to bind the Rectangle background colouur to a property and use INotifyPropertyChanged to trigger the update of the colour based on the change.

How do I bind the Rectangle background colour to a property?

William
Top achievements
Rank 1
 asked on 22 May 2010
1 answer
120 views
Hello ... be patient with me. I´m more of an front-end person, not much of a hard-core programmer.

So, I´m supposed to evaluate the WPF controls to use for our software ... meaning basically when I can get it to work, then it should be easy to use ... I´m just going nuts here because of an issue I get when trying to follow those tutorials ... for example I tried to follow the online tutorial for RadMap ... when I try to add the reference in the Silverlight project I get ....

"You can´t add a refernece to Telerik.Window.Controls.DataVisualistion.dll as it was not built against Silverlight runtime. Silverlight projects will only work with Silverlight assemblies"

The thing is that I have very limited rights on my computer, for every install or un-install or whatever, I have to get our IT-guys involved, and that can mean I have to wait for hours or days.


Installed RadControls for WPF Trial. Visual Studio 2008 Sp 1, .Net 3.5 Sp1, Tried it with Silverlight Tools 2 and Silverlight Tools 3.

What am I missing ?

Any help would be appreciated. thanks d.
Yavor Georgiev
Telerik team
 answered on 21 May 2010
2 answers
48 views
ch

We have noticed with your chart control that when we set it so that the point labels are showing it makes the opacity of the series definition read only. Is there a way to disable this behavior or work around it so that we can change the opacity in this case? Currently we turn the opacity to 50% for all other series when the user hover’s the mouse over one of the series items in the legend. If the point labels are on and the opacity locked we are unable to do this. Any help on this matter would be greatly appreciated.

Thanks in advance

MacKenzie

Dwight
Telerik team
 answered on 21 May 2010
1 answer
322 views
Hello,

is there any guidance available on how to go about making a histogram with your Chart control?

Thank you,
Michael
Dwight
Telerik team
 answered on 21 May 2010
1 answer
59 views

We have noticed with your chart control that when we set it so that the point labels are showing it makes the opacity of the series definition read only. Is there a way to disable this behavior or work around it so that we can change the opacity in this case? Currently we turn the opacity to 50% for all other series when the user hover’s the mouse over one of the series items in the legend. If the point labels are on and the opacity locked we are unable to do this. Any help on this matter would be greatly appreciated.

 

Thanks in advance

MacKenzie

Dwight
Telerik team
 answered on 21 May 2010
3 answers
392 views
Hi.
I'm using the RadCarousel Control.
I have a List<BitmapImage> and when I add a BitmapImage to this list, I add a Image, with the BitmapImage as source to the RadCarousel.Items

But, instead of showing the actual image. It's showing a dot.

I've tryed to attach a sample project that reproduces my problem but I couldn't.
So follows my code:

XAML:
<Window x:Class="radcarouseltest.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="MainWindow" Height="350" Width="525" 
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    <StackPanel> 
        <telerik:RadCarousel Name="carousel" FlowDirection="LeftToRight" VerticalAlignment="Center"  
                             HorizontalAlignment="Center" HorizontalScrollBarVisibility="Disabled"  /> 
        <Button Content="LoadImages" Click="Button_Click" /> 
    </StackPanel> 
</Window> 
 

CS:
using System; 
using System.Collections.Generic; 
using System.Windows; 
using System.Windows.Controls; 
using System.Windows.Media.Imaging; 
using Microsoft.Win32; 
 
namespace radcarouseltest 
    /// <summary> 
    /// Interaction logic for MainWindow.xaml 
    /// </summary> 
    public partial class MainWindow : Window 
    { 
        private const String ExtensionFilter = "(*.jpg)|*.jpg|(*.gif)|*.gif|(*.png)|*.png|(*.tif)|*.tif|(*.tiff)|*.tiff"
        private List<BitmapImage> imageList; 
        public MainWindow() 
        { 
            InitializeComponent(); 
            imageList = new List<BitmapImage>(); 
        } 
 
        private void Button_Click(object sender, RoutedEventArgs e) 
        { 
            OpenFileDialog dialog = new OpenFileDialog { RestoreDirectory = true, Filter = ExtensionFilter, Multiselect = true }; 
            if (dialog.ShowDialog() == true
            { 
                foreach (string fileName in dialog.FileNames) 
                { 
                    BitmapImage myImage = new BitmapImage(new Uri(fileName, UriKind.Relative)); 
                    imageList.Add(myImage); 
                    updateCarousel(); 
                    carousel.SelectedItem = carousel.Items[imageList.Count -1 ]; 
                     
                } 
            } 
        } 
 
        private void updateCarousel() 
        { 
            carousel.Items.Clear(); 
            foreach (BitmapImage img in imageList) 
            { 
                Image myImage = new Image(); 
                myImage.Source = img; 
 
                carousel.Items.Add(myImage); 
            } 
        } 
    } 
 

Thanks
Maya
Telerik team
 answered on 21 May 2010
1 answer
182 views
In the Docking/Compass/Programming of the wpf demos, there is a dropdown list of themes, such as Vista and Windows7.
I was trying to find the Windows7 theme file and customize it, but I couldn't find the theme files. Where are the theme files located?
The source code file doesn't include the code for the theme dropdown button. Where is the source code of the dropdown theme button.
Pana
Telerik team
 answered on 21 May 2010
1 answer
116 views
Hello,

How do I disable busy cursor when sorting datagrid.

Thanks,

Xoma
Pavel Pavlov
Telerik team
 answered on 21 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?