Attached Property – select all text

27 בOctober 2015

in TextBox control double clicking on Text should select all inner text? Well isn't? not for case the text itself is a complex one, like real number like : 23.34 In that case , it will select but only the part you on it, at least by default What we need now is activate the TextBoxBase.Selectall function but using WPF tools and supporting MVVM architecture. The simple solution will be Attached Property or Behavior , I think that Behavior should kept for complex problems when we do need a reference per control instance , and here a simple static property should be enough. There for...
אין תגובות

WPF Custom Controls – toggle buttons with Group

4 בOctober 2015

The idea is quite simple , create header of ListBox who combine two types of contents, to be acting like an tab control , meaning filtering the Listbox content, and So , for implementation we can considerate a few options, Tabcontrol , RadioButtons , Toggle Button etc.. Just for the fun I have made it with toggles, the truth is I where must use them because of look an fill demands and styling but this is not the point, The point is what between RadioButton control and ToggleButton control, the main issue is the group who might surround the radio buttons and auto switch...
אין תגובות