Beispiel #1
0
        async void InitializeColumnLayout()
        {
            var data = await FileSystem.ReadFileFromDisk(FILENAME);

            var items = Customer.GetCustomerList(100);

            Grid.ItemsSource = items;

            if (!string.IsNullOrWhiteSpace(data))
            {
                DeserializeLayout(Grid, data);
            }
        }
        async void InitializeColumnLayout()
        {
            var data = await FileSystem.ReadFileFromDisk(FILENAME);

            var items = Customer.GetCustomerList(100);

            Grid.AutoGeneratingColumn += (s, e) => { e.Column.MinWidth = 110; e.Column.Width = GridLength.Star; };
            Grid.ItemsSource           = items;

            if (!string.IsNullOrWhiteSpace(data))
            {
                DeserializeLayout(Grid, data);
            }
        }