Responsive Layout with multi resolution !

I have this xaml code :
<Grid Margin="0,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Background="Navy" Grid.Row="0">
<Viewbox Margin="15,0,15,0">
<TextBlock Foreground="White" Text="Chỉnh sửa bài hát"
Style="{StaticResource HeaderTextBlockStyle}"
FontFamily="Segoe WP" />
</Viewbox>
</StackPanel>
<Grid Margin="10,5,10,0" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0">
<TextBlock
Style="{StaticResource BaseTextBlockStyle}"
TextAlignment="Center"
Foreground="DarkGreen"
Text="Mã số" />
<TextBlock Text="{Binding ID}"
Foreground="Navy"
FontWeight="Light"
TextAlignment="Center"
FontSize="30" />
</StackPanel>
<StackPanel Grid.Row="1">
<TextBlock
Style="{StaticResource BaseTextBlockStyle}"
TextAlignment="Center"
Foreground="DarkGreen"
Text="Tên bài hát" />
<TextBox
BorderBrush="Silver"
TextAlignment="Center"
FontWeight="Light"
Name="TxtFullName"
Text="{Binding FullName}"
BorderThickness="1.5" />
</StackPanel>
<StackPanel MaxHeight="300" Grid.Row="2">
<TextBlock
Style="{StaticResource BaseTextBlockStyle}"
TextAlignment="Center"
Foreground="DarkGreen"
Text="Lời bài hát" />
<TextBox
TextAlignment="Center"
BorderBrush="Silver"
BorderThickness="1.5"
AcceptsReturn="True"
MaxHeight="250"
MinHeight="250"
FontWeight="Light"
Name="txtLyric"
Text="{Binding Lyric,Converter={StaticResource DecodeLyrics}}"
TextWrapping="Wrap"
ScrollViewer.VerticalScrollBarVisibility="Auto" />
</StackPanel>
<StackPanel Grid.Row="3">
<TextBlock
Style="{StaticResource BaseTextBlockStyle}"
TextAlignment="Center"
Foreground="DarkGreen"
Text="Ca sĩ - Nhạc Sĩ" />
<TextBox
BorderBrush="Silver"
TextAlignment="Center"
FontWeight="Light"
Name="txtAuthor"
Text="{Binding Author}"
BorderThickness="1.5" />
</StackPanel>
</Grid>
</Grid
It display nice in my lumia 620 ( I debug my app on real device).. But I don't sure it will nice with other resolution.I think the page will have more blank space at the bottom when display on other larger resolution  because I set
3rd StackPanel's Maxheight = 300px.
How could I make it more flexible?
OmegaVN - Window Phone Application Researching and Development

Hi OmegaVN,
In my mind if we want to let our user interface appears correctly on various screen resolutions, then we can try to create a Dynamic layout, for more information, please try to refer to the following article:
http://msdn.microsoft.com/en-us/library/windows/apps/jj207042(v=vs.105).aspx#BKMK_DynamicLayout .
Then based on your xaml code, it seems that you have already created a Dynamic layout, in my mind your UI will appear correctly based the different screen resolutions.
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
You should  look at my 3rd StackPane .. I set it's heigh equal 300px ... I think my layout above will have more blank space at the bottom when display on other resolution
I don't have another real device to test it (even can't run emulator ) :(
OmegaVN - Window Phone Application Researching and Development

Similar Messages

  • Layout with different resolutions

    Hallo and good morning!
    Once again I need some advice:
    I have a program that is running on different machines with different resolutions.
    Is it possible to avoid, that the layout is paning all around?
    Best regards
    Hilby
    Solved!
    Go to Solution.

    Hi Hilby,
    No... that is currently a limitation of the layouts, where we try to adapt to each screen, but the objects and the layout may not fit into a different aspect ratio with a different number of pixels.
    The aspect ratio is the most important, followed by the total resolution of the screen.
    Some more information on aspect ratios is below.
    In summary, DASYLab is unable to completely adapt the "Screen" layout for evey monitor size and resolution. If you want to have a fixed layout that does not completely occupy some monitors, then consider using a fixed size, like A4 or A3.
    If you make something on a big monitor, 1600x1200 for example, and move it to a wide screen monitor,, 1600x900.
    From my friends at Wikipedia
    With computer displays, aspect ratios wider than 4:3 are also called widescreen. Widescreen computer displays were previously typically of 16:10 aspect ratio, now they are shifting to 16:9.
    Until about 2003, most computer monitors had a 4:3 aspect ratio and some had 5:4. Between 2003 and 2006, monitors with 16:9 and mostly 16:10 (8:5) aspect ratios became commonly available
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • "Use presets for responsive layout" not working in Chrome

    I am building a responsive website. I am going to have parts of the website animated using Edge Animate. I will make the animation and then insert it into a div in the responsive website I am building.
    The Adobe Edge animation has a width of 100%, so that it resizes according to the area that it occupies the full width of the div no matter how wide that div may be in px.
    It is all working fine, but:
    I have an image in the Edge animation that is center aligned. It must stay center aligned no matter what width the animation ends up being.
    Within Adobe Edge, in Properties, in Position and Size, there is a option where, if you hover your mouse cursor over the top right button a tool tip says "Use presets for responsive layout"
    With the image on the stage selected, I can click on the "Use presets for responsive layout" button and then choose "Centre background Image".
    It works perfectly in all browsers accept Chrome (even IE is playing ball this time). In chrome the width of the image stretches out as the div stretches out..
    The "Centre background Image" setting says that it won't scale the image. But in Chrome it does.
    What can I do to "tell" Edge Animate to center the image but not scale it in the Chrome browser?
    I can see that in the image properties it is set to Background image x axis and y axis 50%. And the width is set to pixels. But in Chrome, the image stretches.
    If you go to http://www.brainstormadvertising.co.uk/demo/services.html you will see what I mean. The circle image is centering BUT stretching in chrome browsers while centering nicely and NOT stretching in other browsers.

    Thank you for your reply Josh. But the point of this setting in Edge Animate is that you can set it up that the background image is center aligned and does not scale. Yet it produces code that gives the width as 21.72%.
    A little further along I see background-size: 48px; .  This is correct.
    So all the browers are reading background-size: 48px; as the scale measurement but Chrome is reading the width only, not the background-width. So this "Use presets for responsive layout" works in all browsers except chrome.
    I don't know how to change that code after the artwork has been published. I can see the code using Firebug, but where do I change it in my code on my computer before uploading to the server?
    I have reported this bug to Adobe.
    Please see the attachment. You can see where all the settings are made and where I am getting a problem.

  • Issues in Table with Multi-Row Insert

    I have created a master detail screens using jheadstart on 2 separate pages, Master in the Form layout and detail in the Table Layout with multi-row insert, update and delete flags ON. Have set the New Rows count = 2.
    Issue 1
    If I try to delete any existing rows, it gives error for new rows saying value is required for the mandatory fields. It should just ignore the new rows if I have not updated any values for any attributes in the those row(As it does for non Master-Detail Table layout). I guess this might be happening because the jheadstart code is setting the foreign key for new rows the detail, but not resetting the status of the rows back to INITIALIZED.
    I also noticed that the create() of underlying EO is getting called for those blank rows when I click on 'Save' button, even if I have not changed any data in those rows.
    Issue 2
    When I try to select the new rows also for deletion, I am getting a '500 Internal Server Error' with following stack trace... This is also happening for normal (non Master-Detail) Table layout.
    java.lang.IllegalStateException: AdfFacesContext was already released or had never been attached.     at oracle.adf.view.faces.context.AdfFacesContext.release(AdfFacesContext.java:342)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:253)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    Issue 3
    I have put some validation code in the validate() method in the MyEntityImpl.java class.
    The validate method seems tobe getting called lots of times, in my case 20 times, where the new rows are just 2.
    Environment:
    Jdeveloper 10.1.3, JHeadStart 10.1.3 build 78, Windows XP
    thanks

    Thanks for the reply.
    Issue 1:
    What I have observed that in case of multi-row select enabled tables, the blank rows do not have any data. This is because the EO's create() method is called only when we post the data using 'Save' button. Thus the Foreign Keys are also not setup. This is a correct behavior since create() and FK setups etc should get done only if the user has inputted any value in the new rows and thus intend to insert new data into the table.
    I am able to find the exact cause of this issue. It is happening because in the details table, I have a column which needs tobe shown as checkbox. Since we can only bind checkbox to an Boolean attribute in VO, I have created a transient attribute of type Boolean, which basically calls the getter/setter of actual attribute doing the String "Y"/"N" to true/false conversion. Here is code for the transient attribute getter/setter
    public Boolean getDisplayOnWebBoolean() {
    return "Y".equals(getDisplayOnWeb()) ? Boolean.TRUE : Boolean.FALSE;
    public void setDisplayOnWebBoolean(Boolean value) {
    if(Boolean.TRUE.equals(value))
    setDisplayOnWeb("Y");
    else
    setDisplayOnWeb("N");
    Now when I click on the "Save" button, the setter for the boolean field is getting called with the value = false and this is resulting into the row being maked as dirty and thus the validation for the required attributes is getting executed and failing.
    Issue 2:
    Confirmed that correct filter-mapping entries are present in the web.xml.
    Now when I select the new blank rows for deletion and click save, following exception is thrown:
    java.lang.ClassCastException: oracle.jheadstart.controller.jsf.bean.NewTableRowBean at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.getRowsToRemove(JhsCollectionModel.java:412) at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.doModelUpdate(JhsCollectionModel.java:604) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.processModelUpdaters(JhsPageLifecycle.java:541) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.validateModelUpdates(JhsPageLifecycle.java:571)
    thanks - rutwik

  • Mouse pointer is unchangeable at 100% scaling in multi monitor setup with different resolutions

    Hi there, I have been asked by one of the moderators of the Windows 8.1 forums to post this topic here.  You can see the thread relating to this post here
    http://answers.microsoft.com/en-us/windows/forum/windows8_1-tms/cant-change-the-cursor-pointer/ae8ad8a0-3ded-4810-a3be-794f6c4830a4?msgId=2bd7082f-f5d1-4b01-8c70-e0d2a754d66f&page=1<o:p></o:p>
    The problem:  The mouse pointer becomes unchangeable in size, type, trails etc when 100% scaling is used.  As in it reverts to the standard small white non-inverted, no trails,
    no shadow 'pointer', no matter what options you select in the 'Mouse' control panel settings.<o:p></o:p>
    This appears to be a scaling problem with the Windows 8/8.1 display, not an actual mouse problem.  Judging by my own and other peoples experience it seems to happen mainly with multi
    monitor setups where different screen resolutions are used.  The issue occurs typically when 100% scaling for all monitors is used or this option is un-ticked and the 'change the size of all items' is on smallest (equivalent to 100%).  <o:p></o:p>
    If the scaling is set to 150% or greater the issue disappears and the mouse pointer becomes fully functional.  Also bizarrely when the scaling is set to 100% if the screen is recorded
    using a screen capture program, the recording of the screen shows the mouse pointer selected in the mouse options and not the default small white cursor that is present when recording it.  Here is a link to a video where I explain and show the problem
    happening on my system.  http://youtu.be/xs2cxoeaq-A<o:p></o:p>
    I have every update installed without exception, latest drivers etc.  I use a 55" 4k screen with 2x1080p monitors in portrait on either side.  All are connected through 1 Nvidia
    GTX 780 6GB graphics card<o:p></o:p>
    Hope you can help us<o:p></o:p>
    thanks<o:p></o:p>
    Jon M<o:p></o:p>

    Hi Jon,
    I'm looking into this issue but it will take me some time to provide a reply. 
    In the meantime I noticed that you have 3 monitors with 1x 55' and 2x27' - please have a try to only connect 1x27' monitor and see if issue persists.
    Also please try to change the screen resolution to a lower size and see if issue persists. 
    Both suggestions are not solution, I just would like to know if it is related to multiple monitor or screen resolution. 
    If you have any feedback on our support, please send to [email protected]

  • Why I cannot preview my responsive layout project with captivate 8?

    I can not preview my responsive layout project in captivate 8.  It just stop on the first page.  Can anyone help?

    Hi,
    Do you get the issue every time you create a responsive project? Can you just crease 2-3 slides with smart shapes and text caption; publish and check if there is still any error?
    There are chances that the issue might be with the browser, which browser are you using to preview the content?
    Chrome version 36 has similar issues with captivate html5 output. Please find the following workaround if you are using Chrome.
    http://blogs.adobe.com/captivate/2014/07/update-on-captivate-html-5-content-playback-issue -in-google-chrome-browser.html

  • How to preserve aspect ratio with a responsive layout?

    Hi,
    I have an image that I need to place in the centre of my stage.
    The image is that of a ball and has 400px by 400px size.
    I want my animations to be responsive so that the image will scale but still maintain the correct aspect ratio.
    Currently if I set pixels to % on width and height, the image stretches.
    How do you do this in EA?

    Hi Jahandaniel,
    I have tested responsive layout and it worked perfectly. Please check the following adobe tv article and let me know your result.
    Creating a Responsive Layout | Learn Edge Animate | Adobe TV
    Regards,
    Devendra

  • Tables colpsan rowspan vs Div in a responsive layout

    Hi all
    I am new to web design and was wondering can you use tables in a responsive layout?
    All I need is a website layout that you can view in a tablet and PC for I've already have a mobile site
    Thanks everybody

    Tables are for tabular data only -- spreadsheets and charts.  They are not well suited for web page layouts of any kind.  Tables pose several challenges in Responsive Web Designs.  I try to avoid using them if I possibly can mainly b/c they stop resizing on smaller viewports.  Boostrap offers a few ways to present tables responsively -- with collapsed regions and/or horizontal scrollbars.
    http://elvery.net/demo/responsive-tables/
    Another option might be to create a pseudo-table with Definition Lists.
    Pseudo-Tables with Definition Lists - JSFiddle
    Nancy O.

  • HTML Responsive Layout for tablet and phone is not showing icons correct on a converted help file

    I am using the Responsive HTML Layout in RoboHelp 11.  On all of my new help files, the layout works great and my icons are showing appropriately.  On all of my old help files that were converted, my icons do not fit within bar for the tablet and phone.  I am using the Government Theme (Theme2_Government), but modified the file to have our colors and logos.  I exported the .slz file and I am using the same slz file in all of the help files.  The only help files that are cutting off the icons are the help files that were converted from previous version of RoboHelp.  Any idea why this would happen?

    This is from the converted file showing the icons that are cut off in the blue bar.
    This one is from a new help file and the icons fit within the blue bar.
    The same thing happens the phone layout with the bar at the bottom.

  • Layout with images query

    Hi
    I'll start with the website
    www.ultimate-garden-care.com
    I'm recreating this in DW. I want fluid grid and will hide most photos to minimise mobile view. But I am wonder what is the best order to html this
    i.e. All content that's on the right first and on the left second?
    or as if you were to read... First line heading then items list followed by image that's right of the list then the image that's currently under the heading then repeat...the second heading, items list, image from right etc etc?
    I Was thinking Maybe...
    heading and lower image in one parent div that sits lower (has more top margin 30px?) than stuff on the right
    then
    the items list and the corresponding image in another parent div that has boarder. With only say 5px top margin
    i Think where I'm getting most confused is where hubby wants the headings on the left to be centred to the item boxes on the right but still have images centred between all the left hand headings.
    he wanted this layout for our mobile-wash.com site as well but he got it more... Grid like I guess.
    is it possible to do what he is asking in fluid grid? I'm not that clever yet. He wants practically the same layout for all 4 of his sites.
    thanks
    kelly
    for curious beings, All my current goings on (4 of them for hubby rte is mine) incl...
    www.tools-and-machinery.com (nothin there yet)
    www.rtepyrography.com (really crappy publisher job that changed my shadows on angled images arggg.)
    www.rte-pyrography.com (dreamweaver version of above one. Different layout (cos I couldn't figure out how to copy it), but I like it so far)
    www.ultimate-garden-care.com (crappy publisher version. DW Remake in the process)
    www.mobile-wash.com (first dreamweaver attempt ever, had a few evolutions before landing with fluid grid)
    www.firewood-4-sale.com (another publisher version with silly lines that go all over the place, dw version in the process)

    Responsive Web Design has limitations you must consider when planning your mobile, tablet and desktop layouts.  Suffice it to say, RWD is not appropriate for everything.  It's nothing like table based layouts which you have been using up until now. Now you must think "Responsively" to get professional looking results.    Simpify.  The best RWD sites are uncluttered, uncomplicated and easy for people and search engines to read.  
    Horizontally centered elements are accomplished two ways.  
    #1 With CSS text-align:center. 
    #2 With CSS width and left- and right- margins set to auto.
    In Responsive Layouts, the alignment of elements will naturally shift with viewport width and the text sizes that people use in their devices.  This is expected.  At some point, a 2-column layout will collapse into a 1-column layout. Put your most important content in the topmost portion of your HTML.  Put your least important content near the bottom of your HTML.  Don't get too hung-up on how things align.  You'll drive yourself crazy because this is a variable you cannot control.  
    Nancy O.

  • Is it possible to create Responsive websites with Adobe Muse?

    Hello,
    The question is in the Subject line.
    I would like to create Responsive websites in Muse so that they can flow to adjust to desktop > tablet > smartphone screen sizes, and I wondered if this is possible with Muse.
    Thanks,
    Chris.

    A little rant on this topic:
    "Responsive" works only so well. Very often a "responsive" web site can look like it wasn't designed for any screen at all; instead it ends up looking like a Microsoft Excel spreadsheet with a little better color and graphics. Nothing is ever really proper or composed. It's a page being Jack of trades and King of none. I look at a lot of those pages and just go "blah."
    We have very extreme differences in display resolution from one device to the next, both in terms of absolute pixel count and pixel density. There really is no way to accommodate them all properly unless you specifically design pages for each resolution -all with assets sized specifically for each resolution setting. Some people are still using old, outdated displays like 320x480 on an old iPhone or 1024x 768 on an old CRT monitor hooked up to some old WinXP system on its last legs. 1280x720 is common on a lot of older Android phones and old HDTV sets. 1920x1080 has become very common for new desktop computer monitors and laptops. 2560x1440 had been the highest pixel count one could see in a monitor, but that is now getting surpassed by 4K and even 5K displays. One of Dell's 15" notebooks has a 3200x1800 display. 4K UHDTV sets with 3840x2160 resolution are hitting affordable price levels now; most have built in web browsers. The newest 27" iMac has a 5120x2880 display. Add in the additional factor many desktop and notebook users don't have their web browsers filling the entire screen. I just don't see how someone can create a "one size fits all" approach to cover all of those different screen settings.
    Here's one thing I would like to see in the future: the computer industry settling on some screen resolution settings, screen orientation and aspect ratio. We wouldn't need "responsive" so much if various device makers would stick with some well established standards. We don't need oddball settings, like what Apple put out in its last two iPhone generations (640x1136, 750x1334 and 1242x2208). It's bad enough mobile devices capture a lot of vertical video. Too bad they're not designed to encourage users to hold the devices horizontally.
    I wouldn't mind seeing Muse add new features to help designs be more responsive. But I'd like to see more done in the way of improving SVG support (vector graphics scale up and down to any resolution). I'd also like to see Muse support HiDPI in more than just the 2x setting.

  • Responsive layout design

    Hello dreamweavers.
    I have a question regarding responsive layout which is regarding to dimensions, I see a lot of post on the net with does and don'ts, that's why I'm asking for a
    more professional and formal advice. So my question is, if I set up a design page for example 1400 width x 1000 height or 1600 width x 1400 height, would both
    dimensions be able to be coded responsive in order to take up all devices? can a web designer make it responsive regardless its layout dimensions ir is there a specific dimension when it comes to responsive layout,
    and what would that be?
    Thank you.

    inquestflash wrote:
    Thanks for the information Nancy. Just one more thing Id like to ask. Would setting up as default dimensions the 960 GRID system be ok, and then
    the developers can use % for the rest of the devices?
    Yes,
    Set a container wrapper to max-width: 960px;
    Like:
    #containerWrapper {
    max-width: 960px;
    width: 96%;
    margin: 0 auto;
    Any screen which has the real estate to accommodate 960px width will get that. As the screens real estate gets narrower the design adjusts to suits its width.
    Obviously if you just have a one column design that's the job done but you will no doubt have multiple columns so you then need to use media queries to change the properties of the css as the browser window becomes narrower to make the design look nicer.

  • Multi-resolution for multi-targets for handphones?

    Hi All,
    I need to seek your advice on certain concerns regarding on mobile  development.
    I am currently creating an app for my Samsung Galaxy S which has a  resolution for 480 X 800px and it looks great. The problem is if I am creating  for other resolutions like iPhone and the rest of the other mobile devices. I  understand on Flash CS5.5, there is a ‘scale content with stage’ within the  Dimensions, but it is not perfect. I believe I have to resize until I get it  right for the other phones. However, am I going to publish multiple apks for  different resolutions? Even when I publish as a full screen, I still see the  edges of my stage.
    I have codes that affect certain resolution, for example I have a code  called hydrantY = 400px; if my screen height is  480px whilst hydrantY = 280px  if screen height is 320px. Am I going to have a set of classes linking to  different fla files and another set of classes for another group of fla  files?
    Will the usage of the Projects panel help? I understand you use the  Projects panel if you happen to have different output like for swf (website  development), air (desktop development) and air for Android (for mobile  devices).  Will the usage of Projects panel be useful if I am developing for  different mobile device targets like (Samsung, HTC, Apple etc...having different  resolution)?
    I know this sounds lengthy, but I would appreciate if you can help me as  this has been bugging me!

    I'm using about 100 images in my application. Its not possible to use if condition for that 100 images. Is there any way to use multi-resolution method in XAML instead of code behind?
    Nikitha

  • Responsive layout template problem

    I created a master page with a responsive layout and then saved as template.
    I then went to assets and created "new from template" a new page.
    When I save this page as index.htm I get the following error message:
    Making this change would require changing code that is locked by a template or a translator. The change will be discarded.
    Pressing OK then brings up another error box with the following message:
    While executing onLoad, the following JavaScript error(s) occurred:
    At line 591 of the file "c:\program files (x86)\Adobe Dreamweaver CS6\Configuration\Commands\dmxUpdateHead.htm":
    The object is not currently contained in a document.
    My website files being developed are on F: drive so I guess this is something to do with the system files.
    USING CS6 / BOOTSTRAP2 / WINDOWS 7
    No idea what to do... Welcome any advice.
    Thank you in advance for feedback
    Terry

    You will get this problem because Automatic File Update has been selected. Click the checkbox to unselect and all is well.
    The reason is that the Bootsrap extension tries to refresh the association of the necessary files and the template system rejects this because the associations are located in a non-editable area.
    The above dialog can be found by clicking Commands->DMXZone Bootsrap Options.

  • How to use 2 different layouts with media query

    I want to do my site for multiple devices. BUT some sections of the full page I do not want to use in the smartphone version. Responsive design changes the appearence of layout with CSS, but the elements are the same. Any idea?
    Thanks in advance

    Mobile browsers will see the mobile image.
    Desktop browsers will see the desktop image.
    See example below. 
    http://alt-web.com/FluidGrid/Fluid-4.html
    Nancy O.

Maybe you are looking for