Skip to content

Instantly share code, notes, and snippets.

@mathieubrun
Created February 23, 2013 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathieubrun/5021122 to your computer and use it in GitHub Desktop.
Save mathieubrun/5021122 to your computer and use it in GitHub Desktop.
<DataTemplate DataType="{x:Type Elements:DateElement}">
<DockPanel>
<TextBlock Text="{Binding Name}" DockPanel.Dock="Left" Width="80"/>
<DatePicker SelectedDate="{Binding Value}" />
</DockPanel>
</DataTemplate>
<DataTemplate DataType="{x:Type Elements:StringElement}">
<DockPanel>
<TextBlock Text="{Binding Name}" DockPanel.Dock="Left" Width="80" />
<TextBox Text="{Binding Value}" />
</DockPanel>
</DataTemplate>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment