Downtown Programmer's Corner - Demos
This is a developers notepad for C# topics. Here the subchapters so far:
.
.
.
I am using Debug.Assert() like this:
if (Globals.bDebug_Assert4_HTMLContainer)
{
string s = "*** Debug.Assert() in HTMLContainer() constructor ***";
string s2 = "*** More text about the situation ... ***";
Debug.Assert(false, s, s2);
}
|
|
MSDN Writing a good Debug.Assert is telling some basic usage of the Debug.Assert() method. Nice article to have a first glimps on the topic . | Article |
For a GUI, in C# is no built in dialog box for fetching a string from the user. We can resort to Microsoft.VisualBasic.dll.
// The project must reference to Microsoft.VisualBasic.dll
string s = Microsoft.VisualBasic.Interaction.InputBox
( "Prompt"
, "Title"
, "DefaultResponse"
, 100 // iXPos
, 100 // iYPos
);
|
|
Codeproject InputBox in C# by hestol on 2005-April-21 shows how the dialog box from Microsoft.VisualBasic.dll can be used . | Article |
|
|
The C# Station tutorial Lesson 8: Class Inheritance shows e.g. how to call the constructor of the base class . | . |
.
About modularisation. Modularisation into projects: executables, windwos, dlls, services. Modularisation into files: classes, XAML, ressources, properties, ...
.
About WPF single instance application
...
About WPF XAML in XAML, dynamically loading controls, and the like
|
|
Stackoverflow WPF: how do I load user controls dynamically? ... | . |
|
|
MSDN Social Include XAML into XAML ... | . |
|
|
Stackoverflow Splitting WPF interface across multiple Xaml files ... | Recipe |
About the WPF Toolkit Extended with some useful controls, I learnd through the article WPF Calculator by Mahesh Chand September 12 2011 and Adding Reference to WPF Toolkit Extended Assembly by Mahesh Chand on Sep 03 2011 . The WPF Toolkit Extended seems to be integrated in NuGet
About abstract classes in C#, Ramesh Sivaperumal on Sep 07, 2011 posted a nice short article at www.c-sharpcorner.com/Blogs/6534/ .
.
Imprint : www.trilo.de/imprint.html