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 6320873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:03:07+00:00 2026-05-24T16:03:07+00:00

I am using the following arrays as parameters to my value converter. I can’t

  • 0

I am using the following arrays as parameters to my value converter. I can’t figure why “params2” is passed as an ArrayExtension and “params1” is passed as a simple TextBlock[] array.

<Window.Resources>
    <x:Array Type="TextBlock" x:Key="params1">
        <TextBlock Text="{x:Static local:Constants.MyDir}"></TextBlock>
        <TextBlock>25</TextBlock>
    </x:Array>
</Window.Resources>


<TabItem.Resources>
    <x:Array Type="TextBlock" x:Key="params2">
        <TextBlock Text="{x:Static local:Constants.MyDir}"></TextBlock>
        <TextBlock>55</TextBlock>
    </x:Array>
</TabItem.Resources>

Image Viewer XAML:

<Window x:Class="TotalViewer.ImageViewerWindow"        
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:TotalViewer"
    Title="ImageViewerWindow" Name="ImageViewerWindow1">

    <Window.Resources>
        <x:Array Type="TextBlock" x:Key="params1">
            <TextBlock Text="{x:Static local:Constants.MyDir}"></TextBlock>
            <TextBlock>25</TextBlock>
        </x:Array>
   </Window.Resources>

    <Grid>
        <Image Source="{Binding ElementName=ImageViewerWindow1, Path=ImagePath, 
            Converter={StaticResource ImageConverter}, 
            ConverterParameter={StaticResource params1}}"/>
    </Grid>
</Window>
  • 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-24T16:03:08+00:00Added an answer on May 24, 2026 at 4:03 pm

    Well, I kinda gave up for the moment because I need to get this part working. In the converter, I test if the parameter is either ArrayExtension or TextBlock[]. If it’s ArrayExtension, it will get converted to TextBlock[].

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

Sidebar

Related Questions

I'm using strcmp to compare character arrays in c++, but I get the following
I believe I am having a memory issue using numpy arrays. The following code
I was wondering how can I generate the following array using ranges in ruby
OK, so this should be simple... But I still can't figure it out. I
I'm using following peace of code to output an array: echo ======output without array_unique=====;
im using the following code to output an array $values = array(); foreach ($album
Using Model->find('all') returns an array with the following structure: array( 0 => array('Model1' =>
Using the following code: db_update('nodesequence_nodes') ->fields(array( 'order' => 1, )) ->condition('nid', 1, '=') ->condition('nsid',
I'm using the following code to get an array with all sub directories from
I'm using the following code in CoffeeScript: if elem in my_array do_something() Which compiles

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.