#pragma checksum "C:\Users\Marcel\Documents\GitHub\HospitalServerManagerApp\HospitalServerManager\View\UserControls\ColumnListView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E8816074F83E5912D57314984E95026D" //------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace HospitalServerManager.View.UserControls { partial class ColumnListView : global::Windows.UI.Xaml.Controls.UserControl, global::Windows.UI.Xaml.Markup.IComponentConnector, global::Windows.UI.Xaml.Markup.IComponentConnector2 { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private static class XamlBindingSetters { public static void Set_Windows_UI_Xaml_Controls_TextBlock_Text(global::Windows.UI.Xaml.Controls.TextBlock obj, global::System.String value, string targetNullValue) { if (value == null && targetNullValue != null) { value = targetNullValue; } obj.Text = value ?? global::System.String.Empty; } }; [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private class ColumnListView_obj2_Bindings : global::Windows.UI.Xaml.IDataTemplateExtension, global::Windows.UI.Xaml.Markup.IDataTemplateComponent, global::Windows.UI.Xaml.Markup.IComponentConnector, IColumnListView_Bindings { private global::HospitalServerManager.ViewModel.PatientViewModel dataRoot; private bool initialized = false; private const int NOT_PHASED = (1 << 31); private const int DATA_CHANGED = (1 << 30); private bool removedDataContextHandler = false; // Fields for each control that has bindings. private global::System.WeakReference obj2; private global::Windows.UI.Xaml.Controls.TextBlock obj3; private global::Windows.UI.Xaml.Controls.TextBlock obj4; private global::Windows.UI.Xaml.Controls.TextBlock obj5; private global::Windows.UI.Xaml.Controls.TextBlock obj6; private global::Windows.UI.Xaml.Controls.TextBlock obj7; private global::Windows.UI.Xaml.Controls.TextBlock obj8; public ColumnListView_obj2_Bindings() { } // IComponentConnector public void Connect(int connectionId, global::System.Object target) { switch(connectionId) { case 2: // View\UserControls\ColumnListView.xaml line 35 this.obj2 = new global::System.WeakReference((global::Windows.UI.Xaml.Controls.Grid)target); break; case 3: // View\UserControls\ColumnListView.xaml line 44 this.obj3 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; case 4: // View\UserControls\ColumnListView.xaml line 47 this.obj4 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; case 5: // View\UserControls\ColumnListView.xaml line 50 this.obj5 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; case 6: // View\UserControls\ColumnListView.xaml line 52 this.obj6 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; case 7: // View\UserControls\ColumnListView.xaml line 54 this.obj7 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; case 8: // View\UserControls\ColumnListView.xaml line 56 this.obj8 = (global::Windows.UI.Xaml.Controls.TextBlock)target; break; default: break; } } public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args) { if (this.SetDataRoot(args.NewValue)) { this.Update(); } } // IDataTemplateExtension public bool ProcessBinding(uint phase) { throw new global::System.NotImplementedException(); } public int ProcessBindings(global::Windows.UI.Xaml.Controls.ContainerContentChangingEventArgs args) { int nextPhase = -1; ProcessBindings(args.Item, args.ItemIndex, (int)args.Phase, out nextPhase); return nextPhase; } public void ResetTemplate() { Recycle(); } // IDataTemplateComponent public void ProcessBindings(global::System.Object item, int itemIndex, int phase, out int nextPhase) { nextPhase = -1; switch(phase) { case 0: nextPhase = -1; this.SetDataRoot(item); if (!removedDataContextHandler) { removedDataContextHandler = true; (this.obj2.Target as global::Windows.UI.Xaml.Controls.Grid).DataContextChanged -= this.DataContextChangedHandler; } this.initialized = true; break; } this.Update_((global::HospitalServerManager.ViewModel.PatientViewModel) item, 1 << phase); } public void Recycle() { } // IColumnListView_Bindings public void Initialize() { if (!this.initialized) { this.Update(); } } public void Update() { this.Update_(this.dataRoot, NOT_PHASED); this.initialized = true; } public void StopTracking() { } public void DisconnectUnloadedObject(int connectionId) { throw new global::System.ArgumentException("No unloadable elements to disconnect."); } public bool SetDataRoot(global::System.Object newDataRoot) { if (newDataRoot != null) { this.dataRoot = (global::HospitalServerManager.ViewModel.PatientViewModel)newDataRoot; return true; } return false; } // Update methods for each path node used in binding steps. private void Update_(global::HospitalServerManager.ViewModel.PatientViewModel obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_PrimaryKey(obj.PrimaryKey, phase); this.Update_Surname(obj.Surname, phase); this.Update_Name(obj.Name, phase); this.Update_BirthDate(obj.BirthDate, phase); this.Update_PatientState(obj.PatientState, phase); this.Update_PatientSex(obj.PatientSex, phase); } } } private void Update_PrimaryKey(global::System.String obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 44 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj3, obj, null); } } private void Update_Surname(global::System.String obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 47 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj4, obj, null); } } private void Update_Name(global::System.String obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 50 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj5, obj, null); } } private void Update_BirthDate(global::System.DateTime obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 52 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj6, obj.ToString(), null); } } private void Update_PatientState(global::System.String obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 54 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj7, obj, null); } } private void Update_PatientSex(global::System.String obj, int phase) { if ((phase & ((1 << 0) | NOT_PHASED )) != 0) { // View\UserControls\ColumnListView.xaml line 56 XamlBindingSetters.Set_Windows_UI_Xaml_Controls_TextBlock_Text(this.obj8, obj, null); } } } /// /// Connect() /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Connect(int connectionId, object target) { this._contentLoaded = true; } /// /// GetBindingConnector(int connectionId, object target) /// [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 10.0.17.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public global::Windows.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target) { global::Windows.UI.Xaml.Markup.IComponentConnector returnValue = null; switch(connectionId) { case 2: // View\UserControls\ColumnListView.xaml line 35 { global::Windows.UI.Xaml.Controls.Grid element2 = (global::Windows.UI.Xaml.Controls.Grid)target; ColumnListView_obj2_Bindings bindings = new ColumnListView_obj2_Bindings(); returnValue = bindings; bindings.SetDataRoot(element2.DataContext); element2.DataContextChanged += bindings.DataContextChangedHandler; global::Windows.UI.Xaml.DataTemplate.SetExtensionInstance(element2, bindings); global::Windows.UI.Xaml.Markup.XamlBindingHelper.SetDataTemplateComponent(element2, bindings); } break; } return returnValue; } } }