Skip to content

Problem using TemplatedControl #16447

Discussion options

You must be logged in to vote

Should use like this

  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceInclude Source="/Controls/TemplatedControl1.axaml"/>
      </ResourceDictionary.MergedDictionaries>
      <x:Double x:Key="SmallIconSize">16</x:Double>
      <x:Double x:Key="NormalIconSize">24</x:Double>
      <x:Double x:Key="LargeIconSize">24</x:Double>
    </ResourceDictionary>
  </Application.Resources>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kruno313
Comment options

Answer selected by Kruno313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants