Skip to content

remove Image in ImageSelector #835

Answered by mhhg
md131376st asked this question in Q&A
Discussion options

You must be logged in to vote

@ghost1372 I just made DependencyProperty registeration of Uri, HasValue, PreviewBrush as normal, instead of being read only on the ImageSelector class, and created a pull request #836.

@md131376st I updated the HandyControl demo on a specific demo branch.
You can add an external element to control ImageSelector as follows:

  1. Add a remove Button with a Name attribute and also assign a Name to the ImageSelector.
  2. Add an event handler method for OnClick event of the Button on the C# class
  3. Set Uri, HasValue, PreviewBrush of the specified ImageSelector.
2021-05-22-02-17-03.mp4

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ghost1372
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants