Here's the working code:
<Window x:Class="ComboBoxDGWPF.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ComboBox DataGrid WPF" Height="300" Width="616"
xmlns:staticData="clr-namespace:ComboBoxDGWPF"
xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit">
<window.Resources>
<staticData:StatusList x:Key="StatusList"/>
</window.Resources>
<Grid>
<my:DataGrid x:Name="dgData" AutoGenerateColumns="False">
...
...
So first off, what does "x:Class=" mean? And what about when we see "x:Name=" or "x:Key" or "xmlns:x" (the x is on the other side, what's going on here?)??
Second, what's the deal with the "my:" prescript? I can't seem to use it in my own solutions, and I can't figure out where to define it correctly. The full source can be downloaded from here if interested.

New Topic/Question
Reply




MultiQuote





|