Click here to Skip to main content
12,634,422 members (27,253 online)

Silverlight / WPF

 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
Kevin Marois20-May-13 15:00
memberKevin Marois20-May-13 15:00 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
SledgeHammer0120-May-13 17:16
memberSledgeHammer0120-May-13 17:16 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
Kevin Marois15-Jun-13 11:37
memberKevin Marois15-Jun-13 11:37 
Questionweb services Pin
picasso212-May-13 13:54
memberpicasso212-May-13 13:54 
AnswerRe: web services Pin
Abhinav S12-May-13 19:29
mvpAbhinav S12-May-13 19:29 
GeneralRe: web services Pin
picasso212-May-13 21:21
memberpicasso212-May-13 21:21 
QuestionHow to acheive the given layout in Silverlight? Pin
New Coder1239-May-13 23:55
memberNew Coder1239-May-13 23:55 
AnswerRe: How to acheive the given layout in Silverlight? Pin
Abhinav S12-May-13 8:47
mvpAbhinav S12-May-13 8:47 
QuestionSL application does not works-nothing change Pin
picasso28-May-13 19:48
memberpicasso28-May-13 19:48 
AnswerRe: SL application does not works-nothing change Pin
Abhinav S12-May-13 8:45
mvpAbhinav S12-May-13 8:45 
QuestionBinding issues with Treeview C# WPF Pin
bartbartb2-May-13 12:41
memberbartbartb2-May-13 12:41 
AnswerRe: Binding issues with Treeview C# WPF Pin
Kenneth Haugland3-May-13 3:22
professionalKenneth Haugland3-May-13 3:22 
AnswerRe: Binding issues with Treeview C# WPF Pin
Mycroft Holmes9-May-13 13:23
professionalMycroft Holmes9-May-13 13:23 
QuestionVisualTreeHelper.HitTest / RectangleGeometry not working... Pin
SledgeHammer012-May-13 8:26
memberSledgeHammer012-May-13 8:26 
Trying to use VisualTreeHelper.HitTest on a TreeView. I have two arbitrary items. TreeViewItem1 and TreeViewItem2. These items may appear anywhere on the tree and have any sort of relationship (different parents, etc.). I've gotten the top left point of the two items. pt1 and pt2. I want to find the visible TreeViewItems in between. So I did:

VisualTreeHelper.HitTest(ParentTreeView, new HitTestFilterCallback(A), new HitTestResultCallback(B), new GeometryHitTestParameters(new RectangleGeometry(new Rect(0, pt1.Y, ParentTreeView.ActualWidth, (pt2.Y + 1) - pt1.Y))));

HitTestFilterBehavior A(DependencyObject potentialHitTestTarget)
{
if (potentialHitTestTarget is TreeViewItemEx)
{
if (((UIElement)potentialHitTestTarget).IsVisible)
System.Diagnostics.Debug.WriteLine(potentialHitTestTarget);
}

return HitTestFilterBehavior.Continue;
}

HitTestResultBehavior B(HitTestResult result)
{
return HitTestResultBehavior.Continue;
}

This code is working for the most part, except it's also returning parent items that it shouldn't. If my tree looks like:

1
_2
__3

and the two items in question are 2 & 3, the hit-test also returns 1.

A more ugly example is:

Root
_NodeWithChildren1
_NodeWithChildren2
_NodeWithChildren3
__1
__2
__3

the tree looks exactly like that on the screen. The items in question are _NodeWithChildren3 and __1. The hit-test returns Root and _NodeWithChildren1 and _NodeWithChildren2 as well.

Any ideas? I have confirmed that I am getting the correct item1 & item2 that I think I am getting and I have confirmed that the points I am getting are correct as well.
AnswerRe: VisualTreeHelper.HitTest / RectangleGeometry not working... Pin
Kenneth Haugland2-May-13 8:38
professionalKenneth Haugland2-May-13 8:38 
QuestionTab Closing Problem Pin
Kevin Marois1-May-13 21:14
memberKevin Marois1-May-13 21:14 
AnswerRe: Tab Closing Problem Pin
Amitosh Swain3-May-13 5:49
memberAmitosh Swain3-May-13 5:49 
QuestionAsynchronous Call Using MVVM Pin
jonkjon29-Apr-13 11:21
memberjonkjon29-Apr-13 11:21 
AnswerRe: Asynchronous Call Using MVVM Pin
SledgeHammer0129-Apr-13 11:32
memberSledgeHammer0129-Apr-13 11:32 
GeneralRe: Asynchronous Call Using MVVM Pin
jonkjon29-Apr-13 11:48
memberjonkjon29-Apr-13 11:48 
Questionwin32 window as c# wpf control Pin
mkusnjer29-Apr-13 9:58
membermkusnjer29-Apr-13 9:58 
AnswerRe: win32 window as c# wpf control Pin
SledgeHammer0129-Apr-13 10:28
memberSledgeHammer0129-Apr-13 10:28 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer30-Apr-13 6:19
membermkusnjer30-Apr-13 6:19 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer0130-Apr-13 11:58
memberSledgeHammer0130-Apr-13 11:58 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 9:31
membermkusnjer1-May-13 9:31 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 11:46
memberSledgeHammer011-May-13 11:46 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 13:11
membermkusnjer1-May-13 13:11 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 13:20
memberSledgeHammer011-May-13 13:20 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 13:39
membermkusnjer1-May-13 13:39 
GeneralRe: win32 window as c# wpf control Pin
SledgeHammer011-May-13 14:00
memberSledgeHammer011-May-13 14:00 
GeneralRe: win32 window as c# wpf control Pin
mkusnjer1-May-13 14:24
membermkusnjer1-May-13 14:24 
AnswerRe: win32 window as c# wpf control Pin
Amitosh Swain3-May-13 5:33
memberAmitosh Swain3-May-13 5:33 
QuestionDynamically create radiobuttons under the group header that can span to N - number of groups Pin
Rajesh Sajjanar27-Apr-13 11:29
memberRajesh Sajjanar27-Apr-13 11:29 
AnswerRe: Dynamically create radiobuttons under the group header that can span to N - number of groups Pin
Kenneth Haugland27-Apr-13 13:32
professionalKenneth Haugland27-Apr-13 13:32 
AnswerRe: Dynamically create radiobuttons under the group header that can span to N - number of groups Pin
Mycroft Holmes27-Apr-13 14:06
professionalMycroft Holmes27-Apr-13 14:06 
QuestionIdeaBlade vs OData Pin
Super Lloyd25-Apr-13 19:36
memberSuper Lloyd25-Apr-13 19:36 
QuestionWPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 0:44
memberKishoreUHG22-Apr-13 0:44 
AnswerRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 0:50
professionalMycroft Holmes22-Apr-13 0:50 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 0:52
memberKishoreUHG22-Apr-13 0:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 0:59
professionalMycroft Holmes22-Apr-13 0:59 
GeneralRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 1:08
memberKishoreUHG22-Apr-13 1:08 
AnswerRe: WPF Login in MVVM Issue Pin
Wayne Gaylard22-Apr-13 2:44
mentorWayne Gaylard22-Apr-13 2:44 
AnswerRe: WPF Login in MVVM Issue Pin
KishoreUHG22-Apr-13 3:52
memberKishoreUHG22-Apr-13 3:52 
GeneralRe: WPF Login in MVVM Issue Pin
Mycroft Holmes22-Apr-13 13:59
professionalMycroft Holmes22-Apr-13 13:59 
QuestionWPF Simular to tree view Pin
Saksida Bojan21-Apr-13 10:52
memberSaksida Bojan21-Apr-13 10:52 
AnswerRe: WPF Simular to tree view Pin
Richard MacCutchan21-Apr-13 23:39
mvpRichard MacCutchan21-Apr-13 23:39 
GeneralRe: WPF Simular to tree view Pin
Saksida Bojan2-May-13 8:41
memberSaksida Bojan2-May-13 8:41 
QuestionWPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 6:10
memberKevin Marois19-Apr-13 6:10 
AnswerRe: WPF User Controls - Interacting With Other Controls Pin
Mycroft Holmes19-Apr-13 14:19
professionalMycroft Holmes19-Apr-13 14:19 
GeneralRe: WPF User Controls - Interacting With Other Controls Pin
Kevin Marois19-Apr-13 14:21
memberKevin Marois19-Apr-13 14:21 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.161208.2 | Last Updated 7 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid