| S.No | Particular | .Net 3.0 | .Net 3.5 | .Net 4.0 | .Net 4.5 |
|---|---|---|---|---|---|
| 1 | Microsoft.Build.Tasks.Windows | Y | Y | Y | Y |
| 2 | Microsoft.Win32 | Y | Y | Y | Y |
| 3 | Microsoft.Windows.Themes | Y | Y | Y | Y |
| 4 | System.Collections.ObjectModel | Y | Y | Y | Y |
| 5 | System.Collections.Specialized | Y | Y | Y | Y |
| 6 | System.ComponentModel | Y | Y | Y | Y |
| 7 | System.Diagnostics | Y | Y | Y | Y |
| 8 | System.IO | Y | Y | Y | Y |
| 9 | System.IO.Package | Y | Y | Y | Y |
| 10 | System.Printing | Y | Y | Y | Y |
| 11 | System.Printing.IndexedProperty | Y | Y | Y | Y |
| 12 | System.Printing.Interop | Y | Y | Y | Y |
| 13 | System.Security.Permissions | Y | Y | Y | Y |
| 14 | System.Security.RightsManagement | Y | Y | Y | Y |
| 15 | System.Windows | Y | Y | Y | Y |
| 16 | System.Windows.Annotations | Y | Y | Y | Y |
| 17 | System.Windows.Annotations.Storage | Y | Y | Y | Y |
| 18 | System.Windows.Automation | Y | Y | Y | Y |
| 19 | System.Windows.Automation.Peers | Y | Y | Y | Y |
| 20 | System.Windows.Automation.Provider | Y | Y | Y | Y |
| 21 | System.Windows.Automation.Text | Y | Y | Y | Y |
| 22 | System.Windows.Controls | Y | Y | Y | Y |
| 23 | System.Windows.Controls.Primitives | Y | Y | Y | Y |
| 24 | System.Windows.Converters | Y | Y | Y | Y |
| 25 | System.Windows.Data | Y | Y | Y | Y |
| 26 | System.Windows.Documents | Y | Y | Y | Y |
| 27 | System.Windows.Documents.DocumentStructures | Y | Y | N | Y |
| 28 | System.Windows.Documents.Serialization | Y | Y | Y | Y |
| 29 | System.Windows.Forms.Integration | Y | Y | Y | Y |
| 30 | System.Windows.Ink | Y | Y | Y | Y |
| 31 | System.Windows.Input | Y | Y | Y | Y |
| 32 | System.Windows.Input.StylusPlugIns | Y | Y | Y | Y |
| 33 | System.Windows.Interop | Y | Y | Y | Y |
| 34 | System.Windows.Markup (shared) | Y | Y | Y | Y |
| 35 | System.Windows.Markup.Localizer | Y | Y | Y | Y |
| 36 | System.Windows.Markup.Primitives | Y | Y | Y | Y |
| 37 | System.Windows.Media | Y | Y | Y | Y |
| 38 | System.Windows.Media.Animation | Y | Y | Y | Y |
| 39 | System.Windows.Media.Converters | Y | Y | Y | Y |
| 40 | System.Windows.Media.Effects | Y | Y | Y | Y |
| 41 | System.Windows.Media.Imaging | Y | Y | Y | Y |
| 42 | System.Windows.Media.Media3D | Y | Y | Y | Y |
| 43 | System.Windows.Media.Media3D.Converters | Y | Y | Y | Y |
| 44 | System.Windows.Media.TextFormatting | Y | Y | Y | Y |
| 45 | System.Windows.Navigation | Y | Y | Y | Y |
| 46 | System.Windows.Resources | Y | Y | Y | Y |
| 47 | System.Windows.Shapes | Y | Y | Y | Y |
| 48 | System.Windows.Threading | Y | Y | Y | Y |
| 49 | System.Windows.Xps | Y | Y | Y | Y |
| 50 | System.Windows.Xps.Packaging | Y | Y | Y | Y |
| 51 | System.Windows.Xps.Serialization | Y | Y | Y | Y |
| 52 | UIAutomationClientsideProviders | Y | Y | Y | Y |
23 December 2013
Supporting Namespace in Dotnet 4.5
22 December 2013
Supporting Namespace for Sliverlight in Net
| S.No | Particular | Sliverlight |
|---|---|---|
| 1 | Microsoft.Win32 | Y |
| 2 | Microsoft.Windows.Themes | Y |
| 3 | System.Collections.ObjectModel | Y |
| 4 | System.Collections.Specialized | Y |
| 5 | System.ComponentModel | Y |
| 6 | System.Diagnostics | Y |
| 7 | System.IO | Y |
| 8 | System.Security.Permissions | Y |
| 9 | System.Windows | Y |
| 10 | System.Windows.Automation | Y |
| 11 | System.Windows.Automation.Peers | Y |
| 12 | System.Windows.Automation.Provider | Y |
| 13 | System.Windows.Automation.Text | Y |
| 14 | System.Windows.Controls | Y |
| 15 | System.Windows.Controls.Primitives | Y |
| 16 | System.Windows.Data | Y |
| 17 | System.Windows.Documents | Y |
| 18 | System.Windows.Documents.DocumentStructures | Y |
| 19 | System.Windows.Documents.Serialization | Y |
| 20 | System.Windows.Forms.Integration | Y |
| 21 | System.Windows.Ink | Y |
| 22 | System.Windows.Input | Y |
| 23 | System.Windows.Interop | Y |
| 24 | System.Windows.Markup (shared) | Y |
| 25 | System.Windows.Media | Y |
| 26 | System.Windows.Media.Animation | Y |
| 27 | System.Windows.Media.Effects | Y |
| 28 | System.Windows.Media.Imaging | Y |
| 29 | System.Windows.Media.Media3D | Y |
| 30 | System.Windows.Navigation | Y |
| 31 | System.Windows.Resources | Y |
| 32 | System.Windows.Shapes | Y |
| 33 | System.Windows.Threading | Y |
29 August 2012
List of WPF Controls based on .Net Framework version
Here, I give a control name and .Net framework in WPF.
| Control Name | .Net Framework |
|---|---|
| · AccessText | 3.0 ,3.5,4.0,4.5 |
| · Border Control | 3.0 ,3.5,4.0,4.5 |
| · Button Control | 3.0 ,3.5,4.0,4.5 |
| · BulletDecorator Control | 3.0 ,3.5,4.0,4.5 |
| · Canvas Control | 3.0 ,3.5,4.0,4.5 |
| · Calendar Control | 4.0,4.5 |
| · CheckBox Control | 3.0 ,3.5,4.0,4.5 |
| · ComboBox Control | 3.0 ,3.5,4.0,4.5 |
| · ContextMenu Control | 3.0 ,3.5,4.0,4.5 |
| · Datagrid Control | 4.0,4.5 |
| · DatePicker Control | 4.0,4.5 |
| · DockPanel Control | 3.0 ,3.5,4.0,4.5 |
| · DocumentViewer Control | 3.0 ,3.5,4.0,4.5 |
| · Expander Control | 3.0 ,3.5,4.0,4.5 |
| · FlowDocumentPageviewer Control | 3.0 ,3.5,4.0,4.5 |
| · FlowDocumentReader Control | 3.0 ,3.5,4.0,4.5 |
| · FlowDocumentScrollviewer Control | 3.0 ,3.5,4.0,4.5 |
| · Frame | 3.0 ,3.5,4.0,4.5 |
| · Grid Control | 3.0 ,3.5,4.0,4.5 |
| · GridView Control | 3.0 ,3.5,4.0,4.5 |
| · GridSplitter Control | 3.0 ,3.5,4.0,4.5 |
| · GroupBox Control | 3.0 ,3.5,4.0,4.5 |
| · Hyperlink | 3.0 ,3.5,4.0,4.5 |
| · Image Control | 3.0 ,3.5,4.0,4.5 |
| · InkCanvas Control | 3.0 ,3.5,4.0,4.5 |
| · InkPresenter Control | 3.0 ,3.5,4.0,4.5 |
| · Label | 3.0 ,3.5,4.0,4.5 |
| · ListView Control | 3.0 ,3.5,4.0,4.5 |
| · ListBox Control | 3.0 ,3.5,4.0,4.5 |
| · Menu | 3.0 ,3.5,4.0,4.5 |
| · MediaElement | 3.0 ,3.5,4.0,4.5 |
| · NavigationWindow | 3.0 ,3.5,4.0,4.5 |
| · OpenFiledialog Control | 3.0 ,3.5,4.0,4.5 |
| · PasswordBox Control | 3.0 ,3.5,4.0,4.5 |
| · Panel Control | 3.0 ,3.5,4.0,4.5 |
| · Page | 3.0 ,3.5,4.0,4.5 |
| · PrintDialog Control | 3.0 ,3.5,4.0,4.5 |
| · Popup | 3.0 ,3.5,4.0,4.5 |
| · ProgressBar | 3.0 ,3.5,4.0,4.5 |
| · RadioButton | 3.0 ,3.5,4.0,4.5 |
| · Repeated Control | 3.0 ,3.5,4.0,4.5 |
| · ResizeGrip Control | 3.0 ,3.5,4.0,4.5 |
| · RichTextBox Control | 3.0 ,3.5,4.0,4.5 |
| · SaveFileDialog Control | 3.0 ,3.5,4.0,4.5 |
| · Separator Control | 3.0 ,3.5,4.0,4.5 |
| · ScrollBar Control | 3.0 ,3.5,4.0,4.5 |
| · ScrollViewer Control | 3.0 ,3.5,4.0,4.5 |
| · Slider | 3.0 ,3.5,4.0,4.5 |
| · SoundPlayerAction | 3.0 ,3.5,4.0,4.5 |
| · StackPanel Control | 3.0 ,3.5,4.0,4.5 |
| · StrickNoteControl | 3.0 ,3.5,4.0,4.5 |
| · StatusBar | 3.0 ,3.5,4.0,4.5 |
| · TabControl | 3.0 ,3.5,4.0,4.5 |
| · TextBlock | 3.0 ,3.5,4.0,4.5 |
| · TextBox Control | 3.0 ,3.5,4.0,4.5 |
| · Thumb Control | 3.0 ,3.5,4.0,4.5 |
| · ToolTip | 3.0 ,3.5,4.0,4.5 |
| · ToolBar | 3.0 ,3.5,4.0,4.5 |
| · TreeviewControl | 3.0 ,3.5,4.0,4.5 |
| · Viewbox Control | 3.0 ,3.5,4.0,4.5 |
| · VirtualizingStackPanel Control | 3.0 ,3.5,4.0,4.5 |
| · Window Control | 3.0 ,3.5,4.0,4.5 |
| · WrapPanel Control | 3.0 ,3.5,4.0,4.5 |
27 August 2012
WPF Day-5
Introduction:
Last Four days, we talked about WPF Introduction, AccessText Control, Board and Canvas, Calendar, CheckBox, ComboBox and ContextMenu Control. Today we will discuss about Datagrid, DatePicker, DockPanel, and DocumentViewer Control.
· Datagrid Control:
Represents a control that displays data in a customizable grid.
It starts from .Net Framework 4.0.
Please refer this: http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid%28v=vs.100%29.aspx
· DatePicker Control:
Represents a control that allows the user to select a date.
It starts from .Net Framework 4.0.
Please refer this: http://msdn.microsoft.com/en-us/library/system.windows.controls.datepicker.aspx
· DockPanel Control :
Defines an area where you can arrange child elements either horizontally or vertically, relative to each other.
Create ContextMenu in XAML:
<DockPanel Background="AliceBlue">
<TextBox Name="textBox1" TextWrapping="Wrap" Margin="10, 10, 5, 5" Grid.Row="7" Height="36" Width="202">The quick brown fox jumps over the lazy dog.
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="_USA" />
<Separator />
<MenuItem Header="_INDIA" />
<Separator />
<MenuItem Header="CHINA"/>
<Separator />
<MenuItem Header="SOUTH AFRICA" />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
</DockPanel>
Create ContextMenu in Coding:
CheckBoxchkYes;
CheckBoxchkNo;
DockPaneldockPanel;
private voiddockPanelControl()
{
dockPanel = new DockPanel();
dockPanel.Background = Brushes.LightSlateGray;
dockPanel.Margin = new Thickness(10, 15, 5, 10);
dockPanel.Height = 100;
dockPanel.Width= 200;
dockControl(dockPanel);
this.Content = dockPanel;
}
privatevoid dockControl(DockPaneldpnl)
{
chkYes = newCheckBox();
chkYes.ClickMode = ClickMode.Press;
chkYes.Content = "Yes";
chkYes.IsChecked = true;
chkYes.Margin = new Thickness(10, 10, 25, 20);
chkNo = newCheckBox();
chkNo.ClickMode = ClickMode.Press;
chkNo.Content = "No";
chkNo.Margin = new Thickness(10, 10, 25, 20);
dpnl.Children.Add(chkYes);
dpnl.Children.Add(chkNo);
}
private voidWindow_Loaded(object sender, RoutedEventArgs e)
{
dockPanelControl();
}
· DocumentViewer Control:
Document viewing control that can host paginated FixedDocumentcontent such as an XpsDocument. Simple says that user can view all documents like (PDF, text. Image files)
FixedDocument:
It is a fixed format document with read Access for user.
Provides a Packagethat holds the content of an XPS document.
Package:
Container that can store multiple data objects.
Create ContextMenu in XAML:
<DocumentViewer Margin="20,12,12,26" Name="documentViewer1"Background="Azure" />
Create ContextMenu in Coding:
DocumentViewerdocViewer;
privatevoid documentViewerControl()
{
docViewer = new DocumentViewer();
docViewer.Background = Brushes.LightSlateGray;
this.Content = docViewer;
}
privatevoid Window_Loaded(objectsender, RoutedEventArgs e)
{
documentViewerControl();
}
Conclusion:
I hope, you to get some ideas about Datagrid, DatePicker, DockPanel, and DocumentViewer Control in WPF. Thanks for reading this article. We will talk about other controls in next Chapters.
26 August 2012
WPF Day-4
Introduction:
Last Three days, we talked about WPF Introduction, AccessText Control and Board . Today we will discuss about Canvas, Calendar, CheckBox, ComboBox and ContextMenu Control.
· Canvas Control:
It is a Layout panel.
A Canvas panel is used to position child elements by using coordinates that are relative to the canvas area.
Create Canvas in XAML:
<Canvas Background="BurlyWood" Margin="88,0,120,99" Height="66"VerticalAlignment="Bottom">
<Button Name="btn_can" Margin="15,18,70,70" Height="26" Width="40" Canvas.Left="-1" Canvas.Top="17">Cancel</Button>
<Button Height="23" Margin="15,50,75,50" Name="btn_Ok" VerticalAlignment="Bottom" Click="btn_OK_Click" Width="39.893" Canvas.Left="-1" Canvas.Top="-44">OK</Button>
</Canvas>
I just declare Buttons with in Canvas Tag.
Create Canvas in Coding:
Canvascans;
privatevoid canvas()
{
cans = new Canvas();
cans.Width = 150;
cans.Height = 150;
cans.Background = Brushes.Lavender;
canvascontrols(cans);
this.Content = cans;
}
private voidcanvascontrols(Canvas cntCon)
{
btn_Exit = new Button();
btn_Exit.Background = Brushes.Ivory;
btn_Exit.Content = "Exit";
btn_Exit.Name = "ButtonExit";
btn_Exit.Height = 30;
btn_Exit.Width = 50;
btn_Exit.Margin = new Thickness(10, 10, 20, 50);
btn_Exit.Click += new RoutedEventHandler(btn_Exit_Click);
cntCon.Children.Add(btn_Exit);
}
private void Window_Loaded(objectsender, RoutedEventArgs e)
{
canvas();
}
Here, I created Method (canvascontrols) for adding a Button into Canvas.
· Calendar Control:
Enable a user to select a date by using a visual calendar display.
It starts from .Net Framework 4.5.
Please refer this:http://msdn.microsoft.com/en-us/library/system.windows.controls.calendar.aspx
· CheckBox Control:
User can select and clear.
Create Canvas in XAML:
<CheckBox Content="Yes" Background="Khaki" IsChecked="True" ></CheckBox>
Create Canvas in Coding:
CheckBox chkYes;
CheckBox chkNo;
private void canvas()
{
cans = newCanvas();
cans.Width = 150;
cans.Height = 150;
cans.Background = Brushes.Lavender;
checkYesNoControls(cans);
this.Content = cans;
}
private void checkYesNoControls(CanvascntCon)
{
chkYes = new CheckBox();
chkYes.ClickMode = ClickMode.Press;
chkYes.Content = "Yes";
chkYes.Background = Brushes.Khaki;
chkYes.IsChecked = true;
chkYes.Margin = new Thickness(10, 10, 25, 20);
cntCon.Children.Add(chkYes);
chkNo = newCheckBox();
chkNo.ClickMode = ClickMode.Press;
chkNo.Content = "No";
chkNo.Background = Brushes.LightGreen;
chkNo.Margin = new Thickness(10, 40, 25, 20);
cntCon.Children.Add(chkNo);
}
private voidWindow_Loaded(object sender, RoutedEventArgs e)
{
canvas();
}
· ComboBox Control:
Selection control with a drop-down list that can be shown or hidden by clicking the arrow on the control.
Create ComboBox in XAML:
<ComboBox Height="23" Margin="60,76,98,0" Name="comboBox1" VerticalAlignment="Top">
<ComboBoxItem>IBM</ComboBoxItem>
<ComboBoxItem>GANTEC</ComboBoxItem>
<ComboBoxItem>INTEL</ComboBoxItem>
<ComboBoxItem>HP</ComboBoxItem>
</ComboBox>
Create ComboBox in Coding:
ComboBoxcmbCompany;
private void comboBoxControls()
{
cmbCompany = new ComboBox();
cmbCompany.Width = 100;
cmbCompany.Height = 20;
cmbCompany.Margin = new Thickness(10, 5, 10, 20);
cmbCompany.Items.Add("IBM");
cmbCompany.Items.Add("SATHYAM");
cmbCompany.Items.Add("KRISH");
cmbCompany.Items.Add("GANTEC");
this.Content = cmbCompany;
}
private voidWindow_Loaded(object sender, RoutedEventArgs e)
{
comboBoxControls ();
}
User can’t change the items in the ComboBox.It likes DropdownStyle in Windows Form
· ContextMenu Control:
Represents a pop-up menu.
Control to expose functionality that is specific to the context of the control.
The following error message will show when user drag and drop a Context Menu in the window.
Create ContextMenu in XAML:
<TextBox Name="textBox1" TextWrapping="Wrap" Margin="10, 10, 5, 5" Grid.Row="7"> <TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="_USA" /><Separator />
<MenuItem Header="_INDIA" /><Separator />
<MenuItem Header="CHINA"/><Separator />
<MenuItem Header="SOUTH AFRICA" /><Separator />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
Create ContextMenu in Coding:
TextBox txtBox;
ContextMenucntMenu;
private voidcontentMenus(TextBox txtBox)
{
cntMenu = new ContextMenu();
cntMenu.Items.Add("INDIA");
cntMenu.Items.Add("USA");
cntMenu.Items.Add("CHINA");
cntMenu.Items.Add("SOUTH AFRICA");
cntMenu.Items.Add("JAPAN");
txtBox.ContextMenu = cntMenu;
}
privatevoid TextBoxControl()
{
txtBox = new TextBox();
txtBox.Margin = new Thickness(11, 10, 10, 10);
txtBox.Width = 100;
txtBox.Height = 25;
contentMenus(txtBox);
this.Content = txtBox;
}
private voidWindow_Loaded(object sender, RoutedEventArgs e)
{
TextBoxControl();
}
Conclusion:
I hope, you get some ideas about Button and BulletDecorator Control in WPF. Thanks for reading this article. We will talk about other controls in next Chapters.
Subscribe to:
Posts (Atom)
