Exemple #1
0
        public Shell()
        {
            this.WindowState = WindowState.Maximized;
            InitializeComponent();

            //Cuz xaml designer doesn't support generic type;We have to set the some bindings(valuetuple) in codebehind :(;
            HexEdit.SetBinding(DrawedHexEditor.CustomBackgroundBlocksProperty, new Binding(nameof(HexEdit.CustomBackgroundBlocks)));
            //CustomBackgroundBlocks = "{Binding CustomBackgroundBlocks}"
            //(this.DataContext as ShellViewModel).FileEditor = HexEdit;
        }