|
|
HOME |
|
|
|
|
|
WPF-Application |
Application Class |
**~ Application Class Scope
**~ |
-----
No App.xaml Used
------
**~Bare bone window using a Class
**~WpfBasicApp1.htm
**~ Using Application Class & [STAThread]
**~ Using Main() , APP.Run(), win.Show();
**~
WpfBaseApp1.htm
**~ Application app = new Application();
**~Window window = new Window();
**~ Start_Up st = new Start_Up();
**~WpfBaseApp2.htm
---- Instance of
Application Class----
**~Closing Nested with Base, Singleton app
**~ Bridging [STATread] Class and XAML
**~this.StartUpUri
**~WpfBaseApp3.htm
**~AppStartUp/Application class
-------------------------------------------
*~ App.Current.Shutdown();
**~Method1 Replacing InitializeComponent()
**~Hiding MainWindow, WrapPanel
**~ Show Nested window
*~WpfBaseApp4.htm
**~ Navigation with Page window
**~MainWindow Window1,
**~thisStatupUri=new Uri("page1.xaml");
**~thisStatupUri=new Uri("Window1.xaml");
**~WpfNavigation1.htm |
**~Create window and controls
with Code
**~ override OnMouseDown
**~MouseButtonEventsArgs
**~OnStartup (StartupEventArgs args)
**~Creating Custom
***~ Application class, MainWindow
**~ Adding Controls in New Window
**~ LinearGradientBrush (code-behind)
**~ Adding Event to Button with code
**~RoutedEventHandler(Click_Me);
**~WpfBaseApp5.htm |
*~Application Type
**~WpfAppType1.htm
**~ App_Startup, Application_Exit,
ShutdownMode , OnExplicitShutdown
**~ Startup v.s. StarupURI
**~ App.Current.Shutdown();
**~WpfAppType2.htm |
**~
*~
mmWpfWindowsActivate1.htm
**~StartupUri="MainWindow.xaml"
Activated="App_Activated"
Deactivated="App_Deactivated"
**~WpfAppType3.htm
*~ Window Owner,
**~Resources with App.xaml
*~WpfAppType4b.htm |
|
|
|
|
|
|
|
|
Common-Controls
( TOP ) |
*~wpf40_controls.htm |
*~
Button. Label,
**~Altering Properties , Event
***~myWpfMyApp3.htm
***~
Border_Properties.htm |
**Text Box, Label Data
Binding
**~ SetBinding, CleanBinding
**~mmWpfWindowClass1.htm |
*~Image control with code
*~mmWpfImage1.htm |
**~ StackPanel Control
**~ Code behind pane prevails
**~WpfControl3.htm |
**~ListBox, ListView, ComboBox
**~ThicknessConverter
**~ColumnDefinition
**~ ListBoxItem
**~Set GridColum with Code
**~ Grid.SetColumn(lb1, 3);
***~WpfListControl1.htm
*~Combobox
**~Combobox1.ItemSource
**~string[] Array as Data source
**~Combobox SelectionChanged
**~ SelectedItem.ToString();
**~SelectionChangedEventArgs
***~WpfCombobox1.htm
**~ Combobox, ListView
**~WpfDBCnn1
|
Menu Control (
TOP ) |
**~ TabContol and TabItem
**~Menu, MenuItem
**~ setting Focus on Items
**~WpfMenuIntro1.htm |
*~ Using Command Copy, Paste, Cut
**~ Stack Panel, Menu, Button,
**~Print from RichText-Box:
**~ Align Left, Right, left , Center
**~WpfCommand1.htm |
**~ Using StreamReader :
**~ Create Open Save text file
**~SaveFileDialog, OpenFileDialog
**~FlowDocumentReader
*~
WpfMenu1.htm |
Image
(
TOP ) |
**~ContextMenu, image with code
**~LayoutTransform, ScaleTransform
**~Flip Image: Vertical Horizontal
**~WpfImage1.htm |
*~Shape Eclispe, Frame Control
*~Load web-page in Frame
*~Calender control
*~ LinerGradientBrush Code
**~WpfMediaLinearGrad1.htm |
**~Cropping Image, EllipseGeometry
**~ Converting Window's Background with
***~ (LinearGradientBrush)
**~(App)Application.Current
**~ grid1.FindResource
**~Grid VerticalAlignment="Center"
**~WpfCropImage1.htm |
Grid
Control (
TOP ) |
*~Grid RowDefifinition
**~ Create Controls with code
**~ Rectangle control
**~WpfGrid1.htm
**~Grid.ColumnDefinitions
**~ RadiantGradient Brush
**~ GradientOrigin, GradientStop, Point
**~Rectangle
**~WpfRectangle1.htm
**~ Behavior of a Grid with Grid
**~ Canvas Control as a container
**~ for-each loop / LINQ /Array
**~WpfGrid2.htm |
|
*~Slider and Progress Bar
**~aligned with word count
**~WpfProgressBar1.htm |
|
Command (
TOP ) |
*~ Using Command Copy, Paste, Cut
**~ Stack Panel, Menu, Button,
**~Print from RichText-Box:
**~ Align Left, Right, left , Center
**~WpfCommand1.htm |
|
Brush (
TOP ) |
**~(Color)ColorConverter.ConvertFromString(str1);
System.Reflection;
**~Type colorType = typeof(Colors);
**Type Class, ListBox SelectedItem.ToString();
*~WpfResourcesApp2C.htm |
*~Style Named, Triggerd
**~<Windwo.Resources>
**~<EventSetter Event="Click" Handler=""
**~RoutedEventHandler(More_Click);
**~WpfAppStyles1.htm |
|
|
|
|
|
Resources (
TOP ) |
**~Resources_Scope |
|
*~ Window (XAML) & Resources Code
Behind
**~<Window.Resources>
**~SP1.Resources.Add(..)
**~Resources Types: Defined
**~Application.
**`Current.ShutdownMode
**~ this.Resources[:::]
= Brushes.Color,
**~FindResource("background");
*~ RoutedEventHandler,
**~Statusbar, Static & Dynamic Resources
**~ window Closing +=
**~WpfReseourceApp1.htm |
**~ ViewPort, <Window.Resources>
**~Without Style & Setter
**~WpfViewPort1.htm |
*~
Using Application XAML
**~ComponentModel.
CancelEventArgs
**~Choosing Static Windows Bacground
**~<Application.Resources>
**~<SolidColorBrush x:Key="keyname"
**~ShutdownMode="
OnExplicitShutdown"
**~Exit="Application_Exit"
**~
*~**~WpfAppType2.htm |
*~ Window Owner,
**~Resources with App.xaml
*~WpfAppType4b.htm |
*~ <Window.Resources>
**~ btn1.SetResourceReference
(BackgroundProperty, "dynBrush");
*~FindResource("background");
**~ListBox Changes Button's BackGround
*~WpfResourceApp2.htm
**~XML like data source
**~<StackPanel.Resources>
**~{StaticResource ResourceKey}
**~XmlDataProvider x:Key, XPath
**ListBox : .SelectedValue.
**~Binding ElementName=ColorListBox,
**~WpfResourcesApp2B.htm |
*~ Resource Dictionary,
Dictinoary1.xaml
*~ use of DependencyProoperty
*~WpfResourcesApp3.htm |
**~ Reflection, Frame, Assembly,
try-catch
**~Load Page1 in Frame in MainWindow
**~ Read command text in Botton
**~ShutdownMode=
**"OnLastWindowClose"
**~frame1.NavigationServiceNavigate(..)
**~ Button btn=(Button)e.OriginalSource;
**~Dictionary
ResourceDictionary
**~MergedDictionaries
**~WpfResourcesApp4.htm |
**~Grouping Styles,
CollectionView
**~<ListBox.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>, CollectionView
*~CollectionViewSource.
GetDefaultView
*~PropertyGroupDescription
*~GroupDescriptions.Add
**~WpfDatabind8 |
|
|
|
Windows Class members (
TOP ) |
|
*~
|
|
|
|
|
|
Data-Binding (
TOP ) |
|
*~ Create Simple Binding: target
to source
*~Binding VS. Event compared, Binding Mode
**~OneWay, Two Way and OneTime binding
**~WpfDatabind1.htm |
*~
**Text Box, Label Data
Binding
**~ SetBinding, ClearBinding ,
**~ BindingOperations, Binding with Code
**~mmWpfWindowClass1.htm |
*~Binding Data-Object to XAML
**~XML like data source , Brushes
Color
**~<StackPanel.Resources>
**~{StaticResource ResourceKey}
**~XmlDataProvider x:Key, XPath
**ListBox : .SelectedValue.
**~Binding ElementName=ColorListBox,
**~WpfResourcesApp2B.htm |
**~Simple Binding to an Object
(Class)
**~Object Binding
**~WpfDatabind2.htm
**~ XAML Only, Using DockPanel,
**~WpfDatabind3.htm |
**~ Object Binding , DataContext,
SetBinding,
**~ ContentProperty,
**~Combobox, SelectedItem.
**~Master detail with Combobox
**~WpfDataBind4.htm |
**~DataContext and ItemsSource
compared
**~Combobox, SelectedItem.
**~Master detail with Combobox
**~WpfDatabind5.htm |
**~UpdateSourceTrigger
**~ TwoWay Binding
**~WpfDatabind6.htm |
*~.GetBindingExpressio(TextBox.TextProperty)
**~BindingExpression, UpdateSourceTrigger
**~TwoWay Binding, Direction of Binding
**~WpfDatabind7.htm |
**~Grouping Styles,
CollectionView
**~<ListBox.GroupStyle>
<GroupStyle>
<GroupStyle.HeaderTemplate>
<DataTemplate>, CollectionView
*~CollectionViewSource
*~GetDefaultView
*~PropertyGroupDescription
*~GroupDescriptions.Add
**~WpfDatabind8 |
*~ Binding properties of two
controls;
**~ListBox Changes Button's BackGround
*~WpfResourceApp2.htm
**~XML like data source
**~XmlDataProvider x:Key, XPath
**ListBox : .SelectedValue.
**~Binding ElementName=ColorListBox,
**~WpfResourcesApp2B.htm |
----- Binding to Enumeration ----
**~ Enum.GetValues(typeof(key_enum)
**~ with foreach loop, Combobox
**~ Items.Add(key_enum.Manas);
**~WpfDatabindEnum1 |
|
|
|
|
|
|
|
|
|
Database (
TOP ) |
*~*~OleDB connection to Microsoft
Access DataBase for 10,000 wine listings
*~Data Row, foreach loop, DataSet ,
*~SQL Query with DISTINCT filter
**~ Combobox, ListView
**~WpfDBCnn1
|
*~
|
|
|
|
|
|
|
|
|
|
|
|
|
|