TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

<< Back to WPF

WPF Controls

Use WPF controls, selecting from the available types in the System.Windows.Controls namespace.
Controls, WPF. This technology, Windows Presentation Foundation, is a newer approach to designing Windows programs. It has more graphical effects available than classic Windows Forms.
A list. As with Windows Forms, we add controls to a program in the Visual Studio designer. These are represented as XAML in the application.

Next: Here are some of the most important and commonly-used WPF controls. We often compose controls, using them together with others.

BorderButtonCalendarCanvasCheckBoxComboBoxDataGridDatePickerDockPanelDoubleAnimationEllipseExpanderGridSplitterGridGroupBoxImageLabelListViewMenuPasswordBoxProgressBarRadioButtonRectangleRenderTransformScrollViewerSliderStackPanelTabControlTextBlockTextBoxToolBarTreeViewViewboxWebBrowserWindowsFormsHostWrapPanel
Events, properties. We use events to handle user interaction with WPF programs. And in properties, we adjust parts of controls in response to things like mouse clicks, or key presses.HorizontalAlignmentIsEnabledKeyDownNameToolTip
Expression-based design. Suppose we wish to enable a Button when a situation occurs—like when a valid name is entered. We can set IsEnabled to an expression that returns true or false.

And: This means we can ensure the Button is always enabled when the condition is true, and false if not.

So: The code is clearer, and easier to maintain. We can avoid tracking complicated state this way.

A summary. WPF seems to result in a more professional, polished user interface than Windows Forms does. But in many respects, the technologies are interchangeable.
© TheDeveloperBlog.com
Home
The Dev Codes

Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf