Click here to Skip to main content
15,898,939 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How to get all names of columns of all tables from model, in silverlight Pin
Abhinav S8-Nov-10 1:13
Abhinav S8-Nov-10 1:13 
GeneralRe: How to get all names of columns of all tables from model, in silverlight Pin
jadughar8-Nov-10 3:01
jadughar8-Nov-10 3:01 
GeneralRe: How to get all names of columns of all tables from model, in silverlight Pin
Abhinav S8-Nov-10 5:12
Abhinav S8-Nov-10 5:12 
Questionhierarchical data grid in silverlight Pin
C-sharper 15-Nov-10 7:13
C-sharper 15-Nov-10 7:13 
AnswerRe: hierarchical data grid in silverlight Pin
Abhinav S5-Nov-10 19:03
Abhinav S5-Nov-10 19:03 
GeneralRe: hierarchical data grid in silverlight Pin
C-sharper 110-Nov-10 0:04
C-sharper 110-Nov-10 0:04 
AnswerRe: hierarchical data grid in silverlight Pin
RugbyLeague11-Nov-10 5:42
RugbyLeague11-Nov-10 5:42 
QuestionTreeview - XML - HierarchicalDataTemplate Pin
RugbyLeague5-Nov-10 6:20
RugbyLeague5-Nov-10 6:20 
I am sure this something really simple and I have been looking at it for too long but why doesn't this show anything?

   public partial class Window1 : Window
    {
        public XmlDataProvider Provider { get; set; }

        public Window1()
        {
            InitializeComponent();

            Provider = new XmlDataProvider();
            Provider.Document = new XmlDocument();
            Provider.Document.LoadXml(TestXml.Test.Test());
            Provider.XPath = "Halloumi";
        }
    }


<Window x:Class="HalloumiDesigner.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300"
    DataContext="{Binding RelativeSource={RelativeSource Self}}">
    
    <Window.Resources>
        
        <HierarchicalDataTemplate DataType="Database" ItemsSource="{Binding XPath=Databases/Database}">
            <Border BorderBrush="SteelBlue"
                    BorderThickness="2"
                    Background="AliceBlue">
                <TextBlock Text="{Binding XPath=@Name}" />
            </Border>
        </HierarchicalDataTemplate>

    </Window.Resources>
    
    <Grid>
        <TreeView Name="TreeView" ItemsSource="{Binding Provider}" Margin="10" />
    </Grid>
</Window>


XML is:

<Halloumi>
                   <Databases>
                       <Database Name="A"/>
                       <Database Name="B"/>
                   </Databases>
               </Halloumi>

AnswerRe: Treeview - XML - HierarchicalDataTemplate Pin
RugbyLeague7-Nov-10 22:13
RugbyLeague7-Nov-10 22:13 
GeneralRe: Treeview - XML - HierarchicalDataTemplate Pin
Kevin Marois11-Nov-10 5:38
professionalKevin Marois11-Nov-10 5:38 
GeneralRe: Treeview - XML - HierarchicalDataTemplate Pin
RugbyLeague11-Nov-10 5:39
RugbyLeague11-Nov-10 5:39 
QuestionEye that follow cursor of the mouse Pin
VisualLive4-Nov-10 23:59
VisualLive4-Nov-10 23:59 
Question2 web sites 1 source of uploads Pin
Mycroft Holmes4-Nov-10 17:50
professionalMycroft Holmes4-Nov-10 17:50 
AnswerRe: 2 web sites 1 source of uploads Pin
AspDotNetDev4-Nov-10 18:05
protectorAspDotNetDev4-Nov-10 18:05 
GeneralRe: 2 web sites 1 source of uploads Pin
Mycroft Holmes4-Nov-10 20:38
professionalMycroft Holmes4-Nov-10 20:38 
GeneralRe: 2 web sites 1 source of uploads Pin
AspDotNetDev5-Nov-10 16:52
protectorAspDotNetDev5-Nov-10 16:52 
GeneralRe: 2 web sites 1 source of uploads Pin
Mycroft Holmes5-Nov-10 18:52
professionalMycroft Holmes5-Nov-10 18:52 
GeneralRe: 2 web sites 1 source of uploads Pin
AspDotNetDev5-Nov-10 19:05
protectorAspDotNetDev5-Nov-10 19:05 
AnswerRe: 2 web sites 1 source of uploads Pin
#realJSOP5-Nov-10 2:51
professional#realJSOP5-Nov-10 2:51 
GeneralRe: 2 web sites 1 source of uploads Pin
Mycroft Holmes5-Nov-10 3:22
professionalMycroft Holmes5-Nov-10 3:22 
QuestionValidation Pin
eddieangel3-Nov-10 12:13
eddieangel3-Nov-10 12:13 
Questiondefault button height? Pin
SledgeHammer013-Nov-10 10:02
SledgeHammer013-Nov-10 10:02 
AnswerRe: default button height? Pin
Nish Nishant3-Nov-10 11:30
sitebuilderNish Nishant3-Nov-10 11:30 
QuestionNeed information about GetStylesWithTargetType Pin
mtproc3-Nov-10 9:16
mtproc3-Nov-10 9:16 
AnswerRe: Need information about GetStylesWithTargetType Pin
mtproc4-Nov-10 5:50
mtproc4-Nov-10 5:50 

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.