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

Somewhat new to WPF, familiar with WinForms RadGridView.

I want to get to the Rows and/or SelectedRows from the grid.

I am on version: 2012.3.1129.40,  version or two back I think.

Regards,

Michael
Travis
Top achievements
Rank 1
 answered on 02 Jan 2013
1 answer
106 views
Hi,

I create editor using richtextbox in which I want features to wrap code into a line like Visual Studio editor wrapping code for function and region. I'd like to know if richtextbox provides something that can do it. Thanks.

York
Petya
Telerik team
 answered on 02 Jan 2013
3 answers
612 views
I am building a prototype using a RadRibbonWindow as a main application window with a RadRibbonView.  There is a vertical line that is always on the title bar that I would like to get rid of but I can't seem to locate any way to do it.  If you look close at the attached screenshot it is behind the circular application icon.  Is there a style associated with it?  I am currently using the latest Q3 2012 build (trial edition).

I also attached a 2nd image from a sample application I downloaded from these forums that shows it more clearly.
Kiril Vandov
Telerik team
 answered on 02 Jan 2013
1 answer
134 views
I have a RadComboBox with IsEditable=True. When the selected item's property changed event is raised, the text does not change. When IsEditable=False, it does change.
The item in the drop down does change. Just not the text in the editable text box.
Yana
Telerik team
 answered on 02 Jan 2013
1 answer
175 views
We wish to use application wide implicit styling of our application.

This documentation (http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html) states that all we have to do is merge in the resources for the selected theme at the application level. We are doing this in code behind since the theme to be used is dependent on settings obtained from the user.

Adding this to the application's constructor implictly themes all the standard controls in the manner described in the current theming documentation.

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/System.Windows.xaml",
               UriKind.RelativeOrAbsolute)
         });

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName + ";component/Themes/Telerik.Windows.Controls.xaml",
               UriKind.RelativeOrAbsolute)
         });

However adding this:

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Controls.Navigation.xaml",
               UriKind.RelativeOrAbsolute)
         });


         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Controls.Docking.xaml",
               UriKind.RelativeOrAbsolute)
         });

Does not result in any of the docking components being themed.

Attempting this:

         Resources.MergedDictionaries.Add(new ResourceDictionary()
         {
            Source = new Uri("/Telerik.Windows.Themes." + themeName
               + ";component/Themes/Telerik.Windows.Documents.xaml",
               UriKind.RelativeOrAbsolute)
         });

Results in the exception "Could not load file or assembly Telerik.Windows.Documents" even though the documentation explicitly states that use of this resource is dependent on Telerik.Controls and Telerik.Controls.Input only, (both of which we reference).

This page (http://www.telerik.com/help/wpf/common-styling-apperance-setting-theme-wpf.html) states that setting an application wide built-in theme will not theme built-in controls, only the RadControls, while this page (http://www.telerik.com/help/wpf/common-styling-themes-mscontrols.html) describes how most of the common built in controls are actually themed as well.

My impression so far is that the documentation is out-of-date, incomplete and occasionally self-contradictory.

Using version 2012.3 with C#.

Yana
Telerik team
 answered on 02 Jan 2013
1 answer
352 views
I'm attempting to wire up some functionality that will hide all of the user interface tools such as navigation, labels, zoom, and lat/lng with a button click.  Essentially, I'd call the method below to hide everything, then perform some functionality in my button click event, and then call this method again to show the user interface tools.

What happens is that the RadMap hasn't actually completed the update to the control prior to the code in "Do some stuff" executing.  I've noticed a small delay in the map rendering when the labels are turned on and off.  It "appears" that I need to figure out how to wait for the RadMap to complete its rerendering after SetMapLabels(false) prior to executing the "Do some stuff" code.

Am I correct in my assumption?  If so, can you share some insight as to which event handler would get triggered in this scenario?

private void btnDoStuff_Click(object sender, RoutedEventArgs e)
{
  SetMapLabels(false);
  // Do some stuff
  SetMapLabels(true);
}


private void SetMapLabels(bool on)
       {
           if (on)
           {
               _provider.IsLabelVisible = true;
               //   this.RadMap1.UseDefaultLayout = true;
               this.RadMap1.CommandBarVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.NavigationVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ScaleVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ZoomBarPresetsVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.ZoomBarVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.MouseLocationIndicatorVisibility = System.Windows.Visibility.Visible;
               this.RadMap1.MiniMapExpanderVisibility = System.Windows.Visibility.Hidden;
               this.RadMap1.InvalidateVisual();
               this.RadMap1.UpdateLayout();
               return;
           }
 
 
           _provider.IsLabelVisible = false;
           //   this.RadMap1.UseDefaultLayout = false;
           this.RadMap1.CommandBarVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.NavigationVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ZoomBarPresetsVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ZoomBarVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.ScaleVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.MouseLocationIndicatorVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.MiniMapExpanderVisibility = System.Windows.Visibility.Hidden;
           this.RadMap1.InvalidateVisual();
           this.RadMap1.UpdateLayout();
 
       }
Tsvetie
Telerik team
 answered on 02 Jan 2013
3 answers
216 views
Hello,

I would like to drag and drop multiple appointment located in several different resources. The default behavior of scheduleView is that all appointments are dropped into the pointed resource row on mouse release. What I want is a slide up or down of each item selected, keeping them at the same distance from each other's at the mouse release. You will see what I really want on attached pictures.

AB.

Yana
Telerik team
 answered on 02 Jan 2013
3 answers
406 views


Hi
I need to change the background color of a cell based on its value while using AutoGenerateColumns="True
Without using code behind (attach property is acceptable solution) 
The data context is  System.Data.DataTable

 Thanks in advance.

Dimitrina
Telerik team
 answered on 02 Jan 2013
2 answers
319 views

Is there any reason when executing either of the following two commands I should get the following error?

Command Executing:
//Loop Through Document Sections
foreach (Section sectionLayoutBox in radRichTextBox.Document.Children)
{
    //Loop Through Section Paragraphs
    foreach (Paragraph paragraph in sectionLayoutBox.EnumerateChildrenOfType<Paragraph>().ToList<Paragraph>())
    {
        //Remove Paragraph From Document
        //paragraph.Parent.Children.Remove(paragraph);
        sectionLayoutBox.Children.Remove(paragraph);
    }
}


Error Message: inline does not belong to this document.

I know my initial post is a little vague, I can elaborate in more detail if you require.

Thanks,

Rob
Petya
Telerik team
 answered on 02 Jan 2013
2 answers
164 views
Hi, after dragging the RadCombobox from the toolbox, the following exception are generated when the applicaiton runs.


Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.

{"Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception."}

{"Type reference cannot find type named '{clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls}MetroTouchTheme'."}


Have tried to re-add the reference but still no luck. we are using RadControls for WPF Q3 2012 binaries.

If I use a normal combobox, it works.

Anything else I can do?
Georgi
Telerik team
 answered on 02 Jan 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
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?