MahApps.Metro icon indicating copy to clipboard operation
MahApps.Metro copied to clipboard

IP TextBox

Open TripleNico opened this issue 4 years ago • 4 comments

It would be great to have an Control that can be used to set/change an IP Address object.

TripleNico avatar Aug 18 '20 12:08 TripleNico

@TripleNico IMO this cannot be shipped with a standard controls library, as this is a quite complex topic. There are several ways to display IP-Addresses and several types if them Wiki. I think you should design a UserControl for it and do some validation in your ViewModel

Happy coding Tim

timunie avatar Aug 19 '20 06:08 timunie

@timunie Thanks for your reply. I understand this is a difficult object to make. I use my own made which is ok, not perfect and was hoping that the MahApps could make something awesome like you guys always do ;-) If it's a rainy day maybe i will have it a try and upload a pull request. Thanks!

TripleNico avatar Aug 19 '20 06:08 TripleNico

@TripleNico You can try using a TextBox together with the TextBoxInputMaskBehavior from ControlzEx.

punker76 avatar Aug 19 '20 07:08 punker76

Since this issue is still open, i found a very good solution here: https://stackoverflow.com/a/35326967/4847008 it would be a great start. It is however not complete as you can still enter values above 255.

Maybe for a rainy day ;-)

TripleNico avatar Jul 09 '21 12:07 TripleNico