Telerik Forums
UI for WPF Forum
4 answers
203 views
Hi everyone!

I am trying to build a custom theme which is based on "OfficeSIlver" - or any other built-in theme... My first approach was to simply copy the according theme project to my solution and then run a "Search & Replace" to replace "Office_Silver" to "Office_Custom". I changed the "Build"-Settings of the project (assembly-name and default-namespace) accordingly.

Then I added a custom "Theme" class which derived from "Theme" and is named "Office_CustomTheme".
I referenced the new theme-project, instantiated the theme and set it as application-wide theme.

I get a LOAD of xaml-parsing-errors. Nothing seems to work right.
The least of my problems was the "external" namespace definition:
xmlns:external="clr-namespace:Telerik.Windows.Controls.External" 

 
(which just does not exist)

or some mysterious "external:Office_SilverThemeExternal":
x:Key="{telerik:ThemeResourceKey ThemeType=external:Office_SilverThemeExternal , ElementType=telerik:RadButton}"

After fixing that (renaming to my new local theme) still nothing works as expected, xaml-files are referenced but not found - if that is fixed some other obsucre errors pop up. After that I just gave up.

I am very disappointed - since telerik advertises that everything is easily and effortless to customize (in Blend even)
The documentation link that "should" probably describe how it is done the right way is down.

I would very much appreciate a step by step description on how to achieve this.

Thank you very much.

Kind regards,
Wolfgang

Sia
Telerik team
 answered on 17 Oct 2011
1 answer
233 views

I'm using the MVVM pattern to build an application. I have a GridView that shows a collection of ViewModels that are connected to entities. These entities have validation implemented in them.

 

All this works, and the grid indicates cells that have validation errors by giving them a red border.

 

It is possible for the entities to be edited in another place in my application while they are displayed in the GridView. When this happens, these entities will be reloaded in the GridView and validated again. This works and I have verified that the validation errors are set as they should.

 

However, the GridView doesn't show the validation error immediately. If a cell that is visible has an error, the red border is not displayed. But if I scroll the GridView so that the cell is no longer visible, and then scroll it back into view, the red border appears!

 

Somehow I need to tell the GridView to update the validation errors. How can I do that?

Yordanka
Telerik team
 answered on 17 Oct 2011
1 answer
144 views
Is there a way that I can use the built in Drag and Drop handler while Dragging and Dropping in a RadTreeView, while modifying the DragCue message?  I have a couple of my own rules that I use in a PreviewDragEnded function, and I would like to change the DragCue to show what is allowed or not. 

For example, if I have a tree with
Tree
--Nest
---Bird
---Bird2

I can set the PreviewDragEnded function to check that you don't drop a Nest into a bird.  If you do, then I use e.handled = true and ignore the drag and drop action.  I would like for the DragCue to show that it is not allowed first, instead of just not allowing it after the mouse button is released.  I can do this if I write the DragQuery, DragInfo, DropQuery, and DropInfo functions, but I want to use the Rad versions of these functions that already exist (except for the modified DragCue, of course).

Thanks for your help.
Scott
Tsvyatko
Telerik team
 answered on 17 Oct 2011
4 answers
129 views
Hello Telerik team,

Can you please suggest how to itrate over each color in the main Palette when it is set to "web216". What I want is I should be able to set and get color by looping over each color in the palette with the help of an index.
eg:
var int myColor = web216[1]
and vice versa.

thank you very much.
regards.

 

Petar Mladenov
Telerik team
 answered on 17 Oct 2011
4 answers
219 views
Is there currently a way to trigger an event when the FilteredSource has been updated by the DataFilter? Something like a CollectionChanged event or FilteredCompleted.

Thanks,
Shawn
David
Top achievements
Rank 1
 answered on 17 Oct 2011
1 answer
107 views
I tried to look up the documentation for this new class, but realized that it is not posted:  (see http://www.telerik.com/help/wpf/introduction.html).  Perhaps the link is missing?
Vera
Telerik team
 answered on 17 Oct 2011
1 answer
144 views
Hello All,

I need to change the control type durring AutoGeneration of a property to a ListBox.  In my case, I have an 'int' property which is the primary key in a list table.  Since the table changes from time to time, I can't use an Enum type.  So how can I change the control type at run-time? 

Rashad Rivera
Top achievements
Rank 1
 answered on 17 Oct 2011
6 answers
149 views
Rad
Hi,
       In my WPF project i want to show 5 images while we mouse over the navigation button at the time of clicking the last image next set of 5 images needs to come please help me out in this issue.

Regards,
Rajini.
Rajini
Top achievements
Rank 1
 answered on 17 Oct 2011
8 answers
174 views

Hi,

I'm having a problem with setting the RadTreeViewItem's CheckState property through the ItemContainerStyle of the RadTreeView. Specifically, I receive an error message every time I try to edit the xaml in design mode with Blend (versions 3 or 4 RC) and nothing gets rendered on the design surfice. The message is:

"The member 'CheckState' is not recognized or is not accessible."

 I managed to reproduce the problem with a stripped-down version of the xaml:

<Window x:Class="WpfApplication18.MainWindow" x:Name="Window" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"               
        xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
        mc:Ignorable="d"   
        Width="640" Height="480" 
        xmlns:sys="clr-namespace:System;assembly=mscorlib">  
 
    <Grid>   
        <telerikNavigation:RadTreeView IsOptionElementsEnabled="True">              
            <telerikNavigation:RadTreeView.Items> 
                <sys:String>Item 1</sys:String>               
                <sys:String>Item 2</sys:String>               
                <sys:String>Item 3</sys:String>      
            </telerikNavigation:RadTreeView.Items> 
            <telerikNavigation:RadTreeView.ItemContainerStyle> 
                <Style TargetType="{x:Type telerikNavigation:RadTreeViewItem}">  
                    <Setter Property="CheckState" Value="On" />   
                    
<Setter Property="OptionType" Value="CheckList" />                   
                </Style> 
            </telerikNavigation:RadTreeView.ItemContainerStyle> 
        </telerikNavigation:RadTreeView>         
    </Grid> 
</Window> 

It's only the CheckState property that's causing the problem (the OptionType property from the sample works fine).
Sources on the internet suggest tha an internal exception in the property 'setter' might be causing such behavior but that's just a clue.
Do you have any idea how I can get it working in Blend ??
Petar Mladenov
Telerik team
 answered on 17 Oct 2011
2 answers
102 views

HI There,

we need to know how to remove " Nested Operator Button"  from the Radfilter

any comments appreciated.

Regrads
DEE

Deepak
Top achievements
Rank 1
 answered on 17 Oct 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
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?