Click here to Skip to main content
15,893,814 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Good wpf tutorials Pin
Paul Conrad12-Jul-08 12:32
professionalPaul Conrad12-Jul-08 12:32 
GeneralRe: Good wpf tutorials Pin
Yajnesh Narayan Behera21-Jul-08 0:01
Yajnesh Narayan Behera21-Jul-08 0:01 
QuestionFonts Problem in Silverlight.. Pin
Prkay11-Jul-08 2:04
Prkay11-Jul-08 2:04 
AnswerRe: Fonts Problem in Silverlight.. Pin
Sam Xavier11-Jul-08 2:39
Sam Xavier11-Jul-08 2:39 
GeneralRe: Fonts Problem in Silverlight.. Pin
Prkay11-Jul-08 2:51
Prkay11-Jul-08 2:51 
GeneralRe: Fonts Problem in Silverlight.. Pin
Michael Sync12-Jul-08 6:25
Michael Sync12-Jul-08 6:25 
QuestionObtain Child from a Grid by clicking Button Pin
ezazazel10-Jul-08 23:10
ezazazel10-Jul-08 23:10 
AnswerRe: Obtain Child from a Grid by clicking Button Pin
Brian Griggs11-Jul-08 11:18
Brian Griggs11-Jul-08 11:18 
I think your on the right track, the VisualTreeHelper should do the job for you:

private void grid_MouseRightButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)        
{            
    MatrixElement elem = GetDependencyObjectFromVisualTree((DependencyObject)sender, typeof(MatrixElement)) as MatrixElement;
}

private static DependencyObject GetDependencyObjectFromVisualTree(DependencyObject startObject, Type type)
{
    // Iterate the visual tree to get the parent of this control
    DependencyObject parent = startObject;
    while (parent != null)
    {
        if (type.IsInstanceOfType(parent))
            break;
        else
            parent = VisualTreeHelper.GetParent(parent);
    }
    return parent;
}



Hope this helps.
GeneralRe: Obtain Child from a Grid by clicking Button Pin
Gideon Engelberth11-Jul-08 14:10
Gideon Engelberth11-Jul-08 14:10 
GeneralRe: Obtain Child from a Grid by clicking Button Pin
ezazazel13-Jul-08 23:54
ezazazel13-Jul-08 23:54 
QuestionHow to Bold a Particular field in a list view Pin
Aslesh10-Jul-08 3:49
Aslesh10-Jul-08 3:49 
AnswerRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera10-Jul-08 4:45
Yajnesh Narayan Behera10-Jul-08 4:45 
GeneralRe: How to Bold a Particular field in a list view Pin
Aslesh10-Jul-08 4:52
Aslesh10-Jul-08 4:52 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera13-Jul-08 22:03
Yajnesh Narayan Behera13-Jul-08 22:03 
GeneralRe: How to Bold a Particular field in a list view Pin
Aslesh14-Jul-08 2:37
Aslesh14-Jul-08 2:37 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera14-Jul-08 23:46
Yajnesh Narayan Behera14-Jul-08 23:46 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera15-Jul-08 0:08
Yajnesh Narayan Behera15-Jul-08 0:08 
GeneralRe: How to Bold a Particular field in a list view Pin
Aslesh15-Jul-08 3:57
Aslesh15-Jul-08 3:57 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera15-Jul-08 23:21
Yajnesh Narayan Behera15-Jul-08 23:21 
GeneralRe: How to Bold a Particular field in a list view Pin
Aslesh16-Jul-08 4:38
Aslesh16-Jul-08 4:38 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera16-Jul-08 23:48
Yajnesh Narayan Behera16-Jul-08 23:48 
GeneralRe: How to Bold a Particular field in a list view Pin
Yajnesh Narayan Behera17-Jul-08 0:28
Yajnesh Narayan Behera17-Jul-08 0:28 
GeneralRe: How to Bold a Particular field in a list view Pin
Aslesh17-Jul-08 4:13
Aslesh17-Jul-08 4:13 
QuestionHow to trigger a method after some time span Pin
Aslesh9-Jul-08 8:38
Aslesh9-Jul-08 8:38 
AnswerRe: How to trigger a method after some time span Pin
Christian Graus9-Jul-08 8:42
protectorChristian Graus9-Jul-08 8:42 

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.