wpf - Removal of application ResourceDictionary on just one form -


i have application uses custom styles library, these styles change , feel of application great, have form needs use default windows style i'm having trouble.

how make form ignore these styles uses default windows style?

below code have in app.xmal file use style across application. no other code used set styles create button example , it's styled nicely.

thanks in advance help.

<application.resources>     <resourcedictionary>         <resourcedictionary.mergeddictionaries>             <resourcedictionary source="/location;component/file" />         </resourcedictionary.mergeddictionaries>     </resourcedictionary> </application.resources> 

i have solved issue setting items styles null gets rid of previous style.

i have placed these in resource file , referenced inside form.

here's have made

inside form

<window.resources>     <resourcedictionary                source="resources/nullstyles.xaml">     </resourcedictionary> </window.resources> 

inside file

<resourcedictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">  <!--  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// can used remove styles item , child items unless childs style explicitly set ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->  <style targettype="accesstext"/> <style targettype="adornedelementplaceholder"/> <style targettype="adorner"/> <style targettype="adornerdecorator"/> <style targettype="adornerlayer"/> <style targettype="anchoredblock"/> <style targettype="block"/> <style targettype="blockuicontainer"/> <style targettype="bold"/> <style targettype="border"/> <style targettype="bulletdecorator"/> <style targettype="button"/> <style targettype="buttonbase"/> <style targettype="calendar"/> <style targettype="calendarbutton"/> <style targettype="calendardaybutton"/> <style targettype="calendaritem"/> <style targettype="canvas"/> <style targettype="checkbox"/> <style targettype="columndefinition"/> <style targettype="combobox"/> <style targettype="comboboxitem"/> <style targettype="contentcontrol"/> <style targettype="contentpresenter"/> <style targettype="contextmenu"/> <style targettype="control"/> <style targettype="datagrid"/> <style targettype="datagridcell"/> <style targettype="datagridcellspanel"/> <style targettype="datagridcellspresenter"/> <style targettype="datagridcolumnheader"/> <style targettype="datagridcolumnheaderspresenter"/> <style targettype="datagriddetailspresenter"/> <style targettype="datagridrow"/> <style targettype="datagridrowheader"/> <style targettype="datagridrowspresenter"/> <style targettype="datepicker"/> <style targettype="datepickertextbox"/> <style targettype="decorator"/> <style targettype="definitionbase"/> <style targettype="dockpanel"/> <style targettype="documentpageview"/> <style targettype="documentreference"/> <style targettype="documentviewer"/> <style targettype="documentviewerbase"/> <style targettype="ellipse"/> <style targettype="expander"/> <style targettype="figure"/> <style targettype="fixeddocument"/> <style targettype="fixeddocumentsequence"/> <style targettype="fixedpage"/> <style targettype="floater"/> <style targettype="flowdocument"/> <style targettype="flowdocumentpageviewer"/> <style targettype="flowdocumentreader"/> <style targettype="flowdocumentscrollviewer"/> <style targettype="frame"/> <style targettype="frameworkcontentelement"/> <style targettype="frameworkelement"/> <style targettype="glyphs"/> <style targettype="grid"/> <style targettype="gridsplitter"/> <style targettype="gridviewcolumnheader"/> <style targettype="gridviewheaderrowpresenter"/> <style targettype="gridviewrowpresenter"/> <style targettype="gridviewrowpresenterbase"/> <style targettype="groupbox"/> <style targettype="groupitem"/> <style targettype="headeredcontentcontrol"/> <style targettype="headereditemscontrol"/> <style targettype="hyperlink"/> <style targettype="image"/> <style targettype="inkcanvas"/> <style targettype="inkpresenter"/> <style targettype="inline"/> <style targettype="inlineuicontainer"/> <style targettype="italic"/> <style targettype="itemscontrol"/> <style targettype="itemspresenter"/> <style targettype="label"/> <style targettype="line"/> <style targettype="linebreak"/> <style targettype="list"/> <style targettype="listbox"/> <style targettype="listboxitem"/> <style targettype="listitem"/> <style targettype="listview"/> <style targettype="listviewitem"/> <style targettype="mediaelement"/> <style targettype="menu"/> <style targettype="menubase"/> <style targettype="menuitem"/> <style targettype="multiselector"/> <style targettype="navigationwindow"/> <style targettype="page"/> <style targettype="pagecontent"/> <style targettype="pagefunctionbase"/> <style targettype="panel"/> <style targettype="paragraph"/> <style targettype="passwordbox"/> <style targettype="path"/> <style targettype="polygon"/> <style targettype="polyline"/> <style targettype="popup"/> <style targettype="progressbar"/> <style targettype="radiobutton"/> <style targettype="rangebase"/> <style targettype="rectangle"/> <style targettype="repeatbutton"/> <style targettype="resizegrip"/> <style targettype="richtextbox"/> <style targettype="rowdefinition"/> <style targettype="run"/> <style targettype="scrollbar"/> <style targettype="scrollcontentpresenter"/> <style targettype="scrollviewer"/> <style targettype="section"/> <style targettype="selectivescrollinggrid"/> <style targettype="selector"/> <style targettype="separator"/> <style targettype="shape"/> <style targettype="slider"/> <style targettype="span"/> <style targettype="stackpanel"/> <style targettype="statusbar"/> <style targettype="statusbaritem"/> <style targettype="stickynotecontrol"/> <style targettype="tabcontrol"/> <style targettype="tabitem"/> <style targettype="tabpanel"/> <style targettype="table"/> <style targettype="tablecell"/> <style targettype="tablecolumn"/> <style targettype="tablerow"/> <style targettype="tablerowgroup"/> <style targettype="textblock"/> <style targettype="textbox"/> <style targettype="textboxbase"/> <style targettype="textelement"/> <style targettype="thumb"/> <style targettype="tickbar"/> <style targettype="togglebutton"/> <style targettype="toolbar"/> <style targettype="toolbaroverflowpanel"/> <style targettype="toolbarpanel"/> <style targettype="toolbartray"/> <style targettype="tooltip"/> <style targettype="track"/> <style targettype="treeview"/> <style targettype="treeviewitem"/> <style targettype="underline"/> <style targettype="uniformgrid"/> <style targettype="usercontrol"/> <style targettype="viewbox"/> <style targettype="viewport3d"/> <style targettype="virtualizingpanel"/> <style targettype="virtualizingstackpanel"/> <style targettype="webbrowser"/> <style targettype="window"/> <style targettype="wrappanel"/> </resourcedictionary> 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -