Telerik Forums
UI for WPF Forum
2 answers
245 views

Hello. I downloaded Shell demo application.

https://github.com/telerik/xaml-sdk/tree/master/Docking

(xaml-sdk/Docking/ShellPrism)

After I updated all telerik references I run this demo but I receive empty window.(The view doesn't appears in the ribbon)

Is anything wrong with this example?

Vladi
Telerik team
 answered on 15 Apr 2015
4 answers
159 views

Hi. I have question : When i change selected item the animation begins with the color spesified in Them. And it's not comfortable that my screen is always white in "Windows8Touch" them for example. How can i change color while transiting ?

 

<telerik:RadTileView
            x:Name="RadTileViewMain"
            HorizontalAlignment="Stretch"  
            VerticalAlignment="Stretch"
            Margin="5"
            TileStateChangeTrigger="SingleClick"  
            telerik:StyleManager.Theme="Windows8Touch" Background="{Binding UISettings.BackColorBrush, NotifyOnTargetUpdated=True}" IsAutoScrollingEnabled="True" MinimizedColumnWidth="150" MinimizedRowHeight="125" MaximizeMode="One" PreservePositionWhenMaximized="True" ReorderingDuration="0:0:0.2" ResizingDuration="0:0:0.2" IsVirtualizing="True"
            >
            <telerik:RadFluidContentControl  telerik:StyleManager.Theme="Windows8Touch" Background="{Binding UISettings.BackColorBrush, NotifyOnTargetUpdated=True}" MouseDown="RadFluidContentControl_MouseDown" TransitionDuration="0:0:0.4" ScrollViewer.CanContentScroll="True" SnapsToDevicePixels="True">
                <telerik:RadFluidContentControl.Content>
                    <Grid Background="{Binding UISettings.BackColorBrush, NotifyOnTargetUpdated=True}" Cursor="Hand">
                    </Grid>
                </telerik:RadFluidContentControl.Content>
                <telerik:RadFluidContentControl.SmallContent  >
                    <Grid Background="{Binding UISettings.BackColorBrush, NotifyOnTargetUpdated=True}" Cursor="Hand">
                        <StackPanel Orientation="Vertical" >
                            <Image Height="30"
                                Source="{Binding UISettings.ThemType, ConverterParameter=sms-settings.png, Converter={StaticResource BtnConverter}, NotifyOnSourceUpdated=True}"
                                HorizontalAlignment="Stretch" VerticalAlignment="Stretch"   />
                            <Label Foreground="{Binding UISettings.ForeColorBrush, NotifyOnTargetUpdated=True}" Content="{Binding Source={StaticResource Localization_WorkMode}}" x:Name="label1"  VerticalAlignment="Center"   HorizontalAlignment="Center" Margin="5,0,0,0" FontSize="16"  Tag="0"  />

                        </StackPanel>
                    </Grid>
                </telerik:RadFluidContentControl.SmallContent>
                <telerik:RadFluidContentControl.LargeContent>
                    <Grid Background="{Binding UISettings.BackColorBrush, NotifyOnTargetUpdated=True}" >
                        <Label x:Name="ModeSettings"/>
                    </Grid>
                </telerik:RadFluidContentControl.LargeContent>
            </telerik:RadFluidContentControl>

Pavel R. Pavlov
Telerik team
 answered on 15 Apr 2015
4 answers
196 views

How to limit a TextBox that belongs to DataFormDataField to XXX number of characters?

Thanks,

<telerik:DataFormDataField  Grid.Row="1" Label="Name" DataMemberBinding="{Binding Name, Mode=TwoWay}" Description="Enter Name" />

Dimitrina
Telerik team
 answered on 14 Apr 2015
1 answer
125 views

Hi guys, our centralized log management system reported the following unhandled exception on a customer's PC.

It seems something related to the OnMouseLeftButtonUp event on RadToggleButton control, but I'm not able to reproduce it on my machine.

Maybe you can help me?

The machine is running Windows 7 SP1 32-bit (Microsoft Windows NT 6.1.7601 Service Pack 1).

Here is the full stack trace of the error: 

System.NullReferenceException: La reference d'objet n'est pas definie e une instance d'un objet.
 Telerik.Windows.Controls.Docking.PaneGroupBase.ShowContextMenu(PaneGroupBase paneGroup, ExecutedRoutedEventArgs e)
 Telerik.Windows.Controls.Docking.PaneGroupBase.OnContextMenuCommandInvoke(Object sender, ExecutedRoutedEventArgs e)
 System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
 System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)
 System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
 System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)
 System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)
 System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)
 System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)
 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)
 System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)
 MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
 System.Windows.Controls.Primitives.ButtonBase.OnClick()
 Telerik.Windows.Controls.RadToggleButton.OnClick()
 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
 Telerik.Windows.Controls.RadToggleButton.OnMouseLeftButtonUp(MouseButtonEventArgs e)
 System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
 System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
 System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
 System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
 System.Windows.Input.InputManager.ProcessStagingArea()
 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler).

Geri
Telerik team
 answered on 14 Apr 2015
1 answer
95 views

 I've been using samples from the SDK along with this post   http://www.telerik.com/forums/accessing-the-dbf-file  but have failed to do what I'm hoping should be simple ;-)

 I need to show a map of the U.S. with the states as shapes, color coded to a value that I set dynamically.   E.g. population, average income, total number of hospital beds, etc.  The values (1 for each state) are provided by my underlying model based on user selections on the screen.    E.g.  User sees a combo box listing the various variables to map, picks one, and the map colors the states based on 1 value per state.  

 Looking at the examples, it seems I need 2 files .. 

  • A "shp" file that contains the actual shape definition.  I downloaded U.S. state shape file from http://www.arcgis.com/home/item.html?id=f7f805eb65eb4ab787a0a3e1116ca7e5
  • A "dbf" file that contains some data that is magically keyed to the items in the shp file. The corresponding dbf file from the above site has only basic data such as Name, FIPS code, etc. 

Since the values that will drive the color of the shapes can only be determines at run-time, I'd like to just have a call-back, or some method, to provide a value to each of the 50 state shapes.   

I thought the Telerik Forum's post (above)  above link would solve my problem, but I get a compile error on a couple lines, and I'm wondering if this is a Silverlight vs WPF issue, or a version issue or a simple case of user error.  on the following 2 statements.  this.informationLayer.Reader does not have a "Source" or a "DataSource" property.   (also please see attached screenshot) 

this.informationLayer.Reader.Source = new Uri(string.Format(ShapeRelativeUriFormat, "world.shp"), UriKind.Relative);
this.informationLayer.Reader.DataSource = new Uri(string.Format(ShapeRelativeUriFormat, "world.dbf"), UriKind.Relative);

My Xaml is pasted below.   I've tried to  attached the project files in a zip file, but it is over 2Meg.  It is actually the sample from the SDK browser with a few lines of code as suggested by the forum link above.... 

Thanks for your advice. 

 

<Window x:Class="InformationLayerColorizerModeCount.MainWindow"
        Title="MainWindow" Height="800" Width="1200">
    <Grid>
        <telerik:RadMap x:Name="radMap" InitializeCompleted="radMap_InitializeCompleted">
            <telerik:RadMap.Provider>
                <telerik:EmptyProvider />
            </telerik:RadMap.Provider>
            <telerik:InformationLayer x:Name="informationLayer">
                <telerik:InformationLayer.Reader>
                    <telerik:MapShapeReader DataSource="/InformationLayerColorizerModeCount;component/Resources/world.dbf"
                                            Source="/InformationLayerColorizerModeCount;component/Resources/world.shp" />
                </telerik:InformationLayer.Reader>
                <telerik:InformationLayer.Colorizer>
                    <telerik:ColorMeasureScale ExtendedPropertyName="SQKM" Mode="Count" TickMarkCount="7">
                        <telerik:ColorMeasureScale.ShapeFillCollection>
                            <telerik:MapShapeFill Fill="#FFFAB935" Stroke="White" StrokeThickness="2" />
                            <telerik:MapShapeFill Fill="#FFC9441C" Stroke="White" StrokeThickness="2" />
                        </telerik:ColorMeasureScale.ShapeFillCollection>
                    </telerik:ColorMeasureScale>
                </telerik:InformationLayer.Colorizer>
            </telerik:InformationLayer>
        </telerik:RadMap>
    </Grid>
</Window>

​

 

​

​

​

​

​

Petar Mladenov
Telerik team
 answered on 14 Apr 2015
4 answers
124 views

Hello,

Does anyone know if it is possible to combine track changes the way Microsoft Word does?

Thanks!

Sue

Tanya
Telerik team
 answered on 14 Apr 2015
7 answers
299 views
I have a UI where I have use a RadListBox who's items are also RadListBoxes.  Thus nested RadListBoxes.

The focus behavior seems broken in this arrangement and does not match ListBox (or any sort of expected) focus behavior.

I've attached a project that illustrates the differences.  Compile and run the project and you will see a window with two columns.  On the left is the arrangement I describe constructed from ListBoxes and the right from RadListBoxes.  Try clicking to select items from the inner list boxes and the outer list box items on both and observe the differences in behavior.

I have hooked up LostFocus and GotFocus events to the outter listbox items to show how the RadListBox (unlike the ListBox) does not properly cause a LostFocus when you click on an outter list box item once an innter one is selected.  This also exhibits the "difficulty" in selecting these elements when the RadListBox is used.

I made a repo and attached an image to make it more clear what I'm doing.

The repo project itself can be downlaoded here: https://www.dropbox.com/s/axz897egh6wkvgf/RadListBoxFocusIssue.zip?dl=0

This seems to be a bug or design deficiency which is preventing me from properly using Telerik controls.  Or am I doing something wrong?







Kalin
Telerik team
 answered on 14 Apr 2015
5 answers
280 views
Hello.

I was writing UI-test for WPF application (using NUnit
Framework and ArtOfTests), and in my test I need to click on
RadDropDownButton:

                   <telerik:RadDropDownButton x:Name="btnDrop">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadContextMenu >
                                <telerik:RadMenuItem Header="op1" Command="{StaticResource op1CommandReference}"/>
                                <telerik:RadMenuItem Header="op2" Command="{StaticResource op2CommandReference}"/>
                                <telerik:RadMenuItem Header="op3" Command="{StaticResource op3CommandReference}"/>
                            </telerik:RadContextMenu>
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>

To click on this button, I use the following code:

var button = win.Find.ByName<Telerik.WebAii.Controls.Xaml.RadDropDownButton>("btnDrop");
button.User.Click(MouseClickType.LeftClick);

The test works fine (no exception have been thrown), but RadContextMenu does not appear.
When I click on this button using mouse, I can see this menu with 3 RadMenuItem items.

How can I solve this problem?
Boyan Boev
Telerik team
 answered on 14 Apr 2015
4 answers
95 views

Hi,

 

I have a problem with RadDock.

And I managed to reproduce it in a very small sample.

To explain what's going on - I serialize a RadDock when I leave a view - and restore it later when I come back (load again) to this view.

In the real application I store the values in a database - the attached sample uses simply a string to show the behavior.
I also found a post (which may be about the same problem).

http://www.telerik.com/forums/problem-with-loading-layout#4kMNn5jNsEuXcZtbd0k4-w

But this post is pretty old (2011) and there is a statement: "We will fix this problem with loading the layout in our future releases."

So I guess my problem is something different.

To show that the solution in general works try:

Move one window to the right side of the document pane.
Click V2 (which shows View 2) - Click V1 - and see the restored pane.
Drag the window out of the Dock to see it "free floating" - again switch the views - everything works fine.

To reproduce the problem do:
Close the floating window and switch the view.
Although the code runs and "CurVM" is set to the different view nothing happens.

In simple words - store / restore fails if I have a closed floating window.

 

Regards

Manfred

 

Nasko
Telerik team
 answered on 14 Apr 2015
1 answer
65 views

Hello,

I've not tried with other themes, but this problem is new in the Q1 2015 SP1 version of the controls.

See the screen shot for an example.

Kiril Vandov
Telerik team
 answered on 14 Apr 2015
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
VirtualKeyboard
HighlightTextBlock
Security
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?