Hello. I have this code.
<telerik:RadDocking Grid.Column="1">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup prism:RegionManager.RegionName="{x:Static constants:RegionNames.WorkspaceRegion}">
<telerik:RadDocumentPane Title="Основная" CanUserClose="False" CanFloat="False"/>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="DockedRight" telerik:DockingPanel.InitialSize="200,200">
<telerik:RadPaneGroup>
<telerik:RadPane Header="Настройки" CanDockInDocumentHost="False" CanUserClose="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
I need to disable RadDocumentPane docking in other groups (only in Document host as in Visual Studio for example). How can I do it?
Thanks.
UPDATE. Sorry I just find answer and understand how it works.
<
telerik:RadTabControl
>
<
telerik:RadTabItem
Visibility
=
"{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab1Visible}"
>
<
telerik:RadTabItem.Header
>
<
TextBlock
>
<
TextBlock.Text
>
<
Binding
Path
=
"Tab1"
/>
</
TextBlock.Text
>
</
TextBlock
>
</
telerik:RadTabItem.Header
>
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Visibility
=
"{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab2Visible}"
>
<
telerik:RadTabItem.Header
>
<
TextBlock
>
<
TextBlock.Text
>
<
Binding
Path
=
"Tab2"
/>
</
TextBlock.Text
>
</
TextBlock
>
</
telerik:RadTabItem.Header
>
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Visibility
=
"{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab3Visible}"
>
<
telerik:RadTabItem.Header
>
<
TextBlock
>
<
TextBlock.Text
>
<
Binding
Path
=
"Tab3"
/>
</
TextBlock.Text
>
</
TextBlock
>
</
telerik:RadTabItem.Header
>
</
telerik:RadTabItem
>
<
telerik:RadTabItem
Visibility
=
"{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab4Visible}"
>
<
telerik:RadTabItem.Header
>
<
TextBlock
>
<
TextBlock.Text
>
<
Binding
Path
=
"Tab4"
/>
</
TextBlock.Text
>
</
TextBlock
>
</
telerik:RadTabItem.Header
>
</
telerik:RadTabItem
>
</
telerik:RadTabControl
>
<telerik:RadGridView x:Name="gv1"
Grid.Row="1"
Margin="5"
AlternationCount="2"
AutoGenerateColumns="False"
FontSize="{Binding Source={x:Static local:MySettings.Default},
Path=FontSize,
Mode=OneWay}"
IsFilteringAllowed="False"
SelectionUnit="FullRow"
ShowGroupPanel="False"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding opc_id}"
Header="opc_id"
IsReadOnly="False" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding ip_address}"
Header="ip_address"
IsReadOnly="False" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding hmi_user}"
Header="hmi_user"
IsReadOnly="False" />
<telerik:GridViewDataColumn DataMemberBinding="{Binding description}"
Header="description"
IsReadOnly="False" />
<telerik:GridViewComboBoxColumn DataMemberBinding="{Binding entry_area}"
DisplayMemberPath="description"
Header="entry_area"
IsReadOnly="False"
SelectedValueMemberPath="Id"
UniqueName="entry_area" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>"
VB.NET CODE:
Private Sub gv1_RowEditEnded(sender As Object, e As Telerik.Windows.Controls.GridViewRowEditEndedEventArgs) Handles gv1.RowEditEnded
If e.EditAction = GridViewEditAction.Cancel Then
Exit Sub
End If
If e.EditOperationType = GridViewEditOperationType.Insert Then
'Add the new entry to the data base.
Dim opc As New OPC_Profile With {.opc_id = TryCast(e.Row.Cells(0).Content, TextBlock).Text, _
.ip_address = TryCast(e.Row.Cells(1).Content, TextBlock).Text, _
.hmi_user = TryCast(e.Row.Cells(2).Content, TextBlock).Text, _
.description = TryCast(e.Row.Cells(3).Content, TextBlock).Text, _
.entry_area = TryCast(e.Row.Cells(4).Content, LookupElement).ComboBox.Text}
End If
Hello.
I have some custom control (inherits from Control class) and I need to style it as RadWindow (It's need for Mdi window in canvas control). How can I style the control? And how can I save changing theme function on it? Maybe I can use telerik brushes?
Thanks.