Telerik Forums
UI for WPF Forum
1 answer
252 views
How do I inject a RadSplitContainer to my main docking manager (telerik:RadDocking). Currently I'm doing the following.

I am using the ninject DI framework.

I have the following code in my main main window.

<telerik:RadDocking x:Name="mainDockingManager" Grid.Row="1" Grid.Column="0">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer><telerik:RadPaneGroup>
<telerik:RadDocumentPane>Stuff here</telerik:RadDocumentPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost><br></telerik:RadDocking>

In the constructor I initialise the DI framework and inject the ILegend usercontrol into the docking manager.

 
InitializeComponent();
kernel =
new StandardKernel(new AppModule());
this.mainDockingManager.Items.Add(kernel.Get<ILegend>());


The ILegend UserControl is just a wrapper around a <telerik:RadSplitContainer> i.e.:

<UserControl x:Class="Whiteboard.Plugin.UI.UnclassLegend"<br>
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br>
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <br>
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"<br>
             xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"<br>
             mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"><br>
    <telerik:RadSplitContainer telerik:DockingPanel.InitialSize="170,500" InitialPosition="DockedLeft">


This method doesn't seem to be working, is it possible to inject different implementations of a RadSplitContainer containing different content?
Miroslav Nedyalkov
Telerik team
 answered on 29 May 2012
1 answer
210 views
Hi,

i'm using the Listbox Drag & Drop example as base of my ListBox. I use also a ItemTEmplate + DataTemplate. But how do i add my own TooltipTemplate to the ListboxItems?

i found an example for a tooltip template:

<Style x:Key="{x:Type ToolTip}" TargetType="ToolTip">
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="HasDropShadow" Value="True"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="ToolTip">
                        <Border CornerRadius="7" HorizontalAlignment="Center" VerticalAlignment="Top" Padding="5" BorderThickness="3,3,3,3">
                            <Border.Background>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#CF181818" Offset="0"/>
                                    <GradientStop Color="#BE1C1C1C" Offset="1"/>
                                </LinearGradientBrush>
                            </Border.Background>
                            <Border.BorderBrush>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="#80FFFFFF" Offset="0"/>
                                    <GradientStop Color="#7FFFFFFF" Offset="1"/>
                                    <GradientStop Color="#FFFFF18D" Offset="0.344"/>
                                    <GradientStop Color="#FFFFF4AB" Offset="0.647"/>
                                </LinearGradientBrush>
                            </Border.BorderBrush>
                            <StackPanel>
                                <TextBlock FontFamily="Tahoma" FontSize="11" Text="{Binding Name}" Foreground="#FFFFFFFF" />
                            </StackPanel>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

But how bin this Template to my DataItems?

thanks
regards
rene
George
Telerik team
 answered on 29 May 2012
2 answers
109 views
Hi
when i put Rad Window in a Maximized state, I can't well be closed or minimized
because the mouse pointer must be placed in the upper button 


Mojtaba Madadkhani
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
81 views
At present I am using Telerik assemblies 2012.1.507.40 but my teammate when logged into the product download page can only see 2012.1.326 (Mar 26, 2012).

What would be the best course of action to download the full msi for 2012.1.507.40?

Thank you,
Tina Stancheva
Telerik team
 answered on 29 May 2012
6 answers
170 views
First :
I'm working in a domain using well known objects ... let say, water distribution.
The objects are, most of the time, always the same.
  • Distribution pipes
  • Pumps
  • Captors
  • Motors
  • etc.

Most of the time, the first things to do is to layout all the objects and make connections between them. For instance, layout the water distribution of a city. It seams that I can do this in an easy way with the new (beta) diagram feature, using WPF and MVVM.

It seams really nice by the way!

Second :
Let's complicate the thing a little bit.
I would like my application to be modular. I discovered prims/unity. Searching your blogs/forums, it seams feasible to use rad controls in a prism environment.

I found some ways to use RadDocking with prism and also some examples on how to use the ribbon with prism. 
But founding no "Here is the way to do" solution, I known that it won't be as easy as the diagram part, but that's OK for me.

Third :
Here is the funny part.
Let's say there is an existing diagram for a city.
All the layout is done and I can have basic information when I'm selecting an element (the kind, a part number, the color, the placement, the links, etc.)

But after that, I would like to have a set of .dll files to add or remove from the application installation folder that will adapt the application so that it can be used by different people. But keep in mind that the diagram is always the same.

As an example, take the maintenance team and inventory team as 2 separate kinds of users.
By clicking on a water pump, I would like to have a new/expanded property view (and even ribbon tab, commands) that are designed by kind of user:
  • Maintenance : when was the last maintenance and who did it, when is the next one and who will do it, etc.
  • inventory team : do we have spare parts and how many. Where are the parts buy, what is the cost, etc.
I could also have new diagram element that can be added to the existing diagram.

The idea is that my data repository contains all the information for my domain object, but I want to be able to have a modular application displaying only the necessary part that could interest the user. In fact, it could be sold as 3 different applications if necessary.

My question is :
- It seems easy to build a diagram
- It seems feasible to build a diagram inside a modular application
=> It is possible to build a modular diagram application so that it fill the needs explained in the third part of this post?

Any advice or real experiences are welcomed.

Regards,

Nic
Olivier
Top achievements
Rank 1
 answered on 29 May 2012
2 answers
190 views
In a sample application the Background of the Seperator and the Contextmenu are ignored.
Is this a Bug or am I doing something wrong?

See attached Image. Seperator has a gray background and the ContextMenu is not LimeGreen.

<Window x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <telerik:RadTreeListView>
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu x:Name="treeContextMenu" Background="LimeGreen">
                    <telerik:RadMenuItem Header="Test 1" Background="White"/>
                    <telerik:RadMenuItem Header="Test 2" Background="White"/>
                    <telerik:RadMenuItem IsSeparator="True" Background="White"/>
                    <telerik:RadMenuItem Header="Test 3" Background="White"/>
                    <telerik:RadMenuItem Header="Test 4" Background="White"/>
                    <telerik:RadMenuItem Header="Test 5" Background="White"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
        </telerik:RadTreeListView>
    </Grid>
</Window>
Froggie
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
203 views

Hello

 I am using the RadDocking control to manage our application main layout. I wanted to implement a Save/Load functionality in order to provide a better user experience. To do that I added a SaveLayout and LoadLayout menu Items that uses the RadDocking.SaveLayout  and RadDocking.LoadLayout methods (http://www.telerik.com/help/wpf/raddocking-features-save-load-layout.html) . The layout structure is saved and loaded properly, but I noticed that the ‘IsPinned’ property of the panes is not being properly restored. It looks like that property is not being included in the saved layout structure and therefore not being restored.

 As an example:

 1-      Start the application. All Panes are pinned.

 2-      The user saves the layout.

 3-      The user unpin a pane

 4-      The user loads the layout.

 5-      …  the pin remains unpinned….

  Is this an expected behaviour?  If not, How can I accomplish what I am looking for (5- The pane is restored as pinned)?
Thanks,

Boyan
Telerik team
 answered on 29 May 2012
1 answer
601 views
Hello,

I'm trying to style a RadTreeViewItem to take up all available space in the TreeList width.  I have three items of bound data I want to show in a treeitem.  The first two being an image and a name, and the last being an image indicating a status that is to be right aligned to the very edge of the treeview where the scroll bar would appear.

In order to do this in a WPF tree view, one has to completely override the treeview item style and use dock panels to change the effect as described here: http://leecampbell.blogspot.ca/2009/01/horizontal-stretch-on-treeviewitems.html

I've tried different forms of Grids and dock panels, but the result always looks the same - as if the items are displayed in a stack panel.  I can see that the selected item style actually spans the width of the tree, can I get the item template to display in this manor?
Petar Mladenov
Telerik team
 answered on 29 May 2012
5 answers
332 views
Is there a way of dynamically adding series to the chart view at runtime?  Ideally within an MVVM implementation although that's not strictly necessary.

Thanks,

Gareth.  
Lars
Top achievements
Rank 1
 answered on 29 May 2012
1 answer
287 views
I'm trying to set the KeyboardNavigation.TabNavigation property to Local using a style template.  For some reason, it's not working, even in this most basic format:
<StackPanel>
    <telerik:RadMaskedNumericInput Name="radMaskedNumericInput1">
        <telerik:RadMaskedNumericInput.Style>
            <Style TargetType="telerik:RadMaskedNumericInput">
                <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
                <Setter Property="Mask" Value="#3.4"></Setter>
            </Style>
        </telerik:RadMaskedNumericInput.Style>
    </telerik:RadMaskedNumericInput>
    <telerik:RadMaskedNumericInput Name="radMaskedNumericInput2" KeyboardNavigation.TabNavigation="Local" Mask="#6.3"/>
</StackPanel>

The setter of the Mask property works, but the tab navigation in radMaskedInput1 still acts like it's set to Continue.  The tab navigation in radMaskedNumericInput2 properly only puts the cursor in the input box once and then exits on the next tab.

I'm using RadControls for WPF v.2011.2.920.40
Tina Stancheva
Telerik team
 answered on 29 May 2012
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?