Guest User

Untitled

a guest
Jun 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <ComboBox
  2. SelectedItem="{Binding BlendMode, Mode=TwoWay}"
  3. ItemsSource="{Binding Source={StaticResource BlendMode}}">
  4. </ComboBox>
  5.  
  6. private BlendMode _blendMode;
  7. public BlendMode BlendMode
  8. {
  9. get => _blendMode;
  10. set => SetAndNotify(ref _blendMode, value);
  11. }
  12.  
  13. <ObjectDataProvider x:Key="BlendMode" MethodName="GetNames" ObjectType="{x:Type System:Enum}">
  14. <ObjectDataProvider.MethodParameters>
  15. <x:Type TypeName="ViewModels:BlendMode"/>
  16. </ObjectDataProvider.MethodParameters>
  17. </ObjectDataProvider>
  18.  
  19. <ListBox
  20. ItemsSource="{Binding Layers}"
  21. SelectionMode="Single"
  22. dd:DragDrop.IsDragSource="True"
  23. dd:DragDrop.IsDropTarget="True">
  24. <ListBox.ItemTemplate>
  25. <DataTemplate>
  26. <CMiX:ChannelLayer/>
  27. </DataTemplate>
  28. </ListBox.ItemTemplate>
  29.  
  30. public ObservableCollection<Layer> Layers { get; }
Add Comment
Please, Sign In to add comment