case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Window"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"CustomControl"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Tooltip"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Label"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ShortcutKey"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ScrollView"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"GroupBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Tab"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ComboBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"MultilineTextBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"SinglelineTextBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"DocumentViewer"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"DocumentLabel"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"DocumentTextBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ListView"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"TreeView"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"TextList"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ListItemBackground"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"TreeItemExpander"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"CheckTextListItem"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RadioTextListItem"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Menu"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"MenuBar"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"MenuSplitter"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"MenuBarButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"MenuItemButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ToolstripToolBar"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ToolstripButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ToolstripDropdownButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ToolstripSplitButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ToolstripSplitter"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonTab"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonGroup"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonIconLabel"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonSmallIconLabel"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonButtons"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonToolstrips"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonGallery"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonToolstripMenu"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonGalleryList"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonGalleryItemList"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonSmallButton"
 L"\" is not defined."
); } 
case
 ::
RibbonSmallDropdownButton
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
RibbonSmallDropdownButton
) { 
return
 current
->
RibbonSmallDropdownButton
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonSmallDropdownButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonSmallSplitButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonLargeButton"
 L"\" is not defined."
); } 
case
 ::
RibbonLargeDropdownButton
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
RibbonLargeDropdownButton
) { 
return
 current
->
RibbonLargeDropdownButton
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonLargeDropdownButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonLargeSplitButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonSplitter"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RibbonToolstripHeader"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"Button"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"CheckBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"RadioButton"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"DatePicker"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"DateComboBox"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"HScroll"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"VScroll"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"HTracker"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"VTracker"
 L"\" is not defined."
); } 
case
 ::
: { 
auto
  = 
; 
while
 (
current
) { 
if
 (
current
->
) { 
return
 current
->
; } 
current
 = 
current
->
; } 
throw
 (
L"Control template for \""
 L"ProgressBar"
 L"\" is not defined."
); }