Telerik Forums
UI for WPF Forum
3 answers
140 views
Hi, 


I've recently started using Telerik WPF controls so bare with me when I try to explain my problem.  First thing I have tried to do was to create a dynamic layout docking application.  As shown in number of tutorials, I have created a simple WPF application with RadDocumentHost and another UI class that looks like this: 


<telerik:RadDocumentPane x:Class="RadControlsWpfApp1.RadControlsScenario1"<br>        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br><span class="Apple-tab-span" style="white-space:pre">       </span>xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"<br>        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"<br>        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"<br>        Header="RadControlsScenario1" mc:Ignorable="d" d:DesignHeight="288" d:DesignWidth="290"><br>    <Grid><br>        <TextBlock Text="Blah blah blah"/><br>    </Grid><br></telerik:RadDocumentPane>



When I try to look at the xaml for this window in VS designers, all I get is a large grey box that covers the entire area.  At that point I can't drag/drop any new controls onto the window.  


Also, in another application that I have converted to use RadDocumentPane, I get very large header tabs at runtime ( about half of the client space is covered by the header tab ).


Has anyone seen this too?  Any help would be greatly appriciated.


Btw, I'm running latest version of the WPF toolkit ( 2012.1.326.40 )
Yana
Telerik team
 answered on 11 May 2012
1 answer
136 views
Hi,

I'm evaluating Telerik Radcontrols for WPF to see how easy it is get done everything UX guys can think of. Now I have the following case in my hands:

I need to have an extending menu that has default mode of showing 30px column of icons by default. End user can click on a button to make the menu expand, showing icons and text. I suppose this can be done with expander quite easily.

The thing is that the expander needs to be placed inside a split container, and the split container needs to expand with the expander, quite as smoothly. In practice, I guess I would have to animate the split container, in sync with the expander animation. Is there an easy way to do this?

Br,

:^Panu>
Viktor Tsvetkov
Telerik team
 answered on 11 May 2012
5 answers
239 views
In our project, we have to achieve the "zebra" effect for the rows of the grid. This effect means that odd rows are one color (e.g. Red) and the even rows are other color (e.g. Blue). For WinForms I found the solution (http://www.telerik.com/community/forums/winforms/themes-and-visual-style-builder/radgridview-row-color.aspx) but I think for WPF it cannot be done in the same way, because EnableAlternatingRowColor  is missing. Can you give me a solution?

Best Regards,
Lazar Sestrimski

LaZeTo
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
217 views

How does one grab the binding in order to force an update on a RadComboBox control?

MyRadComboBox.ItemsSource = MyObservableCollectionOfACustomClass;
MyRadComboBox.DisplayMemberPath = "Description";



Then, I try to grab the binding in a different control's event.

var binding = BindingOperations.GetBindingExpression(MyRadComboBox, RadComboBox.ItemsSourceProperty);

 

if (binding == null) return;  // This is always null

 

binding.UpdateTarget();

Georgi
Telerik team
 answered on 11 May 2012
1 answer
149 views
Hello,

how can i use KeyGestures from the RoutedUICommands with RadMenuItems?

best regards
Ivo
Telerik team
 answered on 10 May 2012
1 answer
173 views
When I persist a control in WPF, should I be able to unpersist it into Silverlight?

I expect the answer to be "it depends".  What controls are cross-compatible; if any?

Also, do you have an example where a control is persisted to XML then re-hydrated back to the control?

Thanks in advance for your help.
Petar Mladenov
Telerik team
 answered on 10 May 2012
4 answers
85 views
Hi there,

I'm trying to style the property grid chrome, but whenever I drag a  <telerik:PropertyGridField/> to the design view, I get a red box error (see attached).

Could someone give me the XAML of the default style & template so I can edit without adding a PropertyGridField control?

Many thanks

Felix
felix
Top achievements
Rank 1
 answered on 10 May 2012
4 answers
261 views
Hello,

I am using a telerik:RadGridView with is bound to a collection.

In a column of have the following CellStyleSelector 

<telerik:GridViewDataColumn.CellStyleSelector>
                        <telerik:ConditionalStyleSelector>
                            <telerik:StyleRule Condition="Name= 'N/A'">
                                <telerik:StyleRule.Style>
                                    <Style TargetType="telerik:GridViewCell">
                                        <Setter Property="IsEnabled" Value="False"  />
                                    </Style>
                                </telerik:StyleRule.Style>
                            </telerik:StyleRule>
                        </telerik:ConditionalStyleSelector>
                    </telerik:GridViewDataColumn.CellStyleSelector>

This works perfectly for me. However I want this CellStyleSelector on every column expect the Name column.

Is it possible to add a CellStyleSelector as a XAML resource so I can reuse it.

e.g

<telerik:GridViewDataColumn CellStyleSelector="{StaticResource MySelector}" Name="colage" Width="50" Header="Age" DataMemberBinding="{Binding Age, Mode=TwoWay}" />

 I am aware I could create a style selector class but i would prefer to keep it all in the XAML



Stu
Top achievements
Rank 1
 answered on 10 May 2012
1 answer
112 views
Has anyone tried to put line numbers down the side of a document? Just like what you get with a code compiler.

Thanks,

Rob
Robert
Top achievements
Rank 1
 answered on 10 May 2012
2 answers
225 views
Hi,

Is it possible to set the AutoComplete text programmatically?

I have the following ListBox:
<telerik:RadListBox MinWidth="100" MaxHeight="250" x:Name="radListBox"
                    Grid.ColumnSpan="2" Visibility="Collapsed"
                    HorizontalAlignment="Left" VerticalAlignment="Top"
                    CanAutocompleteSelectItems="True" IsTextSearchEnabled="True" TextSearchMode="Contains" TextPath="Name"
                    ItemTemplate="{StaticResource AutoCompleteListBoxTemplate}"
                    ItemsSource="{Binding autoCompleteListItems}"
                    MouseDoubleClick="radListBox_MouseDoubleClick" MouseUp="radListBox_MouseUp">
    <telerik:RadListBox.Effect>
        <DropShadowEffect ShadowDepth="10" Color="Gray" Opacity=".4" Direction="320" RenderingBias="Performance" />
    </telerik:RadListBox.Effect>
</telerik:RadListBox>

The ListBox uses this template:
<DataTemplate x:Key="AutoCompleteListBoxTemplate">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image Style="{StaticResource AutoCompleteListBoxIcon}" Width="10" Height="10" Margin="0,0,10,0" />
<TextBlock Text="{Binding Name}" Grid.Column="1" HorizontalAlignment="Stretch" />
<TextBlock Text="" Grid.Column="2" HorizontalAlignment="Right" Margin="5,0,5,0" />
</Grid>
</DataTemplate>


I set the ItemsSource in code behind:
private void radRichTextBox_Loaded(object sender, RoutedEventArgs e)
{
    //Set Autocomplete ListBox itemssource
    radListBox.ItemsSource = autoCompleteListItems;
}


The documentation does state the following:
RadListBox has full autocomplete support - while the control is focused, you can type certain keys and the listbox will select the relative match for the currently typed text. 

I'm building a RichTextBox Intellisense application, thus the ListBox is the Intellisense. The application is setup to always send focus back to the RichTextBox so that the user can continue typing.

Is it possible to set the ListBox AutoComplete text in code behind? i.e. when the user types text in the RadRichText box, the text they type is used to set AutoComplete the ListBox.

I've tried setting the TypedText property:
listBox.TypedText = "He";

However this doesn't seem to do anything.

Thank you very much,

Rob



Robert
Top achievements
Rank 1
 answered on 10 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
DataPager
PersistenceFramework
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?