Hi,
I'm interested in recreating an existing UI using the RadDock with a splitter and RadPane objects. I have nearly everything I need through existing properties but I could use some advice on how to achieve a particular effect. (see Desired.png - attached)
In a given RadPane, I set the Contents during the ElementLoading event. But, the element which becomes the RadPane's child is responsible in our app for creating the particular tool buttons we want to show within the Title/Header.
For the Recent Files pane I show, the folder and two filter buttons are created by the same UserControl responsible for the list.
I'd like to create something like this for my TitleTemplate -- this does not work -- clearly the binding needs work.
The first ContentPresenter should be for the Title and I'll fixup the formatting, font, etc. later to match my requirements.
The second ContentPresenter is where I'd like to have the object which is within the RadPane to supply a FrameworkElement such as a StackPanel or Toolbar or ToolbarTray etc.. based onthe particular pane.
Can anyone suggest a way for me to bind to a property on that object within the TitleTemplate? Here, I invented one called "ToolStack" which my usercontrol list object implements -- but it's not bound to of course...
I'm interested in recreating an existing UI using the RadDock with a splitter and RadPane objects. I have nearly everything I need through existing properties but I could use some advice on how to achieve a particular effect. (see Desired.png - attached)
In a given RadPane, I set the Contents during the ElementLoading event. But, the element which becomes the RadPane's child is responsible in our app for creating the particular tool buttons we want to show within the Title/Header.
For the Recent Files pane I show, the folder and two filter buttons are created by the same UserControl responsible for the list.
I'd like to create something like this for my TitleTemplate -- this does not work -- clearly the binding needs work.
<
DataTemplate
x:Key
=
"TitleTemplate"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
ContentPresenter
Content
=
"{Binding}"
Name
=
"titleTemplate"
Margin
=
"0,0,0,0"
/>
<
ContentPresenter
Content="{Binding
Path
=
SelectedPane
.Content.ToolStack,
RelativeSource={RelativeSource
AncestorType
=
FrameworkElement
}}"
Name
=
"toolStackHolder"
Margin
=
"0"
/>
</
Grid
>
</
DataTemplate
>
<
telerik:RadPaneGroup
>
<
telerik:RadPane
telerik:RadDocking.SerializationTag
=
"RecentFilesPane"
ContextMenuTemplate
=
"{x:Null}"
TitleTemplate
=
"{StaticResource ResourceKey=TitleTemplate}"
Header
=
"Recent Files"
CanUserPin
=
"True"
>
<!-- CONTENT FILLED DYNAMICALLY -->
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
The first ContentPresenter should be for the Title and I'll fixup the formatting, font, etc. later to match my requirements.
The second ContentPresenter is where I'd like to have the object which is within the RadPane to supply a FrameworkElement such as a StackPanel or Toolbar or ToolbarTray etc.. based onthe particular pane.
Can anyone suggest a way for me to bind to a property on that object within the TitleTemplate? Here, I invented one called "ToolStack" which my usercontrol list object implements -- but it's not bound to of course...
John