Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public class PropertyDummyViewModel : NotifyPropertyChanged
  2. {
  3. [DisplayName(@"Double Value Default Editor")]
  4. [DefaultValue(70)]
  5. public double DoubleValueDefaultEditor { get; set; }
  6. }
  7.  
  8. <Grid ...
  9. x:Name="PropertyGrid">
  10. <xctk:PropertyGrid SelectedObject="{Binding Path=DataContext, ElementName=PropertyGrid}" />
  11. </Grid>
  12.  
  13. public void ShowDialog()
  14. {
  15. var model = new PropertyDummyViewModel();
  16. var view = new PropertyDummyView() { DataContext = model };
  17. var window = new Window() { Content = view };
  18. window.ShowDialog();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement