Telerik Forums
UI for WPF Forum
13 answers
1.3K+ views
Do you guys have a sample solution that does the filter on the Tree Generically. I have searched and all the examples are hard coded to filter couple of levels but they don't work if the tree has multiple levels.

Could you please help me with a solution for this? I have tried using CollectionViewSource, but not able to filter below the Root level I am able to filter only at the top level. 

Lets for example I have this Tree - got this from one of your examples. 

Animal
  Dog
  Cat
Fish
   Fresh Water
       Roach
       Bream
    Salt Water
        Skate
              SkateChild
        Soul


In this example, If I type  "d" , I should get the following result.
Animal
    Dog
Fish
    Salt Water 
         Skate
              SkateChild

Please let me know if you can help me with a solution that would work for n level of nodes. 

This is highly critical for us and any help on this is really appreciated. 



   



Petar Mladenov
Telerik team
 answered on 30 Jul 2015
1 answer
235 views

Hey,

I am trying to get my appointments to update in a backgroundworker. I have the backgroundworker up and running but when I assign my appointments to the ObservableCollection on the viewmodel  in the RunWorkerCompleted and fire the NofityPropertyChanged I get an error "Must create DependencySource on same Thread as the DependencyObject." I do not get this error when notifying of changes to strings and ints. Do you know of any reasons why the NotifyPropertyChanged would not work. 

 Thanks

Kalin
Telerik team
 answered on 30 Jul 2015
1 answer
413 views

Hi there.

 I ran into a problem when changing the template for TreeView control. I modified the ItemContainerStyle as follows:

        <Style x:Key="FileBrowserItemStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
            <Setter Property="FocusVisualStyle">
                <Setter.Value>
                    <Style>
                        <Setter Property="Control.Template">
                            <Setter.Value>
                                <ControlTemplate>
                                    <Rectangle Margin="0" Stroke="Transparent" StrokeThickness="0"/>
                                </ControlTemplate>
                            </Setter.Value>
                        </Setter>
                    </Style>
                </Setter.Value>
            </Setter>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Padding" Value="1,4,5,4"/>
            <Setter Property="MinHeight" Value="24"/>
            <Setter Property="IsDropAllowed" Value="True"/>
            <Setter Property="IsEnabled" Value="True"/>
            <Setter Property="IsTabStop" Value="False"/>
            <Setter Property="KeyboardNavigation.TabNavigation" Value="Local"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type telerik:RadTreeViewItem}">
                        <Grid x:Name="RootElement" UseLayoutRounding="True">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="EditStates">
                                    <VisualState x:Name="Display"/>
                                    <VisualState x:Name="Edit">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EditHeaderElement">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Header">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="Disabled">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0" To="0.35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Header"/>
                                            <DoubleAnimation Duration="0" To="0.35" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="Image"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <DoubleAnimation Duration="0:0:0.1" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="MouseOverVisual"/>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="SelectionStates">
                                    <VisualState x:Name="Unselected"/>
                                    <VisualState x:Name="Selected">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionVisual">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="SelectedUnfocused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="SelectionUnfocusedVisual">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="LoadingOnDemandStates">
                                    <VisualState x:Name="LoadingOnDemand">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="LoadingVisual">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Expander">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Collapsed</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                            <DoubleAnimation Duration="0:0:1" From="0" RepeatBehavior="Forever" To="359" Storyboard.TargetProperty="Angle" Storyboard.TargetName="LoadingVisualAngleTransform"/>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="LoadingOnDemandReverse"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="FocusStates">
                                    <VisualState x:Name="Focused">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="FocusVisual">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Unfocused"/>
                                </VisualStateGroup>
                                <VisualStateGroup x:Name="ExpandStates">
                                    <VisualState x:Name="Expanded">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames Duration="0" Storyboard.TargetProperty="Visibility" Storyboard.TargetName="ItemsHost">
                                                <DiscreteObjectKeyFrame KeyTime="0">
                                                    <DiscreteObjectKeyFrame.Value>
                                                        <Visibility>Visible</Visibility>
                                                    </DiscreteObjectKeyFrame.Value>
                                                </DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Collapsed"/>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Grid x:Name="HeaderRow" Background="Transparent" MinHeight="{TemplateBinding MinHeight}" SnapsToDevicePixels="True">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="2"/>
                                <Border x:Name="MouseOverVisual" BorderBrush="#FF838383" BorderThickness="1" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="1" Opacity="0">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFDADADA" Offset="1"/>
                                            <GradientStop Color="#FFB6B6B6" Offset="0"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Border BorderBrush="White" BorderThickness="1" Background="{x:Null}" CornerRadius="0"/>
                                </Border>
                                <Border x:Name="SelectionUnfocusedVisual" BorderBrush="#FFDBDBDB" BorderThickness="1" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="1" Visibility="Collapsed">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0,1">
                                            <GradientStop Color="#FFF8F6F9" Offset="0"/>
                                            <GradientStop Color="#FFCBCBCB" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Border BorderBrush="Transparent" BorderThickness="1" Background="{x:Null}" CornerRadius="0"/>
                                </Border>
                                <Border x:Name="SelectionVisual" BorderBrush="#FF494949" BorderThickness="1" Grid.ColumnSpan="6" Grid.Column="2" CornerRadius="1" Visibility="Collapsed">
                                    <Border.Background>
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                            <GradientStop Color="#FFBBBBBB" Offset="1"/>
                                            <GradientStop Color="#FF959595"/>
                                        </LinearGradientBrush>
                                    </Border.Background>
                                    <Border BorderBrush="White" BorderThickness="1" Background="{x:Null}" CornerRadius="0"/>
                                </Border>
                                <StackPanel x:Name="IndentContainer" Orientation="Horizontal">
                                    <Rectangle x:Name="IndentFirstVerticalLine" Stroke="#FFCCCCCC" Visibility="Collapsed" VerticalAlignment="Top" Width="1"/>
                                </StackPanel>
                                <Grid x:Name="ListRootContainer" Grid.Column="1" HorizontalAlignment="Center" MinWidth="21">
                                    <Rectangle x:Name="HorizontalLine" HorizontalAlignment="Right" Height="1" Stroke="#FFCCCCCC" VerticalAlignment="Center"/>
                                    <Rectangle x:Name="VerticalLine" HorizontalAlignment="Center" Stroke="#FFCCCCCC" VerticalAlignment="Top" Width="1"/>
                                    <ToggleButton x:Name="Expander" Background="{TemplateBinding Background}" IsTabStop="False"/>
                                    <Grid x:Name="LoadingVisual" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5" Visibility="Collapsed" VerticalAlignment="Center">
                                        <Grid.RenderTransform>
                                            <TransformGroup>
                                                <RotateTransform Angle="0" CenterY="0.5" CenterX="0.5"/>
                                            </TransformGroup>
                                        </Grid.RenderTransform>
                                        <Path Data="M1,0A1,1,90,1,1,0,-1" Height="10" StrokeStartLineCap="Round" Stretch="Fill" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Width="10"/>
                                        <Path Data="M0,-1.1L0.1,-1 0,-0.9" Fill="{TemplateBinding Foreground}" HorizontalAlignment="Left" Height="4" Margin="5,-1.5,0,0" Stretch="Fill" StrokeThickness="1" VerticalAlignment="Top" Width="4"/>
                                    </Grid>
                                </Grid>
                                <Image x:Name="Image" Grid.Column="3" HorizontalAlignment="Center" MaxWidth="20" MaxHeight="20" Margin="2" VerticalAlignment="Center"/>
                                <Rectangle x:Name="FocusVisual" Grid.ColumnSpan="6" Grid.Column="2" IsHitTestVisible="False" RadiusY="3" RadiusX="3" Stroke="Black" StrokeThickness="1" StrokeDashArray="1 2" Visibility="Collapsed"/>
                                <Grid x:Name="HeaderContentPanel" Background="Transparent" Grid.ColumnSpan="2" Grid.Column="4">
                                    <ContentControl x:Name="Header" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{Binding Foreground, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsTabStop="False" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                    <ContentPresenter x:Name="EditHeaderElement" ContentTemplate="{TemplateBinding HeaderEditTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" Visibility="Collapsed" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                                </Grid>
                                <CheckBox x:Name="CheckBoxElement" Grid.Column="2" IsTabStop="False" Margin="5,0,0,0" Visibility="Collapsed" VerticalAlignment="Center">
                                    <telerik:StyleManager.Theme>
                                        <telerik:Office_BlackTheme/>
                                    </telerik:StyleManager.Theme>
                                </CheckBox>
                                <RadioButton x:Name="RadioButtonElement" Grid.Column="2" IsTabStop="False" Margin="5,0,0,0" Visibility="Collapsed" VerticalAlignment="Center">
                                    <telerik:StyleManager.Theme>
                                        <telerik:Office_BlackTheme/>
                                    </telerik:StyleManager.Theme>
                                </RadioButton>
                            </Grid>
                            <ItemsPresenter x:Name="ItemsHost" Grid.Row="1" Visibility="Collapsed"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <telerik:TreeViewPanel IsItemsHost="True" IsVisualCacheEnabled="False" VerticalAlignment="Bottom"/>
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
        </Style>

 

and assigned the template to the control:

        <telerik:RadTreeView x:Name="FileList" FontSize="18" FontFamily="Courier New" HorizontalAlignment="Left" Height="250" VerticalAlignment="Top" Width="150" Background="#FFEEEEEE" Style="{DynamicResource FileBrowserStyl}" ItemContainerStyle="{DynamicResource FileBrowserItemStyle}"/>

All I really did was changing the color of the selected item from orange to grey  but it only seems to change the color for the first level of hierarchy (image attached). I thought the ItemContainerStyle applies for all levels. Am I missing something?

 Would really appreciate your help.

Thank you

Sia
Telerik team
 answered on 30 Jul 2015
1 answer
301 views

I am using MVVM with the Telerik RadComboBox.

On selection of an item in my list, I open a new window. The new window gets focus, and then the focus is stolen back by the RadComboBox, and the new window dissapears behind.

When I do the exact same thing and replace the RadCombo with standard wpf Combo, it works perfectly and does not take focus after selection.

I have tried numerous approaches to have the new window retain focus without success. I have tried setting the new window initially to TopMost when initialised, but still the RadCombo steals the focus after all this has run.

My new window is opened in code triggered from the setter of the property bound to the SelectedItem. So basically it appears that the selected Item setter runs, then after that completes, then it forces focus on itself.

Is there any way to avoid this?

I would use the standard combo, but I have a custom watermark setup and also a custom Clear selection mechanism in the Telerik control I would like to retain.

thanks

 

Duncan

Kalin
Telerik team
 answered on 30 Jul 2015
2 answers
378 views

Hello,

I have an application where I have a RadDataFilter, RadGridView, and RadDataPager all connected to a QueryableCollectionView, fed by an IQueryable query provided by Entity Framework 6.1. See below for sample code

I've read in some other forum posts and articles, DataLoadMode="Asynchronous" is not recommended, and I see why. I'm getting a couple of interesting bugs.

1) We often need to change the query that's bound to the grid (but still bound to the same entity type). As I don't see a way to change it for the existing, bound QueryableCollectionView, I just create and assign a new QueryableCollectionView to the QCV property in my view model (this raises a PropertyChanged event). When I try this, the busy indicator stays on after loading and displaying the data, behind the spinner. Going to another page, sorting, or filtering will remove the spinner.

2) When paging and filtering, the first half of the items in the grid are hidden, while the other half stays visible, behind the spinner. This isn't really a functional issue, but it looks a bit weird, and distracting.

As I mentioned before, I know that your suggestion is to not set DataLoadMode="Asynchronous", but then in that case, is there no way that I can asynchronously load data using an IQueryable from Entity Framework, with the Busy Indicator, that works properly? I can't block the UI thread in our application while loading data. Some of our queries are complex and can take 5+ seconds to respond. I don't mind the time it takes, but I do mind that the user can't interact with the UI during that time.

Is there another class I can use? Some provider classes I can extend? This was very simple to do in Silverlight with WCF and the QueryableDomainServiceCollectionView. I'm surprised how this isn't as simple for WPF and Entity Framework.

 

IQueryable<Entity> qry = _service.GetEntities();
QCV = new QueryableCollectionView(qry);

 

 

<telerik:RadDataFilter Source="{Binding Items, ElementName=DataGrid}" />
<telerik:RadGridView x:Name="DataGrid"               
                     DataLoadMode="Asynchronous"
                                             ItemsSource="{Binding QCV}" />
<telerik:RadDataPager Source="{Binding Items, ElementName=DataGrid}"
                                              PageSize="25" />

 

Carl Herlitz
Top achievements
Rank 1
 answered on 29 Jul 2015
1 answer
179 views

Hi,

Is it possible to change the summery arrows color?

I tried with this code ... but only the line color changed

Thank you

<Style TargetType="telerik:SummaryContainer" >
           <Setter Property="ToolTipTemplate">
               <Setter.Value>
                   <StaticResourceExtension ResourceKey="GanttTooltipSummaryTemplate" />
               </Setter.Value>
           </Setter>
               <Setter Property="Background">
                   <Setter.Value>
                       <SolidColorBrush Color="LightGreen" Opacity="0.8" />
                   </Setter.Value>
               </Setter>
            
           </Style>
Nasko
Telerik team
 answered on 29 Jul 2015
1 answer
199 views

I've added a new property to my SqlAppointment class called 'Service Code'.  When this property changes I'd like to filter down one of my resources lists to only those 'Providers' that can service that 'Service Code'. 

How can I access the ResourceType collection from within the SqlAppointment class? 

Is there a way to override the AppointmentDialogViewModel so that I can access the properties there?

Nasko
Telerik team
 answered on 29 Jul 2015
3 answers
415 views

I have a grid which displays a text field which can be large. This is set to wrap and does visualize correctly which means that the row height increases to allow the cell text to wrap. However when the cell is edited then the height returns to default, which is essentially one row of text high.

I would like the cell to be able to be edited in wrap mode as well. Is this possible?

Stefan
Telerik team
 answered on 29 Jul 2015
1 answer
364 views

Hi, I'm trying to create a button inside a column header and I'm facing binding problems. My code looks like this:

 

<telerik:RadGridView
            Name="RadGridView"
            CanUserSortColumns="False"
            ItemsSource="{Binding Stations}"
            IsFilteringAllowed="False"
            RowIndicatorVisibility="Collapsed"
            NewRowPosition="None"
            AutoGenerateColumns="False"
            IsReadOnly="True"
            ShowGroupPanel="False">
            <telerik:RadGridView.SortDescriptors>
                <telerik:SortDescriptor Member="Number" SortDirection="Ascending" />
            </telerik:RadGridView.SortDescriptors>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn IsSortable="False">
                    <telerik:GridViewDataColumn.Header>
                        <Button
                            Style="{DynamicResource BorderlessButtonStyle}"
                            Loaded="FrameworkElement_OnLoaded"
                            BorderThickness="0"
                            Click="ButtonBase_OnClick"
                            Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadGridView}},Path=DataContext.CopyCommand}"
                            >
                   </telerik:GridViewDataColumn.Header>
                   ...

But the command is never invoked due to this error:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.RadGridView', AncestorLevel='1''. BindingExpression:Path=DataContext.CopyCommand; DataItem=null; target element is 'Button' (Name=''); target property is 'Command' (type 'ICommand') 

I've tried with other Ancestor levels with no luck.

I tried to workaround this problem setting the command in the Loaded event of the button and it works, but I have a similar problem trying to set a Binding with a converter for Visibility in code behind:

private void FrameworkElement_OnLoaded(object sender, RoutedEventArgs e)
{
    var button = (Button)sender;
 
    var viewModel = (TotalTideViewModel)this.DataContext;
 
    button.Command = viewModel.CopyCommand;
    var converter = new Converters.BooleanToVisibilityConverter();
    button.SetBinding(VisibilityProperty, new Binding("DataContext.IsAnyRowSelected")
        {
            Converter = converter
        });
}

I've seen in another threads that you recommend to create a static resource with the view model, but we are working using our client's framework and we are not allowed to do that.

 

How can I create a proper binding?

 

Thanks,

Vicenc

 

 

 

 

 

 

Vicenc
Top achievements
Rank 1
 answered on 29 Jul 2015
3 answers
220 views

We use a RibbonWindow as our main window for the application. Everything works fine except when maximized: the bottom part of the window is hidden under the taskbar. (Version: 2015.1.225.45) Here is the definition of the window:

01.<telerik:RadRibbonWindow x:Name="ShellWindow"
02.                         x:Class="ASC.Pilot.Shell"
03.                         AutomationProperties.AutomationId="AID_ShellWindow"
04.                         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
05.                         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
06.                         xmlns:prism="http://www.codeplex.com/prism"
07.                         xmlns:inf="clr-namespace:ASC.Infrastructure;assembly=ASC.Infrastructure"
08.                         xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
09.                         xmlns:controls="clr-namespace:ASC.Controls;assembly=ASC.Controls"
10.                         xmlns:local="clr-namespace:ASC.Pilot"
11.                         Height="920" Width="1440"
12.                         WindowStartupLocation="CenterScreen"
13.                         WindowState="Normal"
14.                         Icon="van.png"
15.                         AllowsTransparency="True"
16.                         WindowStyle="None"
17.                         ScrollViewer.HorizontalScrollBarVisibility="Auto"
18.                         ScrollViewer.VerticalScrollBarVisibility="Auto">
19.    <telerik:RadRibbonWindow.Resources>
20.        <ResourceDictionary>
21.            <Style TargetType="local:Shell" BasedOn="{StaticResource RadRibbonWindowStyle}">
22.                <Setter Property="BorderThickness" Value="2" />
23.            </Style>
24.        </ResourceDictionary>
25.    </telerik:RadRibbonWindow.Resources>
26.    <Grid x:Name="mainGrid" x:Uid="mainGrid"
27.          AutomationProperties.AutomationId="AID_MainGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
28.        <Grid.ColumnDefinitions>
29.            <ColumnDefinition Width="*" />
30.        </Grid.ColumnDefinitions>
31.        <Grid.RowDefinitions>
32.            <RowDefinition Height="Auto" />
33.            <RowDefinition Height="*" />
34.            <RowDefinition Height="25" />
35.        </Grid.RowDefinitions>
36.        <ContentControl x:Name="menuContent"  Grid.Row="0" Grid.Column="0"
37.                        prism:RegionManager.RegionName="{x:Static inf:RegionNames.MenuRegion}"
38.                        VerticalAlignment="Stretch"
39.                        HorizontalAlignment="Stretch"></ContentControl>
40.        <ContentControl x:Name="mainContent"  Grid.Row="1" Grid.Column="0"
41.                        prism:RegionManager.RegionName="{x:Static inf:RegionNames.MainRegion}"
42.                        VerticalAlignment="Stretch"
43.                        HorizontalAlignment="Stretch"></ContentControl>
44.        <ContentControl x:Name="statusbarContent" Grid.Row="2" Grid.Column="0" HorizontalContentAlignment="Stretch"
45.                        prism:RegionManager.RegionName="{x:Static inf:RegionNames.StatusBarRegion}" />
46.    </Grid>
47.</telerik:RadRibbonWindow>


What is going wrong?

Regards
Neils

Martin Ivanov
Telerik team
 answered on 29 Jul 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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?