| 138 }; |
138 }; |
| 139 |
139 |
| 140 struct UiPivotTabView : UiTabView { |
140 struct UiPivotTabView : UiTabView { |
| 141 Pivot pivot; |
141 Pivot pivot; |
| 142 |
142 |
| 143 UiPivotTabView(UiObject *obj, Pivot pivot, UiTabViewArgs args); |
143 UiPivotTabView(UiObject *obj, Pivot pivot, UiTabViewArgs *args); |
| 144 |
144 |
| 145 UiObject* AddTab(const char* label, int index = -1); |
145 UiObject* AddTab(const char* label, int index = -1); |
| 146 void Remove(int index); |
146 void Remove(int index); |
| 147 void Select(int index); |
147 void Select(int index); |
| 148 FrameworkElement GetFrameworkElement(); |
148 FrameworkElement GetFrameworkElement(); |
| 149 }; |
149 }; |
| 150 |
150 |
| 151 struct UiMainTabView : UiTabView { |
151 struct UiMainTabView : UiTabView { |
| 152 TabView tabview; |
152 TabView tabview; |
| 153 |
153 |
| 154 UiMainTabView(UiObject* obj, TabView tabview, UiTabViewArgs args); |
154 UiMainTabView(UiObject* obj, TabView tabview, UiTabViewArgs *args); |
| 155 |
155 |
| 156 UiObject* AddTab(const char* label, int index = -1); |
156 UiObject* AddTab(const char* label, int index = -1); |
| 157 void Remove(int index); |
157 void Remove(int index); |
| 158 void Select(int index); |
158 void Select(int index); |
| 159 FrameworkElement GetFrameworkElement(); |
159 FrameworkElement GetFrameworkElement(); |
| 162 struct UiNavigationTabView : UiTabView { |
162 struct UiNavigationTabView : UiTabView { |
| 163 NavigationView navigationview; |
163 NavigationView navigationview; |
| 164 UiTabViewType type; |
164 UiTabViewType type; |
| 165 std::vector<std::tuple<NavigationViewItem, FrameworkElement> > pages; |
165 std::vector<std::tuple<NavigationViewItem, FrameworkElement> > pages; |
| 166 |
166 |
| 167 UiNavigationTabView(UiObject* obj, NavigationView navigationview, UiTabViewArgs args, UiTabViewType type); |
167 UiNavigationTabView(UiObject* obj, NavigationView navigationview, UiTabViewArgs *args, UiTabViewType type); |
| 168 |
168 |
| 169 UiObject* AddTab(const char* label, int index = -1); |
169 UiObject* AddTab(const char* label, int index = -1); |
| 170 void Remove(int index); |
170 void Remove(int index); |
| 171 void Select(int index); |
171 void Select(int index); |
| 172 FrameworkElement GetFrameworkElement(); |
172 FrameworkElement GetFrameworkElement(); |
| 177 struct UiInvisibleTabView : UiTabView { |
177 struct UiInvisibleTabView : UiTabView { |
| 178 Grid container; |
178 Grid container; |
| 179 std::vector<FrameworkElement> pages; |
179 std::vector<FrameworkElement> pages; |
| 180 int currentIndex; |
180 int currentIndex; |
| 181 |
181 |
| 182 UiInvisibleTabView(UiObject *obj, Grid container, UiTabViewArgs args); |
182 UiInvisibleTabView(UiObject *obj, Grid container, UiTabViewArgs *args); |
| 183 |
183 |
| 184 UiObject* AddTab(const char* label, int index = -1); |
184 UiObject* AddTab(const char* label, int index = -1); |
| 185 void Remove(int index); |
185 void Remove(int index); |
| 186 void Select(int index); |
186 void Select(int index); |
| 187 FrameworkElement GetFrameworkElement(); |
187 FrameworkElement GetFrameworkElement(); |