0

I am using Caliburn.Micro and Telerik's controls. I'm new to these so I'm assuming I am making a stupid mistake.

I have the below, VERY simple View. It's just a User Control with a GridView in it. How ever it doesn't show the GridView. Additionally I have a View that is a User Control that just shows a DataForm that also doesn't show.

I get the User control but it's blank. If I throw other controls on there they show, like a RadWatermarkTextBox or a simple TextBlock.

What am I missing? I don't get any exceptions or warnings.

<UserControl x:Name="ModifyAuthUserControl" x:Class="Green.Views.ModifyAuthView"
         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:cal="http://www.caliburnproject.org" 
         MinWidth="500" Width="600" MinHeight="550" Height="600">
<Grid Background="White">
    <telerik:RadGridView x:Name="ExistingAuths"/> <!--This doesn't show-->           
    <telerik:RadWatermarkTextBox Text="HELLO!" /> <!--This DOES-->
</Grid>

4

2 回答 2

1

问题是我没有在我的 App.xaml 中包含所有必要的引用。这两个控件有多个依赖项,我只包含了其中的一些。一旦我包括了底部的两个字典主菜,一切都很好。

<ResourceDictionary.MergedDictionaries>
            <ResourceDictionary>
                <local:AppBootstrapper x:Key="bootstrapper" />
            </ResourceDictionary>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
        </ResourceDictionary.MergedDictionaries>
于 2013-05-08T20:11:04.667 回答
0

Note that your RadGridView and your RadWatermarkTextBox do not have associated grid rows or columns, and will appear one on top of the other.

于 2013-07-22T04:03:51.247 回答