Telerik Forums
UI for WPF Forum
1 answer
224 views
Hello,

I try to display a list of UserControls in a RadTabControl and to use a UserControl property (name) to display tab header and dropdown items.

According to this post (http://www.telerik.com/community/forums/wpf/tabcontrol/radtabitem-headertemplate-not-responding-to-binding-to-usercontrol-object-properties.aspx), I succeded in displaying Tab Header with UserControl "Name" property.
To do this, I use a RelativeSource :

Text

 

 

="{Binding DataContext.Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadTabItem}}"

 


I have used your TabControl-Q1.zip sample project (from post above) where I have modified MainWindow.xaml.cs file to create a list of UserControls :

this

 

 

.radtabVariableControlsContainer.ItemsSource =

 

 

 

Enumerable.Range(0, 10).Select(x => new UserControl() { Name = "name" + x });

 


My RadTabControl and related template definition is this one :
<Grid>
  
        <Grid.Resources>
  
            <DataTemplate x:Key="ContentAreaTabHeaderTemplate">
                <TextBlock Text="{Binding DataContext.Name, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadTabItem}}" FontFamily="Arial" FontSize="13.333" />
            </DataTemplate>
  
        </Grid.Resources>
  
        <telerik:RadTabControl x:Name="radtabVariableControlsContainer"                               
                               BorderBrush="{x:Null}"
                               SelectedItemRemoveBehaviour="SelectPrevious"
                               ItemTemplate="{StaticResource ContentAreaTabHeaderTemplate}"
                               DropDownDisplayMode="Visible"
                               ItemDropDownContentTemplate="{StaticResource ContentAreaTabHeaderTemplate}"/>
  
    </Grid>

It so work find for ItemTemplate to display Tabs Header, but I don't succeed in displaying UserControls names in DropDown.
The "name" property never appear in dropdown...

Many thanks for your help !

Yann
Petar Mladenov
Telerik team
 answered on 13 Dec 2011
1 answer
74 views
I am using RadChart Q3 2011. I am attempting to bind the YIntercept to a value coming from my view model. I have the following XAML:

<charting:ChartArea.Annotations>
   <charting:CustomGridLine YIntercept="{Binding Path=TargetThickness}" Visibility="Visible" Stroke="Red" StrokeThickness="
</charting:ChartArea.Annotations>

The problem is that it's not displaying the value contained in the TargetThickness property. Is the syntax not correct?
Petar Marchev
Telerik team
 answered on 13 Dec 2011
4 answers
205 views
Hello,

Could you please give me some hints how to enforce gridview control to mark as selected record for which I'm clicking togglebutton to display rowdetails. I found an example for Silverlight in which it work as desired for my WPF app http://www.telerik.com/community/forums/silverlight/general-discussions/togglebutton.aspx

When I click the rowdetails toggle button it shows that details but also marks the parent row as selected. 

Regards
Andy 
AndyL
Top achievements
Rank 1
 answered on 13 Dec 2011
1 answer
145 views
Hi

I am performing an operation while the backstage part of the ribbon is open e.g. opening a file form the recent files section.

My busy indicator set as the root object of the xaml page works when backstage is not open, but when the backstage is open I get no feedback.

Any ideas?
Ivo
Telerik team
 answered on 13 Dec 2011
4 answers
96 views
Hi,I'm using RadTreeListView,the default TreeListViewRow's IsExpanded Property is controled by a toggle button,right?
My question is:
when the IsSelected property is True,Could I give the IsExpanded property a True Value,too?It means the Row Expanded when I Selected the Row.

best wishes,
Sky
Yu
Top achievements
Rank 1
 answered on 13 Dec 2011
5 answers
399 views
Hi,

I have actually in my RadWindow multiple RadPaneGroup. As you can see in attached picture, I lost space from two of them. I would like to know if it's possible to resize both RadPaneGroup in my xaml or in code-behind?

Thank's
Konstantina
Telerik team
 answered on 13 Dec 2011
3 answers
103 views
The following code will throw an exception indicating "Dir not found". It seems that while importing from a string, RadRichTextBox will need to access a certain folder that does not exist.
In my project, I need to serialize the content(The content might contain some InlineUIContainer which includes a TextBlock) of the RichTextBox into the OpenXml format and unserialize it back, could you please provide any better solutions?

public static RadDocument ImportFromString(string content)
{
    var provider = new DocxFormatProvider();
 
    var stream = new MemoryStream();
    var sw = new StreamWriter(stream);
    sw.Write(content);
 
    return provider.Import(stream);
}
Boby
Telerik team
 answered on 13 Dec 2011
1 answer
168 views
I'm not sure what I'm missing, I've also looked through the documentation and somehow still don't manage to get this right. I'm trying to get a few Controls (like RadGridView or RadPager) to display the localized German version. Many how-to's I find deal with how to accomplish this for languages that are not yet officially supported and controls that have not yet been translated. With the version we use (2011.3) the localization is supposed to be included for a few languages.

So, even if this might be a trivial thing, I still have not found out how I can actually make the application use the localized Controls on both
- a German host system
- an English host system

Thanks for any hints.
Maya
Telerik team
 answered on 13 Dec 2011
1 answer
178 views
Hello,
I've got a DateTimePicker and a Button inside a WPF / Caliburn Micro project... I wish to disable the button when the user doesn't select a date... but there's no set of my property to null since the Validator detects that there's no datetime selected... how can I do that?
Thanks

Paolo
Ivo
Telerik team
 answered on 13 Dec 2011
1 answer
108 views
Hi,
I have a chart, which works on some filter selection of dates.

User can select atmost 12 dates to be displayed on the chart. It has grid at the bottom which is aligned to x-axis points of the chart (see the attached image.)

Now when user select the less number of dates say 2 or 6, the gap between the two dates on x-axis increases, as it has more space available, which is now not alligned with the grid.
Please refer attached images for more information.

So, is there any way to fix the distance between the two dates, so that they can come on a single position everytime?

Please reply as soon as possible.

Thanks.
Nikolay
Telerik team
 answered on 13 Dec 2011
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?