private void InitPanel(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) RightPanel = new SideBarPanel(PanelAlignEnum.paRight); }
private void Init(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) RightPanel = new SideBarPanel(PanelAlignEnum.paRight); Disappearing += (s, e) => { ClosePanel(); }; }
private void Init(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) { LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); } if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) { RightPanel = new SideBarPanel(PanelAlignEnum.paRight); } Disappearing += (s, e) => { ClosePanel(); }; }
public SideBarPage(Type viewModelType, Type contentUIType, PanelSetEnum panelSet) : base(viewModelType, contentUIType) { Init(panelSet); }
public SideBarPage(PanelSetEnum panelSet) { Init(panelSet); }