/// <summary>Signals the object that initialization is starting.</summary>
 public virtual void BeginInit()
 {
     RefreshCmd = new RelayCommand(o => { if (o != null)
                                          {
                                              SetMapDirty();
                                          }
                                          Refresh(); });
     DataContext = new HexgridViewModel(this);
     SetScales(new float[] { 1.00F });
 }
Beispiel #2
0
        /// <summary>Creates a new instance of HexgridScrollable.</summary>
        public HexgridPanel()
        {
            DataContext = new HexgridViewModel(this);

            InitializeComponent();
        }