Telerik Forums
UI for WPF Forum
1 answer
136 views
Basing my implementation on your RadRibbonView MVVM example I need to be able to set the variants. But this does not appear to be possible. If it is can you please supply an example where the groups are derrived from the ViewModel.

Thanks
Viktor Tsvetkov
Telerik team
 answered on 20 Jul 2011
11 answers
321 views
As the beta example is not that detailed, I have to ask:

Is it possible to set the initial height of the description panel and where can I switch on, that the user can change the height of the description panel?

Greets
Pavel Pavlov
Telerik team
 answered on 20 Jul 2011
2 answers
174 views
Edit: Title should be "Strange behaviour of minimized ITEMS" (not icons, but I can't change the Title)

Dear Support,

I'm just testing your controls because the Infragistics-Suite seems not to support MVVM in any way.
Your OutlookBar works great, but I have an issue/question about the "Caption/Header/Text" of minimizedItems.
Please take a look at following XAML
<telerik:RadOutlookBar QuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True" telerik:Theming.Theme="Office_Blue" ItemsSource="{Binding OutlookEntries}" Height="234" HorizontalAlignment="Stretch" Margin="211,6,160,31" Name="RadOutlookBar1" VerticalAlignment="Stretch" Width="229">
                     
     <telerik:RadOutlookBar.Resources>
            <Style TargetType="{x:Type telerik:RadOutlookBarItem}">
                  <Setter Property="Header" Value="{Binding Header}"/>                         
                  <Setter Property="SmallIcon"  Value="{Binding SmallImage}"/>
                  <Setter Property="Title" Value="{Binding Header}"/>
                  <Setter Property="Icon" Value="{Binding LargeImage}"/>
              </Style>
        </telerik:RadOutlookBar.Resources>
</telerik:RadOutlookBar>

The Items are shown correctly. But if I'm using the slider in order to minimize the Items, the SmallIcon together with the ClassName will be shown at each "minimizedItem" in the outlookbar at the bottom. I don't understand why. 

I have seen your MVVM-Binding-Sample in which you used ItemMinimizedTemplate
<telerik:RadOutlookBar.ItemMinimizedTemplate>
    <DataTemplate>
        <StackPanel Orientation="Horizontal">
                 <TextBlock Text={Binding Header}/>                              
        </StackPanel>
    </DataTemplate>
</telerik:RadOutlookBar.ItemMinimizedTemplate>

I could use this DataTemplage and delete the TextBlock inside the StackPanel. Then only the Icon will be shown within minimized Items.
But it seems more clean for me with my code above, instead of retemplating ItemMinimizedTemplate, ItemTemplate, HeaderTemplate etc.  The OutlookBar is bound to a CollectionView calles "OutlookEntries" which contains  a simple Class with Strings as Header and ImageSources as Icons.

Any hints would be appreciated.
Petar Mladenov
Telerik team
 answered on 20 Jul 2011
1 answer
54 views
Hi,
I need to set different background colors to each TileViewItem header in a TileView.

Can you please help me:-)


Thanks in advance...
Petar Mladenov
Telerik team
 answered on 20 Jul 2011
2 answers
115 views
Hi Team,

I am working for the custom search option. I have one text box for custom search and one button to search the map item. Please find my code in code block.
<Window x:Class="DetailData.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBox Margin="12,4,0,6" Height="30" Width="300" HorizontalAlignment="Left" Name="Txtbx_Search"></TextBox>
        <Button Margin="318,4,135,6" Height="30" Width="50" Content="Search" Name="Search" Click="Search_Click"></Button>
        <telerik:RadMap x:Name="radMap" Grid.Row="1" Center="60.1755556, 24.9341667" MouseDoubleClickMode="None" ZoomLevel="5"  >
            <telerik:RadMap.Provider>
                <telerik:OpenStreetMapProvider />
            </telerik:RadMap.Provider>
            <telerik:InformationLayer Name="informationLayer">
                <telerik:InformationLayer.ItemTemplate>
                    <DataTemplate>
                        <Border Background="Transparent"
                                BorderThickness="1"
                                Padding="2,2,2,2">
                            <ToolTipService.ToolTip>
                                <ToolTip Content="{Binding Path=Title}" />
                            </ToolTipService.ToolTip>
                            <telerik:MapLayer.HotSpot>
                                <telerik:HotSpot X="0.5" Y="1.0"  XUnits="Fraction" YUnits="Fraction" ElementName="Pin"/>
                            </telerik:MapLayer.HotSpot>
                            <Canvas x:Name="Pin" Height="32" Width="20">
                                <Path Data="M1054.5088,458.105L1065.5188,458.105C1067.7278,458.105,1069.5188,459.896,1069.5188,462.105L1069.5188,473.084C1069.5188,475.293,1067.7278,477.084,1065.5188,477.084C1065.5188,477.084,1062.6868,476.831,1062.2128,479.103C1061.6608,481.751,1060.2208,489.11,1060.2208,489.11L1059.3548,489.11C1059.3548,489.11,1058.0138,482.546,1057.2888,479.106C1056.8538,477.041,1054.5088,477.084,1054.5088,477.084C1052.2998,477.084,1050.5088,475.293,1050.5088,473.084L1050.5088,462.105C1050.5088,459.896,1052.2998,458.105,1054.5088,458.105z" Fill="White" Height="32.005" StrokeStartLineCap="Flat" Stretch="Fill" StrokeEndLineCap="Flat" Stroke="Black" StrokeThickness="1" StrokeMiterLimit="10" StrokeLineJoin="Miter" Width="20.01"/>
                                <Path  Canvas.Top="2.989" Canvas.Left="3.188" Data="M1066.6162,472.8125C1066.6212,473.9125,1065.7252,474.8125,1064.6252,474.8125L1055.2502,474.8125C1054.1502,474.8125,1053.2462,473.9125,1053.2412,472.8125L1053.1962,462.5935C1053.1912,461.4935,1054.0872,460.5935,1055.1872,460.5935L1064.5622,460.5935C1065.6622,460.5935,1066.5662,461.4935,1066.5712,462.5935z" Fill="Black" Height="14.219" Stretch="Fill" Width="13.42"/>
                            </Canvas>
 
                        </Border>
                    </DataTemplate>
                </telerik:InformationLayer.ItemTemplate>
            </telerik:InformationLayer>
            <telerik:InformationLayer Name="informationLayer2" />
        </telerik:RadMap>
    </Grid>
</Window>

using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.Map;
using System.Windows.Media;
 
namespace DetailData
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private bool initialized;
        private RadWindow window;
        private Point topRightPoint;
 
        public MainWindow()
        {
            InitializeComponent();
 
            this.radMap.InitializeCompleted += new EventHandler(radMap_InitializeCompleted);
        }
 
        void radMap_InitializeCompleted(object sender, EventArgs e)
        {
            if (!this.initialized)
            {
                this.initialized = true;
                // add pushpin              
                Pushpin pushpin = new Pushpin();
                MapLayer.SetLocation(pushpin, new Location(60.1755556, 24.9341667));
                pushpin.MouseDoubleClick += new MouseButtonEventHandler(pushpin_MouseDoubleClick);
                this.informationLayer.Items.Add(pushpin);
            }
        }
 
        private void pushpin_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var pushpin = sender as Pushpin;
            if (pushpin != null)
            {
                e.Handled = true;
                LocationRect bounds = this.informationLayer.GetGeoBounds(pushpin);
                bounds.MapControl = this.radMap;
                Location topRight = bounds.Northwest;
                this.topRightPoint = topRight.GetPoint(this.radMap);
                 
                this.topRightPoint.X += this.Left;
                this.topRightPoint.Y += this.Top;
 
                if (this.window != null && this.window.IsOpen)
                {
                    this.window.Close();
                }
 
                this.window = new RadWindow()
                 
                {
                    Content = "My first Pinpoint info"
 
                };
                window.ResizeMode = System.Windows.ResizeMode.NoResize;
                this.window.SizeChanged += new System.Windows.SizeChangedEventHandler(window_SizeChanged);
                this.window.ShowDialog();
            }
        }
 
        private void window_SizeChanged(object sender, System.Windows.SizeChangedEventArgs e)
        {
            var window = sender as RadWindow;
            if (window != null && e.NewSize.Width > 0)
            {
                Canvas.SetLeft(window, this.topRightPoint.X - e.NewSize.Width);
                Canvas.SetTop(window, this.topRightPoint.Y);
            }
        }
 
        
 
        private void Search_Click(object sender, RoutedEventArgs e)
        {
            string query = this.Txtbx_Search.Text;
            //radMap.Center =
 
 
        }
 
 
 
 
    }
}

I need to show the search point by adding one pinpoint. do you have some custom search example for openstreetmap?

Please provide some sample code for the openstreetmap.



Thanks,
Vivek.
Andrey
Telerik team
 answered on 20 Jul 2011
1 answer
567 views
Hi, I get the following exception when opening RadWindow.Alert:

System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
   at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
   at System.Windows.Media.MediaContext.CompleteRender()
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Please note that it happens only for some of the computers (doesn't happen to me).
Thx,
Oren
Boyan
Telerik team
 answered on 20 Jul 2011
4 answers
263 views
Good evening,

I'm keep getting the following error whilst trying to use the WPF RadRichTextBox in the "Word Processing" configuration in VS2010 VB.net 4. It's the latest WPF tools (version 0419).
I dragged and dropped the RichTextBox into my designer window grid and then followed the step by step process. All works and looks fine until I run the app in debug mode.

FileNotFoundException was unhandled
Could not load file or assembly 'System.ComponentModel.Composition, Version=2009.7.8.0, Culture=neutral, PublicKeyToken=13e5ffd4e05db186' or one of its dependencies. The system cannot find the file specified.


System.Windows.Data Error: 40 : BindingExpression path error: 'CaptionButtonsReservedWidth' property not found on 'object' ''MainWindow' (Name='')'. BindingExpression:Path=CaptionButtonsReservedWidth; DataItem='MainWindow' (Name=''); target element is 'ContentControl' (Name='windowButtonPlaceHolder'); target property is 'Width' (type 'Double')

A first chance exception of type 'System.IO.FileNotFoundException' occurred in Telerik.Windows.Documents.dll

 

When the app runs a dialog window opens trying to find a RadDictionary.cs file.

I have uninstalled and re-installed the Telerik WPF tools and it hasn't solved the problem.

It did originally work but now for some reason it doesn't anymore.

Thank you for your time,

Rob

Iva Toteva
Telerik team
 answered on 20 Jul 2011
1 answer
281 views
Short question. How can I intercept the save command, i.e. not show the save dialog, but write the image into a database? I tried the ImageToolViewModel, but in there are only tools defined... no save button.

Edit: Found the ImageEditorRoutedCommands.Save
is there a (telerik) best practice to override the command?

Another Edit: Ok there's myImageEditorUI.ImageEditor.CommandBindings ... where I can add a command binding to the save command and set handled = true ... however, ImageEditor seems to be (always) null, even after an image has been loaded.

Thanks for your advice!
Ivailo Karamanolev
Telerik team
 answered on 20 Jul 2011
2 answers
205 views
Hello telerik team

I have a question:
I am using your RadGridView with a RadDataPager. I am wondering if vertical scolling is still possible if the data is paged? The problem occurs when i am resizing the window ... The size of the RadGridView is kind of fixed now.

Can you help me solving this issue?

Here my code:

<telerik:RadGridView x:Name="DataGrid"
                         ItemsSource="{Binding PagedSource, ElementName=radDataPager}"
                         SelectedItem="{Binding MandantOverviewSelected}"
                         AutoGenerateColumns="False"
                         GridLinesVisibility="None"
                         CanUserDeleteRows="False"
                         CanUserInsertRows="False"
                         IsReadOnly="True"
                         CanUserSortColumns="True"
                         ShowGroupPanel="True"
                         AlternationCount="2"
                         ShowColumnHeaders="True"
                         RowIndicatorVisibility="Collapsed"
                         CanUserFreezeColumns="False"
                         FontSize="11"
                         VerticalAlignment="Stretch">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding MandantNummer}" Header="{x:Static LocalResources:ResSystemKonfigurationMandanten.Mandanten_ColumnTitle_MandantNummer}" DataType="{x:Type System:String}" Width="25*"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Bezeichnung}" Header="{x:Static LocalResources:ResSystemKonfigurationMandanten.Mandanten_ColumnTitle_Bezeichnung}" DataType="{x:Type System:String}" Width="25*" />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Typ}" Header="{x:Static LocalResources:ResSystemKonfigurationMandanten.Mandanten_ColumnTitle_Typ}" DataType="{x:Type System:String}" Width="25*" />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding DefaultspracheText}" Header="{x:Static LocalResources:ResSystemKonfigurationMandanten.Mandanten_ColumnTitle_Defaultsprache}" DataType="{x:Type System:String}" Width="25*" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
<telerikGrid:RadDataPager x:Name="radDataPager"
                         PageSize="10"
                         IsTotalItemCountFixed="True"
                          DisplayMode="FirstLastPreviousNextNumeric"
                         Source="{Binding MandantOverviewList}"/>
    </StackPanel>

Florian
Top achievements
Rank 1
 answered on 20 Jul 2011
1 answer
103 views
How are All Day appointments going to be displayed in the Q2 2011 release.  I've read that All Day appointments were implemented, but I don't see anything about it in the ScheduleView documentation.
Miroslav Nedyalkov
Telerik team
 answered on 20 Jul 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?