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

  • Home
  • SEARCH
  • 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 5952617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:42:25+00:00 2026-05-22T17:42:25+00:00

Here goes my code: <ControlTemplate TargetType={x:Type ToggleButton}> <Border x:Name=Chrome> <Grid x:Name=Arrow> <Grid.Background> <DrawingBrush Viewport=0,0,4,4

  • 0

Here goes my code:

<ControlTemplate TargetType="{x:Type ToggleButton}">
    <Border x:Name="Chrome">
        <Grid x:Name="Arrow">
            <Grid.Background>
                <DrawingBrush Viewport="0,0,4,4" Viewbox="0,-0.4,16,16" ViewboxUnits="Absolute">
                    <DrawingBrush.Drawing>
                        <GeometryDrawing x:Name="ArrowDrawing">
                            <GeometryDrawing.Geometry>
                                <PathGeometry>
                                    <PathFigure StartPoint="1,1" IsClosed="True">
                                        <LineSegment Point="2,2.45"/>
                                        <LineSegment Point="3,1"/>
                                        <LineSegment Point="2,1.75"/>
                                    </PathFigure>
                                </PathGeometry>
                            </GeometryDrawing.Geometry>
                        </GeometryDrawing>
                    </DrawingBrush.Drawing>
                </DrawingBrush>
            </Grid.Background>
        </Grid>
    </Border>
    <ControlTemplate.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Setter Property="Brush" TargetName="ArrowDrawing" Value="{StaticResource DisabledForecolor}"/>
        </Trigger>
    </ControlTemplate.Triggers>
</ControlTemplate>

So when the trigger triggers (on compile time), I got the error:

Cannot find the Trigger target 'ArrowDrawing'. (The target must appear before any Setters, Triggers, or Conditions that use it.)

How do I actually access that GeometryDrawing named ArrowDrawing from the trigger?

  • 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-22T17:42:25+00:00Added an answer on May 22, 2026 at 5:42 pm

    This post might help

    There is a way to solve this, though,
    by using data binding. With a
    Binding, you can find your way out of
    the brush to an element, and then the
    Setter can target that element.

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

Sidebar

Related Questions

In an XML file such as : <Snippets> <Snippet name=abc> <SnippetCode> code goes here
#define cimg_use_jpeg 2 #ifndef cimg_use_jpeg //code goes here #endif I really don't understand...
$(p).bind(click, function(event){ // code goes here }); This is quite understandable. But what is
When I send a request to https://graph.facebook.com/me/home?access_token= (access code goes here) Facebook gives me
I have the following code in main.js : (function($) { // Code goes here
/* OpenGL animation code goes here */ glClearColor (0.0f, 0.0f, 0.0f, 0.0f); glClear (GL_COLOR_BUFFER_BIT);
I have written sub main () 'some code goes here end sub This is
Title should make my problem well described.Here goes my code. <div id=adiv><text>Some text</text></div> <script
Ok here goes: I have a SELECT drop down option with US state names
Weird to describe but here goes. I have a table with several rows. One

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.