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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:54:52+00:00 2026-05-24T03:54:52+00:00

I have got a base XAML page which is the basis for a navigation

  • 0

I have got a base XAML page which is the basis for a navigation layout, with buttons on the top opening various views in the middle. This is done using a navigation Frame and UriMapper.

I’ve placed a few controls (DatePickers to be exact) on the navigation panel, as they will be needed by the views to filter out data.

However, I don’t know how to apply any kind of data binding to the subsequent views, which are, after all, separate XAML files.

I need to be able to read the values from the DataPickers and, ideally, react to the values being changed by the user.

How should I go about doing this?

  • 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-24T03:54:54+00:00Added an answer on May 24, 2026 at 3:54 am

    Here is what I would be inclined to do.

    Create a CriteriaService class using this pattern:-

     public CriteriaService : INotifyPropertyChanged
     {
          private DateTime myStartDate;
          public DateTime StartDate
          {
               get { return myStartDate; }
               set { myStartDate = value; //Notify property changed }
          }
    
          // Other criteria properties here
    
          //INotifyPropertyChanged implemenation
     }
    

    Now add an instance of this service to App.Xaml.cs:-

     <local:CriteriaService x:Key="CritreaService" />
    

    In your main page your do something like this:-

    <Grid x:Name="LayoutRoot" DataContext="{StaticResource CriteriaService}">
    

    so that you can use simple bindings like SelectedDate="{Binding StartDate}" in your criteria controls.

    Now in your various pages you have a choice. In code you can access the CriteriaService as:-

    CriteriaService criteria = App.Resources["CriteriaServices"] as CriteriaService;
    

    Or if you want to bind to values from it in your page xaml you can use something like:-

     <local:SomeStrangeControl StartDate="{Binding StartDate Source={StaticResource CriteriService}}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have got a php login page which i make use of session .
We have got loads of options for php + MySQL + Apache combo... Which
I have got a python script which is creating an ODBC connection. The ODBC
I have got some code to load an assembly and get all types, which
I have got the following models, class City < ActiveRecord::Base belongs_to :state belongs_to :country
I've got a base Class ScenBase and a derived class ScenC. I have a
Okay, this is the case: I got a generic base-class which I need to
I have got this model: class User < ActiveRecord::Base has_and_belongs_to_many :roles before_destroy do |u|
i have got various custom datatypes in my web application to map some data
i've got 3 classes (all deriving from the same base class) and i have

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.