Monday, May 4, 2015

INTQ -WPF


What are dependency properties? How to u used it (binding)

What are behavior?


Various Layout panel (Stack,Grid, Canvas, Dock, Wrap)

Attached Property

INPC

What is ICommand and how to set it up? how do you use DelegateCommand

Dynamic vs. static resources

How to specify Grid Column Width 26,26*, auto?

What is adorner

What are routed events ? type Direct, Bubbling, Turnelling

What are automationId?

How do u bind bool to visibility?

what is multibinding

How do u used ConverterParameter

Explain Unity vs. MEF. What is dependency injection

What is the problem of TextBox binding double? (string.EMpty to null ,TargetNullValue={x:Static sys:String.Empty} } )

Explian Visual vs. logical tree

Explain FrameworkElement, UIElement, Visual, DependencyObject, DispatcherObject,

Explain these triggers ( Property Trigger, Event Trigger, Data Trigger, Muti Trigger)

Explain ItemsControl, ContentPresenter,DataTemplate,ContentControl, ItemTemplate,

What is TypeConverter ?


Explain Template, ContentTemplate, ControlTempalte and DataTemplate? 
  e.g <ItemsControl Template=CT/P ItemTeplate=DT ItemsPanel=ItemPanelTemp/WrapP />


Explain the syntax <ContentControl binding to datasource and use DataTemplate to display
    <ContentControl Content={Binding Source={StaticRes} ContentTemplate={StaticRes DT1} />
    <DataTemplate x:key=DT1> ...</DT>

How do you restyle a button by replace its template?
  <style targetType=Button><setter prop=OvewrrideDefaultDefaultStyle v=true/>
    <setting Property="Template><setter.value><ControlTemplate>...

What is Theme and how do you use it in your UserControl?
<App.Res><ResDict source="1.xaml" 

Explain two way to use EventTrigger?
   <Button><i:Interaction.Triggers><t:EventTrigger EventNam=><i:InvokeCommandAction>
   <TextBox><TB.Triggers><EventTrigger><BeginStoryBoard>
<Win.Triggers><EventTrigger RoutedEvent=><StoryBoard>

Listing places where you can use DataTemplate?
  <style><style.triggers><datatemplate binding=><setter>
<ContentControl ContentTemplate />

How FrameworkElement.CommandBindings work?

How to use DataTrigger in Style?
<Style.Triggers><DataTrigger Bidng Value><DataTrigger.EnterActions><BeginStoryBoard>

What is TemplateBinding ?
   <ControlTemplate x;Key=CT><StackPanel><Textblock text={TemplateBinding Content}/>
      <Button Content=123 Template={StaticRes CT}/>

How do you use DataTemplate in a ListBox through style and use a datatrigger?

Describe MultiBinding vs. Multi trigger syntax?
<TB.Text><MB Converter><Binding/><Binding/>
<Style.Triggers><MDT><*.Conditions><Cond bind val/><Cond /><Setter ../>

Describe the structure usage of HeaderedItemsControl /
.Header
.Itemtemp
.template
 <ControlTemp><StackPan><ContentPresenter Content={Templatebinding Header} />
    <ItemsPresenter/>

Describe ItemsControl templating?
  <ITC><*.Template><ControlTemp><ItemPresenter/>
       <*.ItemsPanel><O|ItemPanelTemp>
       <*.ItemTemplate><DataTemp>
       <*.TemContainerStyle<Style>


No comments: