Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <Grid x:Class="XXX.View.ScreenPartPicture"
  2. DataContext="{Binding PictureViewModel, Source={StaticResource Locator}}">
  3. <Image Source="{Binding Image, IsAsync=True}" />
  4. </Grid>
  5.  
  6. public class PictureViewModel : ViewModelBase
  7. {
  8. private BitmapImage _image;
  9.  
  10. public BitmapImage Image
  11. {
  12. get { return _image; }
  13. set { Set(ref _image, value); }
  14. }
  15.  
  16. public void CleanUp()
  17. {
  18. Image = null;
  19. }
  20. }
Add Comment
Please, Sign In to add comment