Click here to Skip to main content
15,499,289 members
Home / Discussions / C#
   

C#

 
GeneralRe: Generic collections Pin
harold aptroot21-Jul-13 2:18
Memberharold aptroot21-Jul-13 2:18 
GeneralRe: Generic collections Pin
PozzaVecia21-Jul-13 23:56
MemberPozzaVecia21-Jul-13 23:56 
GeneralRe: Generic collections Pin
BillWoodruff22-Jul-13 0:40
mveBillWoodruff22-Jul-13 0:40 
GeneralRe: Generic collections Pin
PozzaVecia22-Jul-13 2:18
MemberPozzaVecia22-Jul-13 2:18 
AnswerRe: Generic collections Pin
M.Kamran Asim21-Jul-13 22:19
MemberM.Kamran Asim21-Jul-13 22:19 
QuestionDisable Windows Navigation Pin
aymen Tn18-Jul-13 6:11
Memberaymen Tn18-Jul-13 6:11 
AnswerRe: Disable Windows Navigation Pin
GuyThiebaut18-Jul-13 6:26
professionalGuyThiebaut18-Jul-13 6:26 
AnswerRe: Disable Windows Navigation Pin
Emmanuel Medina18-Jul-13 6:27
professionalEmmanuel Medina18-Jul-13 6:27 
Sounds like what you want is a "kiosk" mode kinda thing.

If so, you should add WindowStyle="None" and WindowState="Maximized" to the XAML of your main window. Further, you can even disable resizing and make it be the windows at the top from the start, adding ResizeMode="NoResize" and Topmost="True". Code would look like this:
XML
<Window x:Class="WpfApplicationTest1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        WindowStyle="None"
        WindowState="Maximized"
        ResizeMode="NoResize"
        Topmost="True">


Note that Windows keyboard shortcuts still work (Alt+Tab, Windows Key, Alt+F4). If you want to "disable" those, you will have to capture them, although opening applications in this manner (for example Windows+E for Windows Explorer) won't display the newly opened application since yours is Topmost as set in the property.

[EDIT]
The same can be achieved modifying those properties in the constructor, like so:
C#
namespace WpfApplicationTest1
{
  public partial class MainWindow : Window
  {
    public MainWindow()
    {
      InitializeComponent();
      WindowStyle = WindowStyle.None;
      WindowState = WindowState.Maximized;
      ResizeMode = ResizeMode.NoResize;
      Topmost = true;
    }
  }
}

If you think you can do a thing or think you can't do a thing, you're right - Henry Ford

Emmanuel Medina Lopez


modified 18-Jul-13 13:48pm.

GeneralRe: Disable Windows Navigation Pin
aymen Tn18-Jul-13 23:44
Memberaymen Tn18-Jul-13 23:44 
GeneralRe: Disable Windows Navigation Pin
Freak3019-Jul-13 0:46
MemberFreak3019-Jul-13 0:46 
GeneralRe: Disable Windows Navigation Pin
Eddy Vluggen19-Jul-13 1:26
professionalEddy Vluggen19-Jul-13 1:26 
QuestionHow to save web page as MHTML? Pin
Abdallah Al-Dalleh18-Jul-13 4:25
MemberAbdallah Al-Dalleh18-Jul-13 4:25 
AnswerRe: How to save web page as MHTML? Pin
Emmanuel Medina18-Jul-13 5:00
professionalEmmanuel Medina18-Jul-13 5:00 
AnswerRe: How to save web page as MHTML? Pin
Jay Nardev18-Jul-13 20:21
MemberJay Nardev18-Jul-13 20:21 
QuestionDynamic Columns in Entity Framework Pin
sengottuvel m18-Jul-13 3:28
Membersengottuvel m18-Jul-13 3:28 
AnswerRe: Dynamic Columns in Entity Framework Pin
Richard MacCutchan18-Jul-13 4:15
mveRichard MacCutchan18-Jul-13 4:15 
Questionhow to execute a wrapped oracle procedures using C# Pin
M_MA18-Jul-13 1:36
MemberM_MA18-Jul-13 1:36 
QuestionUsing Axis Media Control SDK with EMGU CV to do a C# Winform application. Pin
Ervin Loong18-Jul-13 0:10
MemberErvin Loong18-Jul-13 0:10 
QuestionHelp Regarding OPEN XML, Pin
meetnneel17-Jul-13 7:16
Membermeetnneel17-Jul-13 7:16 
AnswerRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak17-Jul-13 8:24
mveDave Kreskowiak17-Jul-13 8:24 
GeneralRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 18:25
mveBillWoodruff17-Jul-13 18:25 
GeneralRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak17-Jul-13 19:00
mveDave Kreskowiak17-Jul-13 19:00 
GeneralRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 19:11
mveBillWoodruff17-Jul-13 19:11 
GeneralRe: Help Regarding OPEN XML, Pin
Dave Kreskowiak18-Jul-13 3:09
mveDave Kreskowiak18-Jul-13 3:09 
AnswerRe: Help Regarding OPEN XML, Pin
BillWoodruff17-Jul-13 18:28
mveBillWoodruff17-Jul-13 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.