Telerik Forums
UI for WPF Forum
3 answers
139 views
I just added a style to my app (in appStyles.xaml) to hide the gridview distinct filter. The style is working but in design view of pages & windows i get the following errors:



This is what the resource declarations in the appStyles.xaml are:

 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"<br>    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"<br>    xmlns:Telerik_Windows_Controls_MaskedTextBox="clr-namespace:Telerik.Windows.Controls.MaskedTextBox;assembly=Telerik.Windows.Controls.Input"  >

Here's how i'm the style for the FilteringControl:
    <Style TargetType="{x:Type telerik:FilteringControl}" ><br>        <Setter Property="Template"><br>            <Setter.Value><br>                <ControlTemplate TargetType="{x:Type telerik:FilteringControl}"><br>                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1" Margin="{TemplateBinding Margin}"><br>                        <Border BorderBrush="White" BorderThickness="1" Background="{TemplateBinding Background}"><br>                            <Grid><br>                                <StackPanel HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" MaxWidth="350" Margin="{TemplateBinding Padding}" MinWidth="200" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"><br>                                    <StackPanel x:Name="PART_DistinctFilter" Visibility="{TemplateBinding DistinctFiltersVisibility}"><br>                                        <CheckBox x:Name="PART_SelectAllCheckBox" Visibility="Collapsed" Content="Select All" IsChecked="{Binding SelectAll, Mode=TwoWay}" Margin="0,2" telerik:LocalizationManager.ResourceKey="GridViewFilterSelectAll"><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme /><br>                                            </telerik:StyleManager.Theme><br>                                        </CheckBox><br>                                        <ListBox x:Name="PART_DistinctValuesList" ItemsSource="{Binding DistinctValues}" ScrollViewer.HorizontalScrollBarVisibility="Auto" <br>                                                     MaxHeight="100" SelectionMode="Multiple" Visibility="Collapsed" ><br>                                            <ListBox.ItemTemplate><br>                                                <DataTemplate><br>                                                    <CheckBox Content="{Binding ConvertedValue}" IsChecked="{Binding IsActive, Mode=TwoWay}" VerticalContentAlignment="Center"><br>                                                        <telerik:StyleManager.Theme><br>                                                            <telerik:MetroTheme/><br>                                                        </telerik:StyleManager.Theme><br>                                                    </CheckBox><br>                                                </DataTemplate><br>                                            </ListBox.ItemTemplate><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </ListBox><br>                                    </StackPanel><br>                                    <StackPanel Margin="0,2" Visibility="{TemplateBinding FieldFiltersVisibility}"><br>                                        <TextBlock Margin="0,2,0,0" telerik:LocalizationManager.ResourceKey="GridViewFilterShowRowsWithValueThat" Text="Show rows with value that"></TextBlock><br>                                        <telerik:RadComboBox x:Name="PART_Filter1ComboBox" ItemsSource="{Binding AvailableActions}" SelectedItem="{Binding Filter1.Operator, Mode=TwoWay}"  Margin="0,2"><br>                                            <telerik:RadComboBox.ItemTemplate><br>                                                <DataTemplate><br>                                                    <TextBlock><br>                                                       <TextBlock.Text><br>                                                        <Binding><br>                                                         <Binding.Converter><br>                                                          <telerik:FilterOperatorConverter/><br>                                                         </Binding.Converter><br>                                                        </Binding><br>                                                       </TextBlock.Text><br>                                                    </TextBlock><br>                                                </DataTemplate><br>                                            </telerik:RadComboBox.ItemTemplate><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </telerik:RadComboBox><br>                                        <ContentControl x:Name="PART_Filter1ContentControl" DataContext="{Binding Filter1}" HorizontalContentAlignment="Stretch" Margin="0,2" VerticalContentAlignment="Stretch"/><br>                                        <telerik:RadComboBox x:Name="PART_LogicalOperatorsComboBox"  ItemsSource="{Binding LogicalOperators}" SelectedItem="{Binding FieldFilterLogicalOperator, Mode=TwoWay}" Margin="0,2"><br>                                            <telerik:RadComboBox.ItemTemplate><br>                                                <DataTemplate><br>                                                    <TextBlock><br>                                                       <TextBlock.Text><br>                                                        <Binding><br>                                                         <Binding.Converter><br>                                                          <telerik:FilterCompositionLogicalOperatorConverter/><br>                                                         </Binding.Converter><br>                                                        </Binding><br>                                                       </TextBlock.Text><br>                                                    </TextBlock><br>                                                </DataTemplate><br>                                            </telerik:RadComboBox.ItemTemplate><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </telerik:RadComboBox><br>                                        <telerik:RadComboBox x:Name="PART_Filter2ComboBox" ItemsSource="{Binding AvailableActions}"  SelectedItem="{Binding Filter2.Operator, Mode=TwoWay}"  Margin="0,2"><br>                                            <telerik:RadComboBox.ItemTemplate><br>                                                <DataTemplate><br>                                                    <TextBlock><br>                                                       <TextBlock.Text><br>                                                        <Binding><br>                                                         <Binding.Converter><br>                                                          <telerik:FilterOperatorConverter/><br>                                                         </Binding.Converter><br>                                                        </Binding><br>                                                       </TextBlock.Text><br>                                                    </TextBlock><br>                                                </DataTemplate><br>                                            </telerik:RadComboBox.ItemTemplate><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </telerik:RadComboBox><br>                                        <ContentControl x:Name="PART_Filter2ContentControl" DataContext="{Binding Filter2}" HorizontalContentAlignment="Stretch" Margin="0,2" VerticalContentAlignment="Stretch"/><br>                                    </StackPanel><br>                                    <Grid><br>                                        <Grid.ColumnDefinitions><br>                                            <ColumnDefinition/><br>                                            <ColumnDefinition/><br>                                        </Grid.ColumnDefinitions><br>                                        <Button x:Name="PART_ApplyFilterButton" Content="Filter" Grid.Column="0" Height="22" Margin="0,2,2,2" telerik:LocalizationManager.ResourceKey="GridViewFilter"><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </Button><br>                                        <Button x:Name="PART_ClearFilterButton" Content="Clear Filter" Grid.Column="1" Height="22" Margin="2,2,0,2" telerik:LocalizationManager.ResourceKey="GridViewClearFilter"><br>                                            <telerik:StyleManager.Theme><br>                                                <telerik:MetroTheme/><br>                                            </telerik:StyleManager.Theme><br>                                        </Button><br>                                    </Grid><br>                                </StackPanel><br>                                <telerik:RadButton x:Name="PART_FilterCloseButton" HorizontalAlignment="Right" Height="13" Margin="{TemplateBinding Padding}" VerticalAlignment="Top" Width="13"><br>                                    <telerik:StyleManager.Theme><br>                                        <telerik:MetroTheme/><br>                                    </telerik:StyleManager.Theme><br>                                    <Path Data="M4,4L5,4 5,5 4,5z M0,4L1,4 1,5 0,5z M3,3L4,3 4,4 3,4z M1,3L2,3 2,4 1,4z M2,2L3,2 3,3 2,3z M4,0L5,0 5,1 4,1 4,2 3,2 3,0.99999994 4,0.99999994z M0,0L1,0 1,0.99999994 2,0.99999994 2,2 1,2 1,1 0,1z" Fill="Black" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Height="6" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="6"/><br>                                </telerik:RadButton><br>                            </Grid><br>                        </Border><br>                    </Border><br>                </ControlTemplate><br>            </Setter.Value><br>        </Setter><br>        <Setter Property="Background" Value="#FFE4E4E4"/><br>        <Setter Property="BorderBrush" Value="#FF848484"/><br>        <Setter Property="Padding" Value="5"/><br>        <Setter Property="Margin" Value="0,2,0,0"/><br>        <Setter Property="BorderThickness" Value="1"/><br>        <Setter Property="VerticalContentAlignment" Value="Stretch"/><br>        <Setter Property="HorizontalContentAlignment" Value="Stretch"/><br>        <Setter Property="Foreground" Value="Black"/><br>        <Setter Property="SnapsToDevicePixels" Value="True"/><br>    </Style>

Here's from a window:
<Window x:Class="RawDataView" <br>    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"<br>    Title="Raw Data View" Height="437" Width="658" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" WindowStartupLocation="CenterOwner"><br><br>    <Window.Resources><br>            <ResourceDictionary><br>                <!--Set this here due to Telerik bug, so header cell and row colors match--><br>                <Style x:Key="headerRow" TargetType="telerik:GridViewHeaderRow"><br>                    <Setter Property="Background" Value="#FFF5F5FD"/><br>                </Style><br>            <!-- Import our app styles --><br>            <ResourceDictionary.MergedDictionaries><br>                <ResourceDictionary Source="/app.Styles.xaml" /><br>            </ResourceDictionary.MergedDictionaries><br>        </ResourceDictionary><br>    </Window.Resources>

Not sure if i need to qualify the FilteringControl style with something or add another xmlns reference to the styles. Thanks

Vanya Pavlova
Telerik team
 answered on 21 Nov 2011
1 answer
94 views
Hi there,

is it possible to use a WPF MapControl in a Winforms-Application?
We have a WinForms-Application where we want to use some Map.
Or any other idea?

Best Regards
Manfred
Andrey
Telerik team
 answered on 21 Nov 2011
3 answers
138 views

Hi,


I have radcombobox which is

IsEditable="True" 
IsTextSearchEnabled="True" 
TextSearchMode="StartsWith"

 
Now when user enters some text which is not present in the list that is binded to the radcombobox and the radcombobox loses focus, i want a alert which tells users that value entered is not available and clears the text entered in the radcombobox.

Please guide.

 

Yana
Telerik team
 answered on 21 Nov 2011
5 answers
186 views
Hello,
I read many post in this forum, but still not have answer.

How to apply current telerik theme to TextBox?
So no hardcoded theme but current theme.

We have function like this:
internal static void ApplyConfiguredTheme()
       {
           switch (GetConfiguredTheme())
           {
               case ThemeEnum.Black:
                   StyleManager.ApplicationTheme = new Office_BlackTheme();
                   break;
               case ThemeEnum.Blue:
                   StyleManager.ApplicationTheme = new Office_BlueTheme();
                   break;
               case ThemeEnum.Silver:
                   StyleManager.ApplicationTheme = new Office_SilverTheme();
                   break;
               case ThemeEnum.Win7:
                   StyleManager.ApplicationTheme = new Windows7Theme();
                   break;
           }
       }

So in XAML I cant hardcode any theme.

Jaroslav Půbal
Top achievements
Rank 1
 answered on 21 Nov 2011
2 answers
145 views
I have a window that is split into two columns.  The left side contains a RadTreeView and when an item in this control is double clicked a new tab is added to a RadTabControl contained on the right side of the window.  Between them is a grid splitter control.

It seems that when a certain width range of the tabs is reached there is some interaction that causes the RadTreeView to scroll to the top of its list (usually this is the forth or firth tab opened).  I thought it was related to this post http://www.telerik.com/community/forums/wpf/treeview/radtreeview-jumps-to-top-when-resized.aspx, but it does not seem to occur when the RadTreeView is resized explicitly.  Instead my theory is that this happens when a layout pass is run where the minimum width of the RadTreeView/column is accounted for.

The behavior disappears if I move the grid splitter even slightly to the right and then back to fit the minimum width of the left column, however this does not seem to work if I do it programmatically. 

I am running the latest internal builds for wpf 4.0.
Petar Mladenov
Telerik team
 answered on 21 Nov 2011
6 answers
204 views
Hello all.

I updated to WPF Q3 today. Now, it seems that i have no more toolbox with the Telerik controls.

Steps that i already did:

  • Deleted the *.tbp files
  • Uninstalled and reinstalled ALL Telerik controls
  • 'Reset' toolbox
  • Telerik WPF toolbox configurator

Hower, no Telerik controls in my toolbox... I need urgent help on this issue!
I tried adding them manual, but it just makes a huge mess in my toolbox, and, when i restart VS, they are all gone.

Help me out please.

Andrey
Telerik team
 answered on 21 Nov 2011
1 answer
239 views
Hi,

I have a docking application and I want to resize my RadSplitContainer to have a 8.5 X 11 look because inside of it, I want to display scanned documents. When I try to do it, look at the picture what happen, it's look like to content of the RadSplitContainer is resizing but border become present...

Also, can you tell me if it's possible to block users to resize a RadPane, a RadPaneGroup or a RadSplitContainer ?

Here is the XAML:

<

 

Window x:Class="com.christiegrp.Neuron.ClientApplication.DictationForm"

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

xmlns:helper="clr-namespace:com.christiegrp.Neuron.ClientApplication;assembly=ClientHelper"

 

 

xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"

 

 

Title="DictationForm" Name="Me" WindowState="Maximized"

 

 

telerik:PersistenceManager.StorageId="DictationForm">

 

 

 

 

<!--

 

PreviewClosed="Me_PreviewClosed"

SizeToContent="False"

-->

<!--

<telerik:RadWindow.IconTemplate>

<DataTemplate>

<Image Source="Resources/DictationModuleWPF_48x48.png" Height="24" Width="24" Stretch="Fill" Margin="0 2 3 0" />

</DataTemplate>

</telerik:RadWindow.IconTemplate>

-->

 

 

<Window.Resources>

 

 

 

<ResourceDictionary>

 

 

 

<helper:LetterFormatWidth x:Key="letterFormatWidth" />

 

 

 

<ResourceDictionary.MergedDictionaries>

 

 

 

<ResourceDictionary Source="DictationForm-Fr-Res.xaml"/>

 

 

 

<ResourceDictionary Source="pack://application:,,,/Resources;component/Neuron-CustomStyles.xaml"/>

 

 

 

<ResourceDictionary Source="/Telerik.Windows.Controls.Navigation;component/Themes/GenericOfficeBlack.xaml"/>

 

 

 

</ResourceDictionary.MergedDictionaries>

 

 

 

</ResourceDictionary>

 

 

 

</Window.Resources>

 

 

 

<Grid Name="gridRoot">

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<!-- The following element is used to trigger an event allowing to replace the language resources before they are used. -->

 

 

 

<TextBlock Initialized="ReplaceLanguageResources"/>

 

 

 

<telerikRibbonBar:RadRibbonBar Name="radRibbonBar" Margin="10 10 10 0" telerik:KeyTipService.IsKeyTipsEnabled="True" MinimizeButtonVisibility="Visible" ApplicationName="Neuron" IsMinimized="True" ApplicationButtonImageSource="Resources/Neuron_32x32.png">

 

 

 

<telerikRibbonBar:RadRibbonBar.Effect>

 

 

 

<DropShadowEffect />

 

 

 

</telerikRibbonBar:RadRibbonBar.Effect>

 

 

 

<telerikRibbonBar:RadRibbonBar.ApplicationMenu>

 

 

 

<telerikRibbonBar:ApplicationMenu telerik:KeyTipService.AccessText="F">

 

 

 

<telerikRibbonBar:ApplicationMenu.Content>

 

 

 

<StackPanel Width="300">

 

 

 

<telerikRibbonBar:RadGroupHeader Content="Menu" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="1. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="2. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="3. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="4. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="5. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="6. Option..." HorizontalAlignment="Stretch" />

 

 

 

<telerikRibbonBar:RadRibbonButton Content="7. Option..." HorizontalAlignment="Stretch" />

 

 

 

</StackPanel>

 

 

 

</telerikRibbonBar:ApplicationMenu.Content>

 

 

 

<telerikRibbonBar:ApplicationMenu.FooterContent>

 

 

 

<StackPanel Height="25" Orientation="Horizontal">

 

 

 

<telerik:RadButton Width="106" Height="22" Margin="3 0" Click="radButtonQuit_Click">

 

 

 

<telerik:RadButton.Content>

 

 

 

<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="3 0 5 0">

 

 

 

<Image Width="16" Height="16" Source="Resources/Exit_32x32.png" />

 

 

 

<TextBlock Margin="4 0 0 0" VerticalAlignment="Center" Text="{StaticResource Quit}" />

 

 

 

</StackPanel>

 

 

 

</telerik:RadButton.Content>

 

 

 

</telerik:RadButton>

 

 

 

</StackPanel>

 

 

 

</telerikRibbonBar:ApplicationMenu.FooterContent>

 

 

 

<telerikRibbonBar:RadRibbonButton Text="1. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="2. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="3. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="4. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="5. Option..." />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="6. Option..." />

 

 

 

<telerikRibbonBar:Separator />

 

 

 

<telerikRibbonBar:RadRibbonButton Text="7. Option..." LargeImage="Resources/Exit_32x32.png" />

 

 

 

</telerikRibbonBar:ApplicationMenu>

 

 

 

</telerikRibbonBar:RadRibbonBar.ApplicationMenu>

 

 

 

<telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

 

 

 

<telerikRibbonBar:QuickAccessToolBar>

 

 

 

<!--

 

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Departments_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Billing_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Receivables_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Reports_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Files_32x32.png" SnapsToDevicePixels="True"/>

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Configuration_32x32.png" SnapsToDevicePixels="True"/>

-->

 

 

<telerikRibbonBar:RadRibbonButton SmallImage="Resources/Exit_32x32.png" SnapsToDevicePixels="True" Click="radButtonQuit_Click"/>

 

 

 

</telerikRibbonBar:QuickAccessToolBar>

 

 

 

</telerikRibbonBar:RadRibbonBar.QuickAccessToolBar>

 

 

 

</telerikRibbonBar:RadRibbonBar>

 

 

 

<telerik:RadDocking Grid.Row="1" Margin="10">

 

 

 

<telerik:RadDocking.Effect>

 

 

 

<DropShadowEffect />

 

 

 

</telerik:RadDocking.Effect>

 

 

 

<telerik:RadDocking.DocumentHost>

 

 

 

<telerik:RadSplitContainer Name="splitContainerRight" telerik:DockingPanel.InitialSize="{Binding ElementName=webDocuments, Path=ActualHeight, Converter={StaticResource letterFormatWidth}}" Width="{Binding ElementName=webDocuments, Path=ActualHeight, Converter={StaticResource letterFormatWidth}}">

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource ScannedDocs}" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<WebBrowser Name="webDocuments" LoadCompleted="webDocuments_LoadCompleted" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

</telerik:RadDocking.DocumentHost>

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedRight" Orientation="Vertical">

 

 

 

<telerik:RadSplitContainer InitialPosition="DockedRight" Orientation="Horizontal">

 

 

 

<!-- Controls -->

 

 

 

<telerik:RadPaneGroup Name="radPaneControls" Height="138" MinHeight="{Binding Height}" MaxHeight="{Binding Height}">

 

 

 

<telerik:RadPane Title="{StaticResource Controls}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid>

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<helper:NavigationControl Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" Name="dnDocuments" TextPrefix="{StaticResource Documents}" NavigationChangedEvent="dnDocuments_NavigationChanged" Margin="5" Buttons="All"/>

 

 

 

<helper:NavigationControl Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="3" Name="dnExams" TextPrefix="{StaticResource Exams}" NavigationChangedEvent="dnExams_NavigationChanged" Margin="5" Buttons="All"/>

 

 

 

<CheckBox Grid.Column="0" Grid.Row="2" Name="ckUrgent" Margin="5" Content="{StaticResource Urgent}" />

 

 

 

<CheckBox Grid.Column="1" Grid.Row="2" Name="ckSign" Margin="5" Content="{StaticResource Sign}" />

 

 

 

<CheckBox Grid.Column="2" Grid.Row="2" Name="ckOnHold" Margin="5" Content="{StaticResource FilmsPending}" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Audio -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Name="radPaneAudio" Height="138" MinHeight="{Binding Height}" MaxHeight="{Binding Height}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<!--<telerik:RadButton Grid.Column="2" Grid.Row="0" Grid.RowSpan="3" Content="Alain" />-->

 

 

 

<WindowsFormsHost Name="RecorderContainer" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

<!-- Panel containing visit infos -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource VisitInfos}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid Margin="5">

 

 

 

<Grid.ColumnDefinitions>

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="*" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

<ColumnDefinition Width="Auto" />

 

 

 

</Grid.ColumnDefinitions>

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="Auto" />

 

 

 

<RowDefinition Height="*" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<!-- Row #0 -->

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="0" Grid.Row="0" Name="lPatientMRN" Margin="0 2 2 2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Name="lPatientName" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="3" Grid.Row="0" Name="lGender" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="M" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="4" Grid.Row="0" Name="lPHN" Margin="2" Foreground="Green" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<Label BorderThickness="1" BorderBrush="Black" Grid.Column="5" Grid.Row="0" Grid.ColumnSpan="3" Name="lPatientAge" Foreground="Green" Margin="2 2 0 2" FontSize="14" FontWeight="Bold" Content="N/A" />

 

 

 

<!-- Row #1 -->

 

 

 

<Label Grid.Column="0" Grid.Row="1" Content="{StaticResource Date}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtVisitDate" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Margin="2" IsEnabled="False" />

 

 

 

<Label Grid.Column="3" Grid.Row="1" Content="{StaticResource Visit}" HorizontalAlignment="Right" Margin="2" />

 

 

 

<TextBox Name="txtVisitNumber" Grid.Column="4" Grid.Row="1" Grid.ColumnSpan="3" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #2 -->

 

 

 

<Label Grid.Column="0" Grid.Row="2" Content="{StaticResource Exams}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtExams" Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #3 -->

 

 

 

<Label Grid.Column="0" Grid.Row="3" Content="{StaticResource RefPhysician}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtRefPhysician" Grid.Column="1" Grid.Row="3" Grid.ColumnSpan="5" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<telerik:RadButton Grid.Column="6" Grid.Row="3" Margin="2 2 0 2" Name="btnPhone" Click="btnPhone_Click">

 

 

 

<Image Height="18" Width="18" SnapsToDevicePixels="True" Source="Resources/Phone_32x32.png" />

 

 

 

</telerik:RadButton>

 

 

 

<!-- Row #4 -->

 

 

 

<Label Grid.Column="0" Grid.Row="4" Content="{StaticResource Technician}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtTech" Grid.Column="1" Grid.Row="4" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #5 -->

 

 

 

<Label Grid.Column="0" Grid.Row="5" Content="{StaticResource Comments}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtComments" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

<!-- Row #6 -->

 

 

 

<Label Grid.Column="0" Grid.Row="6" Content="{StaticResource Note}" HorizontalAlignment="Right" Margin="0 2 2 2" />

 

 

 

<TextBox Name="txtNote" Grid.Column="1" Grid.Row="6" Grid.ColumnSpan="6" Margin="2 2 0 2" IsEnabled="False" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Old reports -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource OldReports}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<Grid Margin="5">

 

 

 

<Grid.RowDefinitions>

 

 

 

<RowDefinition Height="*" />

 

 

 

<RowDefinition Height="*" />

 

 

 

</Grid.RowDefinitions>

 

 

 

<telerik:RadGridView Name="gridHistorical" Margin="0 0 0 2" Grid.Row="0" IsSynchronizedWithCurrentItem="True" Height="Auto" Width="Auto" IsReadOnly="True" SelectionMode="Single" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False" ShowGroupPanel="False" SelectionUnit="FullRow">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Date}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Exams}" HeaderTextAlignment="Left" TextAlignment="Left" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Accession}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

<telerik:GridViewDataColumn Header="{StaticResource Status}" HeaderTextAlignment="Center" TextAlignment="Center" IsFilterable="False" />

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

<TextBox Name="rtbPreviousReport" Margin="0 2 0 0" Grid.Row="1" Text="" IsEnabled="False" />

 

 

 

</Grid>

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

<!-- Current report -->

 

 

 

<telerik:RadPaneGroup>

 

 

 

<telerik:RadPane Title="{StaticResource CurrentReport}" CanDockInDocumentHost="False" CanFloat="{Binding ElementName=Me, Path=IsDockable}" CanUserPin="{Binding ElementName=Me, Path=IsDockable}" CanUserClose="False">

 

 

 

<TextBox Name="rtbCurrentReport" Margin="5" Text="" IsReadOnly="False" />

 

 

 

</telerik:RadPane>

 

 

 

</telerik:RadPaneGroup>

 

 

 

</telerik:RadSplitContainer>

 

 

 

</telerik:RadDocking>

 

 

 

</Grid>

 

 

 

</Window>

 

Miroslav Nedyalkov
Telerik team
 answered on 21 Nov 2011
0 answers
120 views
Hello,
Could anybody post me a demo about RadTreeListView binding DataRow in code behind?
Thanks!

Best Wishes,
Sky
Yu
Top achievements
Rank 1
 asked on 21 Nov 2011
7 answers
145 views
Hi,

When I have non-contiguous values for X axis, the chart fills in the gaps.

ie: 2011.50, 2011.51, 2011.52, 2012,01, 2012.02...

The Chart adds values for : 2011.53, 2011.54, 2011.55, etc...

Is it possible to tell the Chart NOT to fill those gaps ?

Thanks !

Michel

Nikolay
Telerik team
 answered on 21 Nov 2011
1 answer
195 views
I have been looking but I haven't found yet where I can change the font format (color, style, size, etc) of a font from selected text within the radrichtextbox. I wish to do this programmatically in vb.net. I know this is pretty straightforward, but can someone point me in the right direction?

If the user has the text "this is only a test" in the richtextbox, and wishes to highlight the word "only" with their mouse and change the color and font family/size to Arial 14pt, blue color by clicking button, how can I do this directly in code for the button click event?

Don't want to use any ribbon controls or font dialogs at this time, just trying to understand which classes/methods involved.


Thanks
Boby
Telerik team
 answered on 21 Nov 2011
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?