Chapter NO.24 Short Notes
Chapter NO.24 Short Notes
1). Commands are a more robust and loosely coupled version of:
Events
5). For cut, copy and paste we can define and implement three classes implementing
icommand
</Windows.InputBindings>
This.InputBinding.Ass(New KeyBinding(ApplicationCommands.NotaCommand, new
KeyGesture(Key.F1)));
11). TextBox is an example of Control with builtin command binding that responds to
ctrl-z etc.
15).Media Commands:
ChannelDown ChannelUp
DecreaseVolume FastForward
IncreaseVolume MuteVolume
NextTrack Pause
Play PreviousTrack
Record Rewind
Select Stop
NextPage PreviousPage
Refresh Search
Zoom
1).WPF Window is a:
win32 window
11). Properties Dictionary is a simple Dictionary used to share things among different
windows.
18). Modal Dialog are such windows that are necessary to terminate explicitly in order to
interact with main window.
Mirza Adnan Hassan-DC130400143. Page No.5
19). In modeless Window we can work in parallel with main window just like using Tools
window in Photoshop.
20).Common Dialogs are actually provided by win32 and are part of Modal dialog.
21). Custom Dialogs are user-defined.
Media Player
Photo Gallery
8). Page does everything that windows does except OnClosed and OnClosing.
10). A page can interact with its Navigation Container by using NavigationService Class.
20).Navigation Window always has a journal but frame may depending on its
JournalOwnership = OwnsJournal, UseParenJournal, Automatic
21). When frame has journal it has back/frwd buttons but can set NavigationUiVisibility
= Hidden
3). Basic benefit of Silverlight is that it is cross-platform. But WPF browser based
applications just run on windows.
4). In Web Based applications the journal of Application and Web Browser are
integrated.
8). Data can be given to any web site using two method:
URL Parameter
Cookies
12). To publish a web based application use VS publishing wizard or mage tool in SDK
and copy files to webserver which must be configured to serve it.
Mirza Adnan Hassan-DC130400143. Page No.9
13). Users can install and run a web based application just by navigating to a URL.
17). Localization:
Localization means that your application can target more than one target languages or
target Grammers.
18). In Order to localize resources its necessary to make them embedded resources.
2). Logical Resources are arbitrary .net objects stored and named in an element
Resource Properties.
3). By using logical resources we can save change in one place and have different effects.
Like you can change brushes in one place and have different effects .
4). Logical Resources can further be categorized in “Static Resources” and “Dynamic
Resources”.
7). Static Resource markup extension walks the logical tree or even application level or
system Resources.
13). The key benefit of logical resources is that Use and definition becomes seprate.
14). System Resources are such resources which are shared by al application For
Example: System Color, System font, System Parameters.
1). Data Binding allows to declaratively bind two different properties in xaml.
3). Binding binds two propertiews together and keeps a communication channel open.
13). With Data Template User Interface are auto-applied to arbitrary .net object when it
is rendered.
16). Value Converter is a custom Logic that morphs Source value into Target Type.
“{Binding Path=Photo/}”
14). If you have multiple target elements connected to the same Custom View then their
IsSynchronizedWithCurrentItem = “True” by default and it is “false” in Default View.
15). Data Providers are kind of classes which made it simple for us to access certain kind
of data.
1). Object Data Provider provides us some facility which are useful for binding to objects
which are not designed for binding.
2). Asynchronous Data Binding means that the property that you want to access should
be done in background.
5). Binding to a method is useful for classes that are not designed for Data Binding.
6). Convert Method is used when bringing data from Source to Target
Mirza Adnan Hassan-DC130400143. Page No.15
7). Convert Back is used when bringing data from target to source.
10). One-Way Binding means the target is updated whenever the source changes.
11). Two-Way Binding means change to either the target or source updates the other
13). One-Time binding is like one-way except changes to the source are not reflected at
the target. The target retains a snapshot of the source at the time the Binding is
initiated.
15). Validation Rules are just like simple classes that are used to ensure the proper
working of the application.
16). Binding has ValidationRules Property that can be set to one or more validation rules
17). ExceptionValidationRule says that you can update a source if updating a source does
not cast an exception.
Mirza Adnan Hassan-DC130400143. Page No.16
3). Time slicing means giving time to a thread then we slice and run another thread then
come back and so on.
7). When you call t.join() it means you want to wait for t to finish.
10). Locks are a way to ensure that if you are in area of a code then no other thread will
be allowed to enter that area of thread. And are used when threads are sharing shared
data.