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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:42:49+00:00 2026-06-17T18:42:49+00:00

I started with a blank windows RT app in visual studio. I’ve implemented the

  • 0

I started with a blank windows RT app in visual studio.
I’ve implemented the BooleanToVisibility converter from: http://blogs.u2u.be/diederik/post/2011/11/14/null.aspx

I have this in my App.xaml:

<Pathfinder:BooleanToVisibilityConverter x:Key="VisibleToInvisibleConverter" />
<Pathfinder:BooleanToVisibilityConverter x:Key="InvisibleToVisibleConverter" IsReversed="True" />

I added a toggle switch and a textbox I’m trying to toggle the visibility on for proof of concept.
Here is the toggle switch:

<ToggleSwitch IsOn="{Binding IsEditing, Mode=TwoWay}"
              Margin="10"
              HorizontalAlignment="Left"
              VerticalAlignment="Top"
              OffContent=""
              OnContent=""
              BorderThickness="0"
              Width="80"
              />

Here is the text box:

<TextBlock x:Name="pageTitle" Grid.Column="1" Text="{StaticResource AppName}"
 Style="{StaticResource PageHeaderTextStyle}" 
Visibility="{Binding IsEditing, Converter={StaticResource InvisibleToVisibleConverter}}"/>

I’m trying to make it so when the switch is off, the textbox is visible and when the switch is on the text box is invisible. I notice that when I have the converter on the textbox set to “BooleanToVisibilityConverter” or “VisibleToInvisibleConverter” it is indeed gone (visible with “InvisibleToVisibleConverter”). I’ve bound the IsOn variable on the switch to IsEditing so it should be toggling that variable off/on and then toggling the visibility off/on.

Here is my notifier class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;
using System.ComponentModel;

namespace Pathfinder
{
    class Notifier
    {
        private bool isEditing;
        public event PropertyChangedEventHandler PropertyChanged;
        public bool IsEditing
        {
            get { return isEditing; }
            set
            {
                isEditing = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("IsEditing"));
            }
        }
    }
}

I create an instance of it in MainPage.Xaml.CS:

public MainPage()
{
    this.InitializeComponent();
    this.DataContext = new Notifier();

}

Anyone have thoughts on what I might be overlooking to setup this toggle?

  • 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-06-17T18:42:51+00:00Added an answer on June 17, 2026 at 6:42 pm

    I finally got it.
    I had dropped the inheritance for the INotifyPropertyChanged on the Notifier class at some point and it looks like at no two moments did I have everything in place I needed.

    The above works by just changing the the single line:

        class Notifier
    

    to:

        class Notifier : INotifyPropertyChanged 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started a blank project in Visual Studio 2010 to write a C application.
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
I have started prgramming a windows service. I have added a notify icon from
I've recently repaved my machine with Windows 8 Pro x64 and Visual Studio 2012
I have developed a Windows 8 App using HTML, JS Blank App template. I
Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like
My app correctly runs in full screen when it's started. However after minimizing and
I'm using xCode 4.3.2 and started a blank application. I have a navigation controller
I have been using the embedded server that visual studio has to test my
I installed Tomcat 7 from here and I used the Windows Service Installer .

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.