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.
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>
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?
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}"
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"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
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!
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
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