FYI - samles for VSxxx (2010, 2008...).
Saturday, December 24, 2011
WPF: MVVM, Quickstart
Read and follow this GREAT article instructions...
http://www.codeproject.com/KB/WPF/WpfMvvmQuickStart.aspx
http://www.codeproject.com/KB/WPF/WpfMvvmQuickStart.aspx
Background reading that helps
- Data binding refresh - http://msdn.microsoft.com/en-us/magazine/cc163299.aspx
Useful resources
- WPF at CodePlex - http://wpf.codeplex.com/
Labels:
Best practices,
Design Patterns,
Guides,
MVVM,
Programming,
UI,
WPF
Sunday, December 11, 2011
WPF CodePlex toolkit, charting made easy...
Charting made easy: graph, pie, bars, points...
Free, opensource, maintained.
Free, opensource, maintained.
"The WPF Toolkit is a collection of WPF features and components that are being made available outside of the normal .NET Framework ship cycle."
Sources
Saturday, December 10, 2011
MSConfig - System Configuration UI
Very helpfull tool.
(*1) "Some of its functionality varies by Windows versions:
(*1) "Some of its functionality varies by Windows versions:
- In Windows 98 and Windows Me, it can configure advanced troubleshooting settings pertaining to these operating systems. It can also launch common system tools.
- In Windows 98, it can back up and restore startup files.
- In Windows Me, it has also been updated with three new tabs called "Static VxDs", "Environment" and "International". The Static VxDs tab allows users to enable or disable static virtual device drivers to be loaded at startup, the Environment tab allows users to enable or disable environment variables, and the International tab allows users to set international language keyboard layout settings that were formerly set via the real-mode MS-DOS configuration files. A "Cleanup" button on the "Startup" tab allows cleaning up invalid or deleted startup entries.
- In Windows Me and Windows XP versions, it can restore an individual file from the original Windows installation set.
- On Windows NT-based operating systems prior to Windows Vista, it can set various BOOT.INI switches.
- In Windows XP and Windows Vista, it can hide all operating system services for troubleshooting.
- In Windows Vista and later, the tool gained additional support for launching a variety of tools, such as system information, other configuration areas, such as Internet options, and the ability to enable/disable UAC. An update is available for Windows XP and Windows Server 2003 that adds the Tools tab.[1] It also allows configuring various switches for Windows Boot Manager and Boot Configuration Data."
Read more about it here - http://en.wikipedia.org/wiki/MSConfig
To activate it, WIN+R (or Start-->Run), then run 'msconfig'.
Result
Friday, December 9, 2011
WPF: FlowDocument control
Please be aware FlowDocument control in WPF, this can easy your life when needed.
Pictures that say it all
The diagram shows the objects most typically used with flow content.
Sources
Pictures that say it all
Sources
WPF XAML example: Binding FontSize to a Slider
Code snippet
Result
Code Snippet
- <TextBlock Text="Hi there." FontSize="{Binding ElementName=mySlider, Path=Value}" />
- <Slider Minimum="8" Maximum="32" x:Name="mySlider" Value="12" />
Result
WPF XAML example: Rich texted ToolTip with italic, color and more...
Example
In this example I'll demonstrate how to add a ToolTip to a TextBox.
The ToolTip should be colored and italic.
Code snippet
Result
Sources
In this example I'll demonstrate how to add a ToolTip to a TextBox.
The ToolTip should be colored and italic.
Code snippet
Code Snippet
- <TextBox x:Name="SampleText"
- TextWrapping="Wrap">
- <TextBox.ToolTip>
- <TextBlock>
- <Italic Foreground="Red">Instructions: </Italic> Type here to change the preview text.
- </TextBlock>
- </TextBox.ToolTip>
- The quick brown fox jumps over the lazy dog.
- </TextBox>
Result
Sources
Subscribe to:
Posts (Atom)

