Telerik Forums
UI for WPF Forum
11 answers
189 views
I am using the MultipleUndoControl; is there a MultipleRedoControl? Or is there a way to use the MultipleUndoControl with Redo?
Boby
Telerik team
 answered on 25 Feb 2013
14 answers
1.6K+ views
Hi

I'm trying to set the background color of a Grid (LayoutRoot) of a RadWindow consitent with application theme (that could be changed); RadWindow has alway a white background color despite any ApplicationTheme I could set.
Currently I'm adding a dummy element

<telerik:RadMenu Name="radMenu" Visibility="Collapsed" Width="0" Height="0"/>

and copy color from radMenu.

layoutRoot.Background = radMenu.Background;

Is there a better way to do that?

Thanks
Ivano
Yana
Telerik team
 answered on 25 Feb 2013
3 answers
187 views
Hello,

I'am using Q1 2013 and Entity Framework.
Th UI is not refreshed when I bound the child source to EntityCollection.
Does the TileListView support the AssociationChanged event of EntityCollection ?

Thank you
Benjamin
Top achievements
Rank 1
 answered on 25 Feb 2013
5 answers
335 views

I have some Telerik controls in my XAML. When I load the designer, it throws an exception:

System.Exception
Cannot find resource named 'InvertedBooleanToVisibilityConverter'. Resource names are case sensitive.
   at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
   at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)


I have referenced Telerik.Windows.Controls.dll. Not sure what's causing this as "InvertedBooleanToVisibilityConverter" cannot be found in my source code, but it is indeed present in your WPF examples...

Also, I do have this in my app.xaml:

<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Expression_Dark;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>

Vladi
Telerik team
 answered on 25 Feb 2013
1 answer
185 views
Quick question:  Trying this out to make a quick demo and noticed that if you're editing a cell and haven't hit enter to complete then that content doesn't get saved as part of an export.  It appears the control also doesn't auto complete the edit when it loses focus for say clicking a save button.

So how do I code it so when the control loses focus or some other event occurs that it completes the in progress cell edit and thus the whole thing will get saved?

Thanks
Vesko
Telerik team
 answered on 25 Feb 2013
3 answers
105 views
i need to know how to make print and design using Diagram control for 2 faces cards and print it
Hristo
Telerik team
 answered on 25 Feb 2013
3 answers
208 views
Hello,
How to focus next input control when user press Tab key once. Now If somebody press Tab key carret goes to end of text input, and user must press Tab again to focus next control. It's annoying.
Jason
Top achievements
Rank 1
 answered on 23 Feb 2013
1 answer
166 views
Hi there,

I am trying dynamically add area series but I don't know how to set Combined property in a code behind. 
In XAML it look like
<telerik:AreaSeries CombineMode="Stack"></telerik:AreaSeries>

But in C# I am having difficulty to find properties "Stack, Stack100 ... " 

AreaSeries newSer1 = new AreaSeries();
newSer1.Focusable = true;
newSer1.ItemsSource = new List<int> { 1, 2, 3 };
newSer1.CombineMode = ???

Could you guys help me? Thanks!
Petar Kirov
Telerik team
 answered on 22 Feb 2013
1 answer
262 views
Hi,
I'd like to know how I can use the copy and paste on objects of type custom using InlineUIContainer class.
I did some tests, but I could not duplicate the object, also using an override CopyableInlineUIContainer with the functions CopyPropertiesFromOverride/CopyContentFromOverride.

The object of type InlineUIContainer contains a control RadButton whose content is an image. I also linked to the button RadButton an event MouseDoubleClick to show custom dialog box.

This is a sample code:

string controlName = "PLACEHOLDER_" + getNewId();   // ex. PLACEHOLDER_1
string controlTag = getNewTag();    // ex. 100231
var button = new RadButton
{
     Name = controlName,
     Tag = controlTag,      // this tag is used to retrieve custom properties from database
     Width = 100,
     Height = 32,
};
 
// add the image to content
button.Content = this.getCustomUIElementByPlaceholder(message, controlName);
button.MouseDoubleClick += SelectPlaceHolder;       // event fired when user doubleclick the button
 
// create the UI element
// new class with copyable=true override
var container = new CopyableInlineUIContainer { UiElement = button, Width = button.Width, Height = button.Height, Tag = controlName };
// original code
// var container = new InlineUIContainer { UiElement = button, Width = button.Width, Height = button.Height, Tag = controlName };
 
// invoke the insert method
// Note: editor if a WPF control of type RadRichTextBox
editor.InsertInline(container);
 
// add a text coomment
string sContentComment = "Custom placeholder NAME " + controlName + " TAG " + controlTag;
var comment = new Comment(sContentComment) { Name = string.Concat("m", controlTag) };
editor.ShowComments = true;
 
var startPosition = editor.Document.CaretPosition;
var endPosition = new DocumentPosition(startPosition);
startPosition.MoveToCurrentWordStart();
endPosition.MoveToCurrentWordEnd();
 
editor.Document.Selection.AddSelectionStart(startPosition);
editor.Document.Selection.AddSelectionEnd(endPosition);
editor.Document.InsertComment(startPosition, endPosition, comment);


If I try to duplicate the object, only the comment is actually copied.

Is there any solution for this?

Thanks,
Michele Fochi
Michele
Top achievements
Rank 1
 answered on 22 Feb 2013
3 answers
335 views
If I try to delete a range containing a table, either via setting a selection and Document.Delete(false) or via Document.Delete(start, end), I get an InvalidCastException:

Unable to cast object of type 'Telerik.Windows.Documents.Layout.TableLayoutBox' to type 'Telerik.Windows.Documents.Layout.ParagraphLayoutBox'.

   at Telerik.Windows.Documents.Model.RadDocument.DeleteParagraphsInRangeInternal(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4530
   at Telerik.Windows.Documents.Model.RadDocument.DeleteRangeInternal(SelectionRange range) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 4574
   at Telerik.Windows.Documents.Model.RadDocument.DeleteRange(DocumentPosition fromPosition, DocumentPosition toPosition) in c:\TB\102\WPF_Scrum\Release_WPF\Sources\Development\Documents\Core\Model\RadDocument.cs:line 1221

Are there any alternatives or workarounds?  Or am I doing something wrong?
Petya
Telerik team
 answered on 22 Feb 2013
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?