Hi,
is use a RadDataForm (set telerik:StyleManager.Themes="Windows8Touch") and a DataTemplate like this
<
DataTemplate
x:Key
=
"MyTemplate"
>
<
GroupBox
Margin
=
"10"
>
<
GroupBox.HeaderTemplate
>
<
DataTemplate
>
<
Border
Background
=
"LawnGreen"
CornerRadius
=
"5,5,0,0"
>
<
TextBlock
Text
=
"Kunde"
Margin
=
"5"
Width
=
"100"
/>
</
Border
>
</
DataTemplate
>
</
GroupBox.HeaderTemplate
>
<
Border
Margin
=
"10"
ScrollViewer.VerticalScrollBarVisibility
=
"Auto"
>
<
Grid
x:Name
=
"ReadOnlyGrid"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"40"
/>
<
ColumnDefinition
Width
=
"300"
/>
<
ColumnDefinition
Width
=
"50"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adressenr.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Identnummer, Mode=TwoWay}"
Padding
=
"0"
Name
=
"IdentnummerText"
Grid.Row
=
"0"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
IsReadOnly
=
"True"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"0"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/adresseninfo.png"
Height
=
"20"
Margin
=
"10,0,5,0"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Name, Mode=TwoWay}"
Padding
=
"0"
Name
=
"NameText"
Grid.Row
=
"1"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
FontWeight
=
"SemiBold"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Ans, Mode=TwoWay}"
Padding
=
"0"
Name
=
"AnschriftText"
Grid.Row
=
"2"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
MaxWidth
=
"400"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Str, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StrasseText"
Grid.Row
=
"3"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
Margin
=
"5"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
MaxWidth
=
"400"
/>
<
StackPanel
Grid.Row
=
"4"
Grid.Column
=
"1"
Orientation
=
"Horizontal"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Stretch"
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Plz, Mode=TwoWay}"
Width
=
"70"
Padding
=
"0"
Name
=
"PlzText"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Nort, Mode=TwoWay}"
Padding
=
"0"
Name
=
"OrtText"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"10,5,5,5"
/>
</
StackPanel
>
<
telerik:DataFormDataField
Label
=
""
DataMemberBinding
=
"{Binding Staat, Mode=TwoWay}"
Padding
=
"0"
Name
=
"StaatText"
Grid.Row
=
"5"
Grid.Column
=
"1"
Height
=
"Auto"
FontSize
=
"10"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"0"
Source
=
"/flexCRM_Adresssen;component/Style/Images/telefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Tele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"TelefonText"
Grid.Row
=
"0"
Grid.Column
=
"3"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Stretch"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
MaxWidth
=
"400"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"1"
Source
=
"/flexCRM_Adresssen;component/Style/Images/mobiltelefon.png"
Height
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Mtele, Mode=TwoWay}"
Padding
=
"0"
Name
=
"MobilText"
Grid.Row
=
"1"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"2"
Source
=
"/flexCRM_Adresssen;component/Style/Images/email.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Email, Mode=TwoWay}"
Padding
=
"0"
Name
=
"EmailText"
Grid.Row
=
"2"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Image
Grid.Column
=
"2"
Grid.Row
=
"3"
Source
=
"/flexCRM_Adresssen;component/Style/Images/www.png"
Width
=
"20"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Urlt, Mode=TwoWay}"
Padding
=
"0"
Name
=
"UrlText"
Grid.Row
=
"3"
Grid.Column
=
"3"
MaxWidth
=
"400"
Height
=
"Auto"
FontSize
=
"12"
HorizontalAlignment
=
"Left"
HorizontalContentAlignment
=
"Left"
VerticalContentAlignment
=
"Stretch"
Margin
=
"5"
/>
<
Button
Grid.Column
=
"2"
Grid.Row
=
"4"
HorizontalContentAlignment
=
"Left"
Padding
=
"0"
Margin
=
"5"
Width
=
"40"
HorizontalAlignment
=
"Left"
BorderBrush
=
"{x:Null}"
BorderThickness
=
"0"
>
<
Image
Source
=
"/flexCRM_Adresssen;component/Style/Images/googlemaps.png"
Stretch
=
"Uniform"
/>
</
Button
>
</
Grid
>
</
Border
>
</
GroupBox
>
</
DataTemplate
>
works fine. But i habe two Problems!
1) If i set width of da DataFormDataField, it's not possible to get the Contet HorizontalAligement left. This just works if i delete the width property.
2) Is it possible to set the height of a DataFormField. If i do so, the content is not shown any more. I set the FontSize = "6" too, but without any success.
Thanks
Regards
Rene
Is it possible to have 1 tooltip for the SelectionStart 'gripper' of the slider, and an other tooltip for the SelectionEnd 'gripper'?
Hi!
I'm using openstreetmap as provider and I am currently showing a map of Europe with map items for every customer.
Now I want to provide the functionality, that the user can choose to view only a single country, for example just germany.
My current solution is, that on button click I center my location on germany and choose a zoom level to see the whole country. Furthermore I don't show the customer Items of the other countries.
But I'm not happy with that solution. Is it possible to just show the german map and hide all the other countries?
Thanks in advance
Erich
hello to all, a newbie question.
i want to create a ribbon control similar to office.
i can't start the application and it's crashes all the time, there is no additional code behind yet.
when i run the software i getting error:
Exception thrown: 'System.Windows.Markup.XamlParseException' in PresentationFramework.dll
Additional information: The invocation of the constructor on type 'Telerik.Windows.Controls.RibbonView.Primitives.RadRibbonApplicationDropDownButton' that matches the specified binding constraints threw an exception.
the code:
<Window x:Class="Xcalibur2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Xcalibur2"
mc:Ignorable="d"
Title="MainWindow" Height="800" Width="1280">
<Grid>
<Grid.Background>
<ImageBrush Stretch="Fill" ImageSource="../graphic/background/background.jpg" AlignmentY="Top" AlignmentX="Center"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="5*"/>
<RowDefinition Height="0.3*"/>
</Grid.RowDefinitions>
<!-- ribbon container -->
<telerik:RadRibbonView>
<telerik:RadRibbonTab Header="test">
<telerik:RadRibbonGroup Header="group1">
<telerik:RadRibbonRadioButton Name="radBtn1" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn2" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn3" Text="Button3" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="group2">
<telerik:RadRibbonRadioButton Name="radBtn4" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn5" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn6" Text="Button3" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="group3">
<telerik:RadRibbonRadioButton Name="radBtn7" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn8" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn9" Text="Button3" />
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
<telerik:RadRibbonTab Header="Test 2">
<telerik:RadRibbonGroup Header="group1">
<telerik:RadRibbonRadioButton Name="radBtn21" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn22" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn23" Text="Button3" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="group2">
<telerik:RadRibbonRadioButton Name="radBtn24" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn25" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn26" Text="Button3" />
</telerik:RadRibbonGroup>
<telerik:RadRibbonGroup Header="group3">
<telerik:RadRibbonRadioButton Name="radBtn27" Text="Button1" />
<telerik:RadRibbonRadioButton Name="radBtn28" Text="Button2" />
<telerik:RadRibbonRadioButton Name="radBtn29" Text="Button3" />
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
</telerik:RadRibbonView>
<!-- info gauge -->
<Grid Grid.Row="1" Name="gridInfo">
</Grid>
<!-- data container -->
<Grid Grid.Row="2" Name="dataContainer">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
</Grid>
<!-- status bar -->
<Grid Name="StatusBar">
</Grid>
</Grid>
</Window>
​
​
Some of the controls in the WPF demo application doesn't run. The page just shows "Downloading examples" and is stuck forever. I had seen it in BusyIndicator and Menu. How could these be addressed.
I am using radscheduleView and i am adding a day with multiple resources.
In the attached image i have 2 columns one for each combination of resources. I need to display the number of appointments there are for each day and i am able to do.
the first column shows the right number (4) but the second column also displays 4 and it should display 0
i am using mvvm and i have a view model data bin to the RadSchedulView and there is a property on this view model that is data bind to group header template
<TextBlock Margin="4,0,0,0" Text="{Binding DataContext.NumberOfAppointments, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadScheduleView}}"/>
What i want to do is have a different value for each column. I guess i can use converter and return the value and some how keep track of the column being added.
but that will not work if user adds or delete an appointment, i need some way to bind the header to a property and then raise the property changed event.
Thanks
Vikas
After last update the RibbonWindow can not correctly displayed.
If the RibbonWindow property WindowState="Maximized" the window was not correctly displayed. The left boarder is not complete visible on screen and on the right side i see a pice from the desktop.
When the user changed the windowsize, the RibbonWindow displayed like the attached example.