Refracted Paladin
Refracted Paladin

Reputation: 12216

WPF Views not displaying certain controls

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>

Upvotes: 0

Views: 1504

Answers (2)

Jon B
Jon B

Reputation: 885

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

Upvotes: 0

Refracted Paladin
Refracted Paladin

Reputation: 12216

The issue was that I had not included ALL necessary references in my App.xaml. Those two controls have multiple dependencies and I only had some of them included. Once I included the bottom two Dictionary entrees everything worked great.

<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>

Upvotes: 1

Related Questions