Screen resolution problem in Fedora 17 on Oracle VirtualBox 4.2
For documentation, Fedora has a pretty good for basics: http://docs.fedoraproject.org/en-US/index.html
Now regarding your problem I had the same issue and to avoid it I've performed the following as root:
[root@testmachine ~]# xrandr
Screen 0: minimum 64 x 64, current 1600 x 1200, maximum 32000 x 32000
VBOX0 connected 1600x1200+0+0 0mm x 0mm
1600x1200 60.0*+
1440x1050 60.0
1280x960 60.0
1024x768 60.0
800x600 60.0
640x480 60.0
This will provide all the available modes. To add a new one perform the following:
[root@testmachine ~]# cvt 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Let's create a new mode for XRAND and associate it to the screen.
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr --addmode VBOX0 1920x1080_60.00
And now it's time to activate the output
xrandr --output VBOX0 --mode 1920x1080_60.00
the VBOX0 value you get from the first xrandr command to see your display id. Change the cvt value and update the commands accordingly to match your cvt output.
Related videos on Youtube
Mike Borozdin
Updated on September 18, 2022Comments
-
Mike Borozdin over 1 year
I have the following ComboBox that gets populat from an enum:
<ComboBox Name="cmbProductStatus" ItemsSource="{Binding Source={StaticResource statuses}}" SelectedItem="{Binding Path=Status}" />
Please, note that the DataContext gets set in code-behind.
It's not even about two-way binding, I have some default value for Product.Status but it never gets selected.
Updated
I was asked to put code of my Status property.
public class Product { //some other propertties private ProductStatus _status = ProductStatus.NotYetShipped; public ProductStatus Status { get { return _status; } set { value = _status; } } } public enum ProductStatus { NotYetShipped, Shipped };
-
Russell Troywest about 13 yearsHave a look at your output window when running under the debugger and see if it's telling you anything about binding to Status.
-
Russell Troywest about 13 yearsCan you give the code for your Status property? I would have expected something in the Output window if it's just not able to Bind.
-
Russell Troywest about 13 yearsYou'll want to implement INotifyPropertyChanged and raise the correct event with "Status" as the value if you want to see changes show up in your GUI. As long as your ItemSource contains enums though I would have thought you'd get the default setting. There are some debugging tips for binding on my blog you might find useful. Click on my name if you're interested - there's a link there.
-
Mike Borozdin about 13 years@Russell thanks for the debugging tip. My DataItem appears to be null. I think it's because ItemSource is set to a StaticResource, while the DataContext of a parent container is set in code-behind.
-
-
Mike Borozdin about 13 yearsthanks for your answer. The ItemSource is loaded, it's just a static enum.
-
Fabricio over 10 yearsThis worked for me: +1. :-) But how can this be made permanent? I asked the question yesterday but it didn't seem to get much grip. Maybe you could take a look? Thanks!
-
Simon K. over 8 yearsFor non-enum-types implementing .Equals(object) on the model-class does the trick.