wpf - Viewbox is clipping my dockpanel -


this program looks in editor

editor screen shot

this screen shot tablet program running on.

actual screen shot

the xaml said code this

<window x:class="dliunitlibrary_wpf.configurewindowlandscape"         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"         xmlns:local="clr-namespace:dliunitlibrary_wpf"         xmlns:posbutton="clr-namespace:dliunitlibrary_wpf.buttons"         xmlns:unitimagepanels="clr-namespace:dliunitlibrary_wpf.unitimagepanels"         background="{dynamicresource formbackground}"         width="800"         height="480"         windowstate="maximized"         windowstyle="none"         loaded="window_loaded">     <window.resources>         <resourcedictionary>             <resourcedictionary.mergeddictionaries>                 <resourcedictionary source="dictionary.xaml" />             </resourcedictionary.mergeddictionaries>         </resourcedictionary>     </window.resources>     <viewbox margin="10">         <dockpanel x:name="mainview"                    height="480"                    width="800">             <local:dliheader dockpanel.dock="top"                              visibility="hidden" />             <wrappanel width="125"                        itemheight="125"                        itemwidth="125"                        margin="0,5,0,0"                        dockpanel.dock="right"                        orientation="vertical"                        verticalalignment="bottom">                 <posbutton:oposbutton x:name="msrbutton"                                       margin="5"                                       imagesource="images/msr_keymon.png" />                 <posbutton:oposbutton x:name="imagerbutton"                                       margin="5"                                       imagesource="images/barcode_keymon.png" />                 <posbutton:oposbutton x:name="brightbutton"                                       margin="5"                                       imagesource="images/brightness_keymon.png" />             </wrappanel>             <grid margin="10">                 <viewbox x:name="tablet9viewbox"                          visibility="hidden">                     <unitimagepanels:tablet9image />                 </viewbox>                 <viewbox x:name="tablet7viewbox" visibility="hidden">                     <unitimagepanels:tablet7image>                         <unitimagepanels:tablet7image.layouttransform>                             <transformgroup>                                 <scaletransform />                                 <skewtransform />                                 <rotatetransform angle="90" />                                 <translatetransform />                             </transformgroup>                         </unitimagepanels:tablet7image.layouttransform>                     </unitimagepanels:tablet7image>                 </viewbox>             </grid>         </dockpanel>     </viewbox> </window> 

the screen resolution on tablet7 800x480. tablet has emulated 800x600 , when can see 3 buttons.

the screen resolution on tablet9 1024x768 , not have 2 button problem infact renders perfectly. missing?

edit

i forgot code behind, sorry that. doesn't on onloadedevent, here

private void window_loaded(object sender, routedeventargs e) {     this.mainview.height = system.windows.systemparameters.primaryscreenheight;     this.mainview.width = system.windows.systemparameters.primaryscreenwidth;      switch (dliunitfinder.getdliunit())     {         case dliunit.tablet7:             this.tablet7viewbox.visibility = system.windows.visibility.visible;             break;         case dliunit.tablet9:             this.tablet9viewbox.visibility = system.windows.visibility.visible;             break;     } } 

for else experiancing similar problem appears clipping allowed wrappanel. changed panel has 3 buttons in wrappanel uniformgrid , buttons showing should.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -