Telerik Forums
UI for WPF Forum
9 answers
980 views
I'm working with my first RadListBox in WPF. Can it have headers? If so, how is that done?
Kalin
Telerik team
 answered on 22 Dec 2015
11 answers
653 views

Greetings,

I'm doing some experimentation trying to get Catel MVVM framework to work with Raddocking. I'm inheriting from DockingPanesFactory and modifying the RadPane CreatePaneForItem method as shown below:

01.protected override RadPane CreatePaneForItem(object item)
02.        {
03.            Argument.IsNotNull("item", item);
04. 
05.            var viewModel = item as DockViewModelBase;
06.            Type viewModelType = viewModel.GetType();
07. 
08.            GetImpelementedInterface(viewModelType);
09.             
10.            Log.Debug("'{0}' is not null. Constructing pane", (object)viewModel.GetType().Name);
11. 
12.            var pane = (_isImplentingIToolPane) ? new RadPane() : new RadDocumentPane();
13.             
14.            Log.Debug("Constructing instance of view for the pane using injection of data context");
15. 
16.            Type view = _viewLocator.ResolveView(viewModelType);
17. 
18.            pane.DataContext = viewModel;
19.            pane.Content = view;
20.            pane.Header = viewModel.Header;
21.            //pane.IsActive = viewModel.IsActive;
22.            //pane.CanFloat = viewModel.CanFloat;
23.             
24.            Log.Debug("Pane: {0} - DataContext: {1} - View: {2}", pane.Header,pane.DataContext.GetType().Name,view.Name);
25. 
26.            return pane;
27.            //return base.CreatePaneForItem(item);
28.        }

When I check on pane.Content and pane.DataContext I could see that the view model is contained in the DataContext and the view is contained in the Content property as well. However, it's looking like there is an error in binding as I get this message:

1.System.Windows.Data Warning: 4 : Cannot find source for binding with reference 'ElementName=DropDownButtonElement'. BindingExpression:Path=IsChecked; DataItem=null; target element is 'DropDownMenu' (Name='DropDownMenuElement'); target property is 'IsOpen' (type 'Boolean')

 The pane displays fine but without any content. I only get name space of the view inside the pane.

 

Michele
Top achievements
Rank 2
 answered on 21 Dec 2015
5 answers
584 views

I am using the following listbox to manage visibility and order of the columns in my grid view. It works great for visibility (of course). If I drag a column in the listbox it reorders the grid columns fine. But if I reorder the grid columns in the grid it does not update the listbox. I am willing to disable column ordering in the grid view (and only reorder columns using the listbox) if I have to but would prefer not. I assume I can disable column reorder in the gridview anyway, still looking into it...

 Is there a trick I am missing to get the listbox to reorder when I update the column order from the gridview?

 

                <telerik:RadListBox x:Name="ColumnSelector" Margin="3" ItemContainerStyle="{StaticResource DraggableListBoxItem}" 
                                    ItemsSource="{Binding Columns,ElementName=GOOSEGrid}">
                    <telerik:RadListBox.DragDropBehavior>
                        <telerik:ListBoxDragDropBehavior />
                    </telerik:RadListBox.DragDropBehavior>
                    <telerik:RadListBox.DragVisualProvider>
                        <telerik:ScreenshotDragVisualProvider />
                    </telerik:RadListBox.DragVisualProvider>
                    <telerik:RadListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox Content="{Binding Header}" IsChecked="{Binding IsVisible}"/>
                        </DataTemplate>
                    </telerik:RadListBox.ItemTemplate>
                </telerik:RadListBox>

Stefan
Telerik team
 answered on 21 Dec 2015
3 answers
134 views

 Hi,

I have marker point that updates it's position periodically on the map. If i wanted to draw a traceline on the map to keep track of the path that the marker point has moved, what would be the best way of doing it without slowing down the rendering of the details on the map?

 

Martin Ivanov
Telerik team
 answered on 21 Dec 2015
1 answer
141 views

 I have template:

 <telerik:GridViewDataColumn.GroupFooterTemplate>
                                <DataTemplate>
                                    <StackPanel Orientation="Vertical" Margin="0,10">
                                        <TextBlock Margin="0,0,0,2"> 
                                            <Hyperlink Command="{Binding SellingCatalog.DailyTotalCommand, Source={StaticResource Locator}}"  CommandParameter="{Binding Key}" >
                                               Daily Total
                                                </Hyperlink>
                                        </TextBlock>
                                    </StackPanel>
                                </DataTemplate>
                            </telerik:GridViewDataColumn.GroupFooterTemplate>

 

How can I send group key to CommandParameter
Like that: CommandParameter="{Binding Key}" 

Stefan Nenchev
Telerik team
 answered on 21 Dec 2015
3 answers
204 views

Hi,

 For my map display, I am suppose to show a custom image that represents a 15m x 10m area from a geo point.

 

<Window x:Class="telerikMapSample.MainWindow"
        Title="MainWindow" HorizontalAlignment="Center" VerticalAlignment="Center" Height="564.851" Width="805.313">
    <Grid>
        <Grid x:Name="LayoutRoot" Width="784" Height="484">
            <Grid.RowDefinitions>
                <RowDefinition Height="450"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
 
            <telerik:RadMap x:Name="RadMap1" Grid.Row="0"
                        ZoomLevel="24"
                        MinZoomLevel="24"
                        MaxZoomLevel="24"
                        
                        Center="1.352083, 103.819836"
                        NavigationVisibility="Collapsed"
                        ZoomBarVisibility="Collapsed"
                        CommandBarVisibility="Collapsed"
                        MiniMapExpanderVisibility="Collapsed"
                             
                        MouseMove="RadMap1_MouseMove">
                <telerik:RadMap.Provider>
                    <telerik:UriImageProvider GeoBounds="1.352083, 103.819836, 0.0001, 0.00015" Uri="/telerikMapSample;component/Resources/osm_12.png" />
                </telerik:RadMap.Provider>
            </telerik:RadMap>
                 
            <Grid x:Name="Row2" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Label Grid.Column="0" FontSize="20">Latitiude: </Label>
                <Label Grid.Column="2" FontSize="20" >Longitude: </Label>
                <TextBlock x:Name="LatValue" FontSize="20" Grid.Column="1"/>
                <TextBlock x:Name="LongValue" FontSize="20" Grid.Column="3"/>
            </Grid>
        </Grid>
    </Grid>
</Window>

The problem now that I am facing is that after measuring the latitude and longitude at each end of the boundary, I am getting

around 0.00004deg and 0.00007deg respectively instead of the 0.00001deg and 0.00015deg. How can I fix this accuracy problem?

I appreciate the technical support!

Martin Ivanov
Telerik team
 answered on 21 Dec 2015
1 answer
327 views

Hi,

We are rebuilding our application and using implicit styling with the Windows 8 theme. We have a custom font we'd like to use and wish to increase the font size of all controls (Telerik and the default .NET controls). I know we can use the following in code-behind to accomplish this:

Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXS += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeS += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSize += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontSizeXXXL += 6;            Telerik.Windows.Controls.Windows8Palette.Palette.FontFamily = new FontFamily("CustomFontName");
 

But this obviously does not apply the font and font size during design-time, which makes it hard to design the UI because the size increases when the application is ran. Is there a way we can set the font and font size in XAML, like in a ResourceDictionary, so that the controls will accept the changes during design-time?

 Thanks for the help,

Brian Moore

Masha
Telerik team
 answered on 21 Dec 2015
4 answers
62 views
I have a ScheduleView with DayStartTime set to 09:00, and DayEndTime set to 16:00. I want to allow the user to drag an appointment partially beyond the day boundaries. 

If I have an appointment (with a duration of, say two hours) that I drag near the DayEndTime, things work as expected. I can drag&drop it, for example, in the 15:30 slot, and there is an arrow indicating that the appointment extends beyond 16:00. This is the behavior I want.

However, if I drag the appointment near the DayStartTime, the drag cue disappears. At that moment, if I drop the appointment, then I "lose" it . Peeking into the appointment collection, I can see that it has been moved to the first slot of the day, that is, assigned start time 00:00, and end time 02:00.

This happens with the default DragDropBehavior.

Kalin
Telerik team
 answered on 21 Dec 2015
1 answer
98 views

I want to put a self-erected web map server as a tiled source.

I want to get map through Http post map from WMS.

How do I implement Tiled MapSource to achieve my goal.

 

Any help, preferably with sample, is appreciated!

 

Standy

Petar Mladenov
Telerik team
 answered on 21 Dec 2015
10 answers
349 views
Hi, 

I'm programatically merging several RadDocuments to generate a report. 

Is there a way to programatically insert a table of contents (as what is done with the menu in the examples) ? 

Thanks, 

Axelle
Boby
Telerik team
 answered on 21 Dec 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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?