Top "Elementname" questions

Gets or sets the name of the element to use as the wpf binding source object.

Getting element's name in XPATH

If I selected an element using XPATH how can I get its name? I mean something like text() function in //…

xpath elementname
ElementName Binding from MenuItem in ContextMenu

Has anybody else noticed that Bindings with ElementName do not resolve correctly for MenuItem objects that are contained within ContextMenu …

wpf data-binding contextmenu elementname
Add Attribute to XMLROOT ElementName

I have a class with the class attribute : [XmlRoot(ElementName = "RootXML")] public class Apply { /My Properties } now to create an …

c# xml elementname xmlroot
Binding ElementName. Does it use Visual Tree or Logical Tree

Having {Binding ElementName=foo}, will it lookup visual or logical tree? Of logical and visual trees in WPF | Data See, …

wpf binding elementname visual-tree logical-tree
ElementName vs. RelativeResource?

What of the following TextBlocks' Bindings costs more performance: <Window x:Name="Me" x:Class="MainWindow" xmlns="http://schemas.…

wpf binding performance relativesource elementname