Click here to Skip to main content
15,899,937 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: slverlight 3.0 Pin
Pete O'Hanlon19-Mar-12 2:00
mvePete O'Hanlon19-Mar-12 2:00 
GeneralRe: slverlight 3.0 Pin
manivinof519-Mar-12 2:05
manivinof519-Mar-12 2:05 
AnswerRe: slverlight 3.0 Pin
Abhinav S21-Mar-12 4:16
Abhinav S21-Mar-12 4:16 
QuestionComponenetOne Flexgrid for WPF as user control Pin
Greeshma M J19-Mar-12 1:20
Greeshma M J19-Mar-12 1:20 
QuestionJust a stray thought Pin
Mycroft Holmes18-Mar-12 15:22
professionalMycroft Holmes18-Mar-12 15:22 
AnswerRe: Just a stray thought Pin
Paul Daniel Ruston19-Mar-12 9:32
Paul Daniel Ruston19-Mar-12 9:32 
GeneralRe: Just a stray thought Pin
Mycroft Holmes19-Mar-12 12:53
professionalMycroft Holmes19-Mar-12 12:53 
QuestionRestore object's properties using XAMLReader Pin
Tryxo17-Mar-12 18:41
Tryxo17-Mar-12 18:41 
QuestionHow to Fill a shape with vertical and/or horizontal lines Pin
Tryxo17-Mar-12 17:14
Tryxo17-Mar-12 17:14 
AnswerRe: How to Fill a shape with vertical and/or horizontal lines Pin
Abhinav S18-Mar-12 20:11
Abhinav S18-Mar-12 20:11 
GeneralRe: How to Fill a shape with vertical and/or horizontal lines Pin
Tryxo23-Mar-12 10:58
Tryxo23-Mar-12 10:58 
QuestionWPF ViewModel - Saving user Preferences Pin
Kevin Marois17-Mar-12 11:49
professionalKevin Marois17-Mar-12 11:49 
AnswerRe: WPF ViewModel - Saving user Preferences Pin
Mycroft Holmes17-Mar-12 15:01
professionalMycroft Holmes17-Mar-12 15:01 
QuestionHow To Create This Look Pin
Kevin Marois16-Mar-12 13:56
professionalKevin Marois16-Mar-12 13:56 
AnswerRe: How To Create This Look Pin
Mycroft Holmes16-Mar-12 14:12
professionalMycroft Holmes16-Mar-12 14:12 
AnswerRe: How To Create This Look Pin
Richard MacCutchan16-Mar-12 22:35
mveRichard MacCutchan16-Mar-12 22:35 
QuestionDataGrid Dynamic Data Pin
michaelgr116-Mar-12 5:03
michaelgr116-Mar-12 5:03 
QuestionTileLayout control Pin
Nitin20TechBLR15-Mar-12 18:51
Nitin20TechBLR15-Mar-12 18:51 
QuestionUsing C# dependency property in XAML Triggers Pin
Prasoon Chaudhary15-Mar-12 0:30
Prasoon Chaudhary15-Mar-12 0:30 
AnswerRe: Using C# dependency property in XAML Triggers Pin
George Nistor15-Mar-12 7:00
George Nistor15-Mar-12 7:00 
AnswerRe: Using C# dependency property in XAML Triggers Pin
Pete O'Hanlon15-Mar-12 7:35
mvePete O'Hanlon15-Mar-12 7:35 
GeneralRe: Using C# dependency property in XAML Triggers Pin
Prasoon Chaudhary15-Mar-12 23:38
Prasoon Chaudhary15-Mar-12 23:38 
AnswerRe: Using C# dependency property in XAML Triggers Pin
George Nistor15-Mar-12 23:29
George Nistor15-Mar-12 23:29 
GeneralRe: Using C# dependency property in XAML Triggers Pin
Prasoon Chaudhary15-Mar-12 23:40
Prasoon Chaudhary15-Mar-12 23:40 
QuestionWhat Does This Do? Pin
Kevin Marois13-Mar-12 12:53
professionalKevin Marois13-Mar-12 12:53 
I'm reading this[^].

If you scroll down a bit you will see this:

 <Canvas>    
   <Canvas.Resources>
      <ControlTemplate x:Key="DesignerItemTemplate" TargetType="ContentControl">
         <ContentPresenter Content="{TemplateBinding ContentControl.Content}"/>
      </ControlTemplate>
   </Canvas.Resources>  
   <ContentControl Name="DesignerItem"
                   Width="100"
                   Height="100"
                   Canvas.Top="100"
                   Canvas.Left="100"
                   Template="{StaticResource DesignerItemTemplate}">
      <Ellipse Fill="Blue"/>
   </ContentControl>
</Canvas>


What does this do?

<Canvas.Resources>
    <ControlTemplate x:Key="DesignerItemTemplate" TargetType="ContentControl">
        <ContentPresenter Content="{TemplateBinding ContentControl.Content}"/>
    </ControlTemplate>
</Canvas.Resources>


It looks like its biding the ContentPresenter to the controls content. Isn't that the default behavior anyway?
Everything makes sense in someone's mind

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.