Click here to Skip to main content
15,913,487 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: "Silverlight" vs "WPF Web Browser App" Pin
salon9-Feb-09 21:55
salon9-Feb-09 21:55 
QuestionDependencyProperty problem Pin
schiebel-t31-Jan-09 7:58
schiebel-t31-Jan-09 7:58 
AnswerRe: DependencyProperty problem Pin
Insincere Dave31-Jan-09 11:13
Insincere Dave31-Jan-09 11:13 
AnswerRe: DependencyProperty problem Pin
Pete O'Hanlon1-Feb-09 8:30
mvePete O'Hanlon1-Feb-09 8:30 
QuestionHow to Change the Resources at runtime in WPF Application? Pin
sankarlearns30-Jan-09 13:40
sankarlearns30-Jan-09 13:40 
AnswerRe: How to Change the Resources at runtime in WPF Application? Pin
Jammer1-Feb-09 10:40
Jammer1-Feb-09 10:40 
AnswerRe: How to Change the Resources at runtime in WPF Application? [modified] Pin
sankarlearns3-Feb-09 11:29
sankarlearns3-Feb-09 11:29 
QuestionWPF ListView/Items Control - Another problem Pin
snblackout30-Jan-09 13:21
snblackout30-Jan-09 13:21 
Hi there, I posted yesterday a problem that I've fixed, but now I ran into another one. This is not a conversion problem, more like a bug.

Please do the following in Bea's project to reproduce.

1. Open 'DataSource.cs'
2. Make the 'public Album()' look like below

public Album()
		{
			this.PicturesLeft = new ObservableCollection<picture>();
            this.PicturesRight = new ObservableCollection<picture>();

            this.PicturesLeft.Add(new Picture(new Uri("Images\\2moons_2.gif", UriKind.Relative), "Saturn", "Saturn is the most distant of the five planets known to ancient stargazers."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\earglobe.gif", UriKind.Relative), "Earth", "Earth, our home planet, is the only planet in our solar system known to harbor life."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\jupglobe.gif", UriKind.Relative), "Jupiter", "With its numerous moons and several rings, the Jupiter system is a \"mini-solar system.\""));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\marglobe.gif", UriKind.Relative), "Mars", "The red planet Mars has inspired wild flights of imagination over the centuries."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\merglobe.gif", UriKind.Relative), "Mercury", "The small and rocky planet Mercury is the closest planet to the Sun."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\nepglobe.gif", UriKind.Relative), "Neptune", "Neptune was the first planet located through mathematical predictions."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\plutoch_2.gif", UriKind.Relative), "Pluto", "Long considered to be the smallest, coldest, and most distant planet from the Sun."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\uraglobe.gif", UriKind.Relative), "Uranus", "Uranus gets its blue-green color from methane gas above the deeper cloud layers."));
            this.PicturesLeft.Add(new Picture(new Uri("Images\\venglobe.gif", UriKind.Relative), "Venus", "At first glance, if Earth had a twin, it would be Venus."));

            int i;

            for (i = 0; i <= 3; i++) 
            {    
                this.PicturesRight.Add(new Picture(new Uri("Images\\2moons_2.gif", UriKind.Relative), "Saturn", "Saturn is the most distant of the five planets known to ancient stargazers."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\earglobe.gif", UriKind.Relative), "Earth", "Earth, our home planet, is the only planet in our solar system known to harbor life."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\jupglobe.gif", UriKind.Relative), "Jupiter", "With its numerous moons and several rings, the Jupiter system is a \"mini-solar system.\""));
                this.PicturesRight.Add(new Picture(new Uri("Images\\marglobe.gif", UriKind.Relative), "Mars", "The red planet Mars has inspired wild flights of imagination over the centuries."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\merglobe.gif", UriKind.Relative), "Mercury", "The small and rocky planet Mercury is the closest planet to the Sun."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\nepglobe.gif", UriKind.Relative), "Neptune", "Neptune was the first planet located through mathematical predictions."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\plutoch_2.gif", UriKind.Relative), "Pluto", "Long considered to be the smallest, coldest, and most distant planet from the Sun."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\uraglobe.gif", UriKind.Relative), "Uranus", "Uranus gets its blue-green color from methane gas above the deeper cloud layers."));
                this.PicturesRight.Add(new Picture(new Uri("Images\\venglobe.gif", UriKind.Relative), "Venus", "At first glance, if Earth had a twin, it would be Venus."));
            }     
		           
		}
</picture></picture>


3. Run it

Notice that if you scroll to the bottom of the ListView the drag & drop stops working but if you scroll back to the top, the drag & drop works. Also if you use the keyboard to arrow up/dwn in the listview the drag & drop works until you scroll via the mouse wheel or the scrollbar.

If you have 18 items in the ListView it works fine, add anymore and it starts messing up.

This one I've narrowed down to 1 line of code that isn't working when you are at the bottom of the list. This is from "Utilities.cs-->GetItemContainer"
var firstContainer = itemsControl.ItemContainerGenerator.ContainerFromIndex(0);


Anyone have any ideas?

Thanks
AnswerRe: WPF ListView/Items Control - Another problem Pin
Insincere Dave31-Jan-09 4:08
Insincere Dave31-Jan-09 4:08 
GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout31-Jan-09 7:56
snblackout31-Jan-09 7:56 
GeneralRe: WPF ListView/Items Control - Another problem [modified] Pin
Insincere Dave31-Jan-09 10:30
Insincere Dave31-Jan-09 10:30 
GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout2-Feb-09 8:59
snblackout2-Feb-09 8:59 
QuestionWindows1 Elements Pin
me0830-Jan-09 12:26
me0830-Jan-09 12:26 
AnswerRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:30
BlitzPackage2-Feb-09 11:30 
GeneralRe: Windows1 Elements Pin
me082-Feb-09 11:53
me082-Feb-09 11:53 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:42
mvePete O'Hanlon2-Feb-09 11:42 
GeneralRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:45
BlitzPackage2-Feb-09 11:45 
GeneralRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:46
mvePete O'Hanlon2-Feb-09 11:46 
QuestionRe: Windows1 Elements Pin
me084-Feb-09 5:04
me084-Feb-09 5:04 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon4-Feb-09 5:20
mvePete O'Hanlon4-Feb-09 5:20 
QuestionDlls Issue Pin
Tauseef A29-Jan-09 23:12
Tauseef A29-Jan-09 23:12 
AnswerRe: Dlls Issue Pin
Michael Sync31-Jan-09 4:56
Michael Sync31-Jan-09 4:56 
QuestionXaml on the Web Pin
Jammer29-Jan-09 23:07
Jammer29-Jan-09 23:07 
AnswerRe: Xaml on the Web Pin
Pete O'Hanlon30-Jan-09 0:40
mvePete O'Hanlon30-Jan-09 0:40 
GeneralRe: Xaml on the Web Pin
Jammer30-Jan-09 0:54
Jammer30-Jan-09 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.