Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7585833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:16:17+00:00 2026-05-30T19:16:17+00:00

I got following Source <UserControl.Resources> <DataTemplate x:Key=ItemTemplate> <ListBox ItemsSource={Binding Inventory} ScrollViewer.HorizontalScrollBarVisibility=Disabled ScrollViewer.VerticalScrollBarVisibility=Disabled ItemTemplate={StaticResource ItemChildTemplate}

  • 0

I got following Source

<UserControl.Resources>
   <DataTemplate x:Key="ItemTemplate">
      <ListBox ItemsSource="{Binding Inventory}" 
                             ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                             ScrollViewer.VerticalScrollBarVisibility="Disabled"   
                             ItemTemplate="{StaticResource ItemChildTemplate}"
                             ItemContainerStyle="{StaticResource ListBoxChildItemStyle}"
                             BorderThickness="0">
      </ListBox>
   </DataTemplate>
   <DataTemplate x:Key="ItemChildTemplate"> ... </DataTemplate>
   <Style x:Key="ListBoxChildItemStyle" TargetType="{x:Type ListBoxItem}">...</Style>
</UserControl.Resources>

I get:

The resource ListBoxChildItemStyle could not be resolved.

The resource ItemChildTemplate could not be resolved.

I don’t see the problem at all. Expression Blend also has no suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:16:19+00:00Added an answer on May 30, 2026 at 7:16 pm

    Resources need to be declared before being referenced statically. Swap the order of your resources so that you never reference one that appears later in your file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got following CollectionViewSource definition in XAML: <UserControl.Resources> <CollectionViewSource x:Key=PersonsViewSource Source={Binding AvailablePersons}> <CollectionViewSource.SortDescriptions> <scm:SortDescription
I've got the following code that works well : <Viewbox.Resources> <CollectionViewSource x:Key=viewSource Source={Binding Path=SelectionList}>
I've got the following (partial) code: $(#input1, #input2).autocomplete({ source:function( request, response ) { ...
I have the following source for an assembly program that I got in a
I've got the following source: <font color=black>0</font><font color=white>1101100001001101</font><font color=black>1</font><font color=white>0110</font> And would like to
I've got following display template for object ( source ): @model object @if (Model
I got my test XML file to print using the following source file, but
I've got the following server-side videoclip variable: $fileName = bin-debug/Video Source/Black Eyed Peas -
I've got the following TabItem template where the TabItem contains an image whose source
I got following code in an XHTML-document and every browser saysit is malformed :(

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.