Click here to Skip to main content
15,867,704 members
Home / Discussions / WPF
   

WPF

 
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
subeditorPete 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

AnswerRe: What Does This Do? Pin
Abhinav S14-Mar-12 20:13
Abhinav S14-Mar-12 20:13 
QuestionWhat's the best control for ..... Pin
Sutton Mehaffey13-Mar-12 11:34
Sutton Mehaffey13-Mar-12 11:34 
AnswerRe: What's the best control for ..... Pin
Pete O'Hanlon13-Mar-12 11:41
subeditorPete O'Hanlon13-Mar-12 11:41 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 3:27
Sutton Mehaffey14-Mar-12 3:27 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 5:24
subeditorPete O'Hanlon14-Mar-12 5:24 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 6:58
Sutton Mehaffey14-Mar-12 6:58 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 7:02
subeditorPete O'Hanlon14-Mar-12 7:02 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 10:12
Sutton Mehaffey14-Mar-12 10:12 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 10:25
subeditorPete O'Hanlon14-Mar-12 10:25 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey14-Mar-12 10:44
Sutton Mehaffey14-Mar-12 10:44 
GeneralRe: What's the best control for ..... Pin
Pete O'Hanlon14-Mar-12 10:50
subeditorPete O'Hanlon14-Mar-12 10:50 
GeneralRe: What's the best control for ..... Pin
Sutton Mehaffey21-Mar-12 18:52
Sutton Mehaffey21-Mar-12 18:52 
QuestionFlip page animation.Again. Pin
demolexpert13-Mar-12 7:40
demolexpert13-Mar-12 7:40 
Questionunable to access parent property from a Trigger Pin
George Nistor13-Mar-12 7:15
George Nistor13-Mar-12 7:15 
QuestionBinding Fill property to value of node with particular id in XML Pin
Mahesha99912-Mar-12 21:32
Mahesha99912-Mar-12 21:32 
Questioninteraction between Models in PRISM V4 (WPF) Pin
radhwane12-Mar-12 13:09
radhwane12-Mar-12 13:09 
Questiondefining a grid row within a grid column, wpf, c# Pin
Sutton Mehaffey12-Mar-12 3:37
Sutton Mehaffey12-Mar-12 3:37 

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.