Click here to Skip to main content
15,911,531 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Canvas Zooming at Center Pin
Abhinav S8-Nov-10 7:38
Abhinav S8-Nov-10 7:38 
QuestionIn-browser access to a fingerprint scanner Pin
Ray Cassick6-Nov-10 21:56
Ray Cassick6-Nov-10 21:56 
AnswerRe: In-browser access to a fingerprint scanner Pin
Abhinav S8-Nov-10 1:19
Abhinav S8-Nov-10 1:19 
AnswerRe: In-browser access to a fingerprint scanner Pin
Pete O'Hanlon8-Nov-10 1:51
mvePete O'Hanlon8-Nov-10 1:51 
GeneralRe: In-browser access to a fingerprint scanner Pin
Ray Cassick8-Nov-10 7:22
Ray Cassick8-Nov-10 7:22 
GeneralRe: In-browser access to a fingerprint scanner Pin
Pete O'Hanlon8-Nov-10 9:11
mvePete O'Hanlon8-Nov-10 9:11 
GeneralRe: In-browser access to a fingerprint scanner Pin
Ray Cassick8-Nov-10 14:45
Ray Cassick8-Nov-10 14:45 
QuestionHow to get all names of columns of all tables from model, in silverlight Pin
jadughar6-Nov-10 7:53
jadughar6-Nov-10 7:53 
AnswerRe: How to get all names of columns of all tables from model, in silverlight Pin
Abhinav S6-Nov-10 8:10
Abhinav S6-Nov-10 8:10 
GeneralRe: How to get all names of columns of all tables from model, in silverlight Pin
jadughar6-Nov-10 8:26
jadughar6-Nov-10 8:26 
AnswerRe: How to get all names of columns of all tables from model, in silverlight Pin
Abhinav S6-Nov-10 16:57
Abhinav S6-Nov-10 16:57 
GeneralRe: How to get all names of columns of all tables from model, in silverlight Pin
jadughar7-Nov-10 9:13
jadughar7-Nov-10 9:13 
GeneralRe: How to get all names of columns of all tables from model, in silverlight Pin
jadughar7-Nov-10 22:11
jadughar7-Nov-10 22:11 
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 

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.