Inheritance: System.Windows.Controls.UserControl
        public FeedbackPage()
        {
            ApplicationBar = new ApplicationBar();
            ApplicationBar.Mode = ApplicationBarMode.Default;
            ApplicationBar.StateChanged += (sender, e) =>
            {
                var bar = (sender as ApplicationBar);
                if (CurrentViewState.Equals(FeedbackViewState.ImageShow) || CurrentViewState.Equals(FeedbackViewState.ImageEdit)) {
                    if (e.IsMenuVisible)
                    {
                        bar.Opacity = 0.75;
                    }
                    else
                    {
                        bar.Opacity = 0;
                    }
                } 
            };

            Action<FeedbackViewState> switchViewStateAction = (newViewState) =>
            {
                SwitchToViewState(newViewState);
            };
            this.VM = new FeedbackPageVM(switchViewStateAction);

            this.formControl = new FeedbackMessageFormControl(this);
            this.listControl = new FeedbackMessageListControl(this);
            this.imageControl = new FeedbackImageControl(this);

            initializeAppBarIcons();
            
            InitializeComponent();
        }
        public FeedbackPage()
        {
            ApplicationBar               = new ApplicationBar();
            ApplicationBar.Mode          = ApplicationBarMode.Default;
            ApplicationBar.StateChanged += (sender, e) =>
            {
                var bar = (sender as ApplicationBar);
                if (CurrentViewState.Equals(FeedbackViewState.ImageShow) || CurrentViewState.Equals(FeedbackViewState.ImageEdit))
                {
                    if (e.IsMenuVisible)
                    {
                        bar.Opacity = 0.75;
                    }
                    else
                    {
                        bar.Opacity = 0;
                    }
                }
            };

            Action <FeedbackViewState> switchViewStateAction = (newViewState) =>
            {
                SwitchToViewState(newViewState);
            };

            this.VM = new FeedbackPageVM(switchViewStateAction);

            this.formControl  = new FeedbackMessageFormControl(this);
            this.listControl  = new FeedbackMessageListControl(this);
            this.imageControl = new FeedbackImageControl(this);

            initializeAppBarIcons();

            InitializeComponent();
        }
 public FeedbackMessageFormVM(FeedbackPageVM parentVM, FeedbackMessageFormControl view)
 {
     this.ParentVM = parentVM;
     this.view = view;
     isLightTheme = Visibility.Visible.Equals(Application.Current.Resources["PhoneLightThemeVisibility"]);
     SetFormFieldDefaults();
     lightTextBoxStyle = view.Resources["inputDark"] as Style;
     darkTextBoxStyle = view.Resources["inputLight"] as Style;
 }