user controls - WPF: CustomControls vs UserControls -


WPF में, CustomControls और UserControls के बीच अंतर क्या है?

उपयोगकर्ता नियंत्रण (संरचना):

  • स्टाइल / टॉम्प्लेट नहीं किया जा सकता
  • UserControl से निष्कर्ष
  • कई मौजूदा नियंत्रणों को पुन: प्रयोज्य "समूह" में लेता है
  • एक एक्सएएमएल और फ़ाइल के पीछे एक कोड <

कस्टम नियंत्रण (मौजूदा नियंत्रण का विस्तार)

  • अतिरिक्त सुविधाओं के साथ एक मौजूदा नियंत्रण बढ़ाता है
  • एक कोड फ़ाइल और एक
  • स्टाइल / टेम्पलेट किया जा सकता है
  • एक नियंत्रण पुस्तकालय बनाने का सर्वोत्तम तरीका

स्रोत :


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -